Page 1 of 1

Anyone create a sprite class in gapidraw?

PostPosted: Aug 19, 2003 @ 9:44pm
by Codejoy
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

PostPosted: Aug 20, 2003 @ 5:56am
by DillRye
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.