View Single Post
Join Date: Jul 2006
Posts: 608
Reputation: jrcagle is on a distinguished road 
Solved Threads: 149
jrcagle jrcagle is offline Offline
Practically a Master Poster

Re: frame by frame animation in pygame

 
0
  #3
Mar 17th, 2007
I just realized that your title answered my question. :o

The way that I know to do this is to cycle through a list of sprites and keep a timer running. When time's up, display the next sprite.

This is how the livewires package handles animation.

If that turns out to be computationally expensive, you could make a sprite group and change out only some of the sprites.

Hope it helps,
Jeff
Last edited by jrcagle; Mar 17th, 2007 at 12:27 pm.
Reply With Quote