[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] [Pygame] Smooth Animation



Have frames change based on ms elapsed. That way you always get an animation length of ex: 2seconds regardless if the FPS is 15 or 100.

On Thu, Nov 22, 2012 at 4:52 AM, yannisv <yannisvezakis@xxxxxxxxx> wrote:
Hello everyone. Just a quick question:

I have made a character I can move around, and the walking animation
consists of 4 frames.

My problem is that if I set the resolution too high for a smooth movement
animation, the frames change too fast, and if I set it too low, the
animation is not smooth at all.

It works like this:



What should I do?

Thanks in advance.



--
View this message in context: http://pygame-users.25799.n6.nabble.com/Pygame-Smooth-Animation-tp346.html
Sent from the pygame-users mailing list archive at Nabble.com.



--
Jake