Syntax

dbSprite(SpriteID, x, y, ImageID)

Description

This command will set the position and image ID of the specified sprite. Providing you are using a valid image ID from a previous call to the dbGetImage command, and the position of the sprite is in the screen area, you will see your sprite displayed. You can move your sprite by calling the sprite command with new position coordinates. You can animate your sprite by calling this command with different image numbers to create the effect of animation. You are able to have over sixty thousand sprites on the screen at any one time, but it is advisable to restrict yourself to a few hundred sprites for speed critical programs.

See Also

dbCloneSprite, dbCreateAnimatedSprite, dbDeleteSprite, dbSpriteExist