Hour 17. Animating the Appearance of Sprites


Hour 17. Animating the Appearance of Sprites

You're hopefully fairly comfortable with using sprites to create graphical objects that can move around the game screen and interact with each other. You've seen sprites in action in several programs' examples and a couple of complete games . One thing you might have found missing in the sprites that you've worked with is that they don't have any capability to change their appearance. Granted, being able to move around is certainly a huge benefit, but it would also be nice for some sprites to change their appearances every so often. For example, the guys moving across the screen in the Battle Office game would look much better if their legs were moving to give a more realistic impression that they were running. This hour takes a look at how to add frame animation features to your sprites so that their appearances can change.

In this hour, you'll learn:

  • How frame animation can be incorporated into sprite animation

  • How to design and integrate frame animation support into the existing game engine

  • How to modify an existing game to take advantage of frame-animated sprites



Sams Teach Yourself Game Programming in 24 Hours
Sams Teach Yourself Game Programming in 24 Hours
ISBN: 067232461X
EAN: 2147483647
Year: 2002
Pages: 271

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net