Grabbing Sprites from an Image sheet

BlitzMax Forums/BlitzMax Beginners Area/Grabbing Sprites from an Image sheet

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Hi MikeT,

I'm sorry, I should have explained it better. The image is 192x96 and it contains 3 animated sprite strips as rows, not side by side. Each sprite strip is 6 frames, each frame is 32x32:
- first sprite strip is located at 0,0 and is 192 wide by 32 tall
- second sprite strip is located at 0,32 and is 192 wide by 32 tall
- third sprite strip is located at 0,64 and is 192 wide by 32 tall.

I want to grab each of the three seperately. Granted maybe I just use 1 png per animated sprite, but Ideally I'd like to use one png for all the sprites in the game.

Thanks,

Scot