Hi Yannisv, I've written a module for Pygame that handles sprite animation for you. You can set each frame of animation to last for a specific number of seconds no matter what the frame rate is. The module is called Pyganim (Pygame Animation):
http://inventwithpython.com/pyganim/ -Al On Thu, Nov 22, 2012 at 8:46 PM, Noel Garwick <noel.garw...@gmail.com>wrote: > Hey, OP, you may want to read and/or outright use this library: > http://inventwithpython.com/pyganim/index.html > > It has a partially written tutorial, but rather helpful examples. > > > On Thu, Nov 22, 2012 at 4:11 PM, Greg Ewing > <greg.ew...@canterbury.ac.nz>wrote: > >> yannisv wrote: >> >>> Yes, I am. The problem is when I set the FPS to ~12, and use >>> clock.tick(FPS) >>> inside the loop, that movement looks terrible (as expected). When I set >>> the >>> FPS to 30 or 60, the movement does look better, but the frames change >>> extremely fast. >>> >> >> If you want smooth animation, you will need to create more >> animation frames. There's no way around that. >> >> -- >> Greg >> > >