One approach would be to create an animated sprite and then use the frame command to switch between the images.
[quote]
dbCreateAnimatedSprite
This command will create an animated sprite. The command automatically builds a sequence of animation frames from an image file by cutting up the image into a grid specified by the iAcross and iDown values. The iImage Number will be used to hold the complete image. Use the dbPlaySprite command to see the individual frames of this image.
Syntax
void dbCreateAnimatedSprite ( int iSprite, char* szFilename, int iAcross, int iDown, int iImage )
[quote]
[quote]
dbSpriteFrame
This command will return the frame of the specified sprite. Frames are only returned from animated sprites created with the dbCreateAnimatedSprite command.
Syntax
int dbSpriteFrame ( int iSprite ) [quote]
You need to create an array of images and use this to populate the sprite
If you need additional help please post
Codger
System
PIV 2.8 MZ 512 Mem
FX 5600 256 mem