Advanced game related topics
Posts: 20
Joined: Mon Feb 24, 2014 11:25 pm

Sprite Sheets

by Foz Sat Mar 01, 2014 9:20 pm

I'm not sure if this is for feature requests or coding questions, but what is the method losing sprite sheets?

Currently I'm splitting the sprites down into their individual frames, but that is then leaving me with over a hundred stories to load, and if I want to add more resources in, then I will have to load even more resources...

All I want is one sprite sheet that I can load and dissect for each level...

Is it planned? Or is it already available and I'm just being daft and blind?
User avatar
Posts: 49
Joined: Wed Feb 26, 2014 7:11 am

Re: Sprite Sheets

by Danilo Sun Mar 02, 2014 12:08 am

You load a sprite and use ClipSprite() to draw a sprite out of the whole sprite sheet.

PureBasic has already some "AnimSprite" and bitmap font libs available in forum to automate the
calculation of the clip area and add timers, etc.

Some useful tools:
- TexturePacker
- Monopack
- Tiled Map Editor
- Mappy Editor
Posts: 20
Joined: Mon Feb 24, 2014 11:25 pm

Re: Sprite Sheets

by Foz Thu Mar 06, 2014 3:08 pm

Thanks for this, I'd forgotten about the ClipSprite() function.

Previously I'd been using GrabSprite() and creating a load of sprites in memory build from a sprite sheet!
Return to Game Programming

Who is online

Users browsing this forum: No registered users and 1 guest