PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Anyone create a sprite class in gapidraw?

Im lookin for a good easy to use sprite class, I can create my own but would rather not re-invent the wheel if its been done already.

Such a class would be cool if it handled:
Creation of sprites
Sprite frames (single frame sprite, multiple frame sprite, animation play lists, play once animations, etc...)

Just curious if anyone has created such a thing..

Thank you,
Shane
I dont know of any specific sprite class.

I'm sure someone has one, but its really very easy to have a single surface with all of your frames of animation and have an array of RECTS that point to the frames in order.

That way you can easily step through them and don't have to use any crazy math to figure out the source RECT.

This may be reinventing some sort of wheel, but its such an easy one to make you will probably loose more time trying to find the class.