Sprite Sheets

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

Sprite Sheets

Post 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?
User avatar
Danilo
Posts: 51
Joined: Wed Feb 26, 2014 7:11 am

Re: Sprite Sheets

Post 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
cya,
...Danilo
Foz
Posts: 20
Joined: Mon Feb 24, 2014 11:25 pm

Re: Sprite Sheets

Post 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!
Post Reply