This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Anyone create a sprite class in gapidraw?


Anyone create a sprite class in gapidraw?

Postby Codejoy » Aug 19, 2003 @ 9:44pm

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
Codejoy
pm Member
 
Posts: 34
Joined: Mar 6, 2003 @ 1:41am
Location: New Mexico


Postby DillRye » Aug 20, 2003 @ 5:56am

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.
User avatar
DillRye
pm Insider
 
Posts: 477
Joined: Apr 25, 2002 @ 7:28am
Location: Iowa State University of Eng


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron