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?
Printable View
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.
Is there any particular function I'd use for this?Quote:
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.