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

Re: [pygame] [Pygame] Smooth Animation

Are you using an instance of pygame.time.Clock() in your main loop to maintain a max FPS?


On Thu, Nov 22, 2012 at 5: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.