I don't get how you could use one image of a bunch of different sprites with a black background, and use that one image of all the sprites to incorporate each sprite into a game individually. How does that work?
I don't get how you could use one image of a bunch of different sprites with a black background, and use that one image of all the sprites to incorporate each sprite into a game individually. How does that work?
Usually you have a vertical strip of sprites for animation. If you have a bunch of 64x64 images for animation you just offset downwards into the image depending on which frame you are drawing. Basically you are just drawing different portions of that original image.
"...the results are undefined, and we all know what "undefined" means: it means it works during development, it works during testing, and it blows up in your most important customers' faces." --Scott Meyers
Is there any particular function I'd use for this?Originally posted by MrWizard
Usually you have a vertical strip of sprites for animation. If you have a bunch of 64x64 images for animation you just offset downwards into the image depending on which frame you are drawing. Basically you are just drawing different portions of that original image.
BitBlt() is a useful function for this.
It's too bad that stupidity isn't painful
--Anton Szandor LaVey