Animation not playing with Custom Device

You are an experienced programmer and have a problem with the engine, shaders, or advanced effects? Here you'll get answers.
No questions about C++ programming or topics which are answered in the tutorials!
Post Reply
n00bc0de
Posts: 38
Joined: Tue Oct 04, 2022 1:21 am

Animation not playing with Custom Device

Post by n00bc0de »

I created a custom device based on SDL2. Everything is rendering just fine but it does not play the animation. It will render new frames when I manually set the frame with node->setCurrentFrame() but it is not playing the animations otherwise.

I am assuming this is some issue related to a timer but I am not sure where to check.
n00bc0de
Posts: 38
Joined: Tue Oct 04, 2022 1:21 am

Re: Animation not playing with Custom Device

Post by n00bc0de »

I figured it out. I was missing os::Timer::tick() in device->run().
Post Reply