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

RE: [pygame] kind of animation



On Wed, 24 May 2006 11:08:07 -0400, "Chris Ashurst" <CAshurst@xxxxxxxx>
said:
> To satisfy my own curiosity, what is the fundamental difference between
> time-based and frame-based... Oh wait, never mind, I answered my own
> question :D
> 
> To throw in my own two cents, why not use all three types of animation,
> that
> way if you have three different animation "engines" available, you could
> have a flag in a sprite class that defines which engine is pushing the
> sprite at any given time. For example, a Space Invaders type-game would
> use
> time-based animation (for the descending rows of aliens, which inevitably
> speed up as more and more get destroyed), frame-based animation for the
> flying saucer that randomly rolls across top of the screen, and
> event-based
> animation for moving the player ship around.

Yes, but your UFO will plod across the screen on slower machines and
streak across on high-end boxes.