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

Re: [pygame] [Pygame] Smooth Animation

On Thu, Nov 22, 2012 at 1:08 PM, yannisv <yannisvezakis@xxxxxxxxx> 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.

The obvious solution is to draw more frames, which is of course labour-intense.

A less perfect solution is to change the animation frame once every 2
or more of movement frames.
This will make the movement smooth and the animation slow enough, but
it may look like the character's feet are sliding on the ground...

Radomir Dopieralski, http://sheep.art.pl