sprites are usually large images, containing all the different "actions" you want
Then you take the image, and programatically pick out each action to display
For example,
this is a sprite lifted from Half-Life
it forms the menu text animations as you pass the mouse over
http://www.snoopy.force9.co.uk/btns_main.bmp
It's all held within one large image
your program will pick out a section of the image to display
then some sort of trigger happens, and your program will shift to displaying a different section of the image
Look around for a C++ class, or similar, to load sprites and display sections
then play around with creating your own
just a simple 4-frame image, with a guy standing still, 2 frames showing running that alternate, and one with him jumping, say
|
|
Bookmarks