Page 1 of 1

Animation not playing with Custom Device

Posted: Sat May 04, 2024 12:40 am
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.

Re: Animation not playing with Custom Device

Posted: Sat May 04, 2024 3:59 pm
by n00bc0de
I figured it out. I was missing os::Timer::tick() in device->run().