Syntax

dbSetSpritePriority(SpriteID, Priority)

Description

This command will set the relative priority of the specified sprite. All sprites start with a value of zero giving them equal chance of being drawn last. By setting a single sprite a value of one will cause that sprite to be drawn last. You can specify a unique priority value for each sprite creating an order of drawing for every sprite in your program.

See Also

dbSetSprite, dbSetSpriteFrame, dbSetSpriteImage, dbSpriteFrame, dbSpriteImage