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

Sprites and the framerate


Postby Karel » May 15, 2003 @ 3:47pm

Karel
pm Member
 
Posts: 23
Joined: Feb 25, 2003 @ 3:54pm
Location: The Netherlands


Postby ppcStudios » May 16, 2003 @ 5:25am

I generally use a single surface for an animation object. For example, a man walking may have 8 different directions, each with say 10 frames of animation. My image would be a 10x8 array of sprites all loaded onto a single surface. Then you just need to update the x coordinates of the source rectangle depending on the animation frame, and the y coordinates depending on the direction of movement.
G.R. Moore
President/CEO
Pocket PC Studios
www.ppcstudios.com

Image
User avatar
ppcStudios
pm Insider
 
Posts: 744
Joined: Aug 23, 2002 @ 3:53pm
Location: Canfield, Ohio


Previous

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