Page 1 of 1

Sprite Sheets

Posted: Sat Mar 01, 2014 9:20 pm
by Foz
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?

Re: Sprite Sheets

Posted: Sun Mar 02, 2014 12:08 am
by Danilo
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

Re: Sprite Sheets

Posted: Thu Mar 06, 2014 3:08 pm
by Foz
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!