PDA

Click to See Complete Forum and Search --> : Sprites


Tru_G
Nov 24th, 1999, 02:26 AM
I am creating a monopoly game using VB for my OAC programming course. I am using sprites to animate the peices. I currently have all the frames saved indivdually as .bmp. There is 28 frames per 9 animations. Thats a lot of files to work with. If anyone can help me by telling me how to use sprites on a single .bmp I would be truly greatful.

G

Hobbit125
Nov 26th, 1999, 11:02 AM
You can put all of the images for an animation into one BMP. Just put them in a grid (kinda like a checkerboard) and save them as one BMP. Then, when you want to use them, just load the BMP into a hidden picture box and BitBlt the piece that you need. (For example, if you want the piece of your image that begins at 200,100, send that to the BitBlt function.)