Frame timer too quick, slower animations

Hi,

Still a beginner hobbyist game maker.

How do you slow down animations? The frame timer goes through frames so quickly. I could make a imagetable with 100 sprites but right now mine only has 3 and it looked okay as a gif.

Thanks

Frame timer update frequency is governed by the screen refresh/frame rate.

So you could set a slower frame rate. But this had negative side effects of making control and screen updates slower overall.

So the more attractive option is to take care of lowering the rate in the frame timer callback. So instead of changing the animation every time, do it every five frames by checking if t % 5 == 0 for example. You'd probably have to extend any duration of the frame timer by the same factor.

Cool! Thank you Matt

1 Like