DbFlipSprite

This command will cause the sprite to be reversed around the horizontal axis.

Syntax
void dbFlipSprite ( int iSprite ) This command causes the sprite specified by iSprite to be displayed upside down. The image remains unmodified.

Usage
dbFlipSprite ( 1 ); The above statement will display sprite number 1's image upside down.

In order to return the sprite to an uflipped state: if (dbSpriteFlipped (1) == 1) { dbFlipSprite (1); } The above uses the dbSpriteFlipped function to test if the sprite is currently flipped. If it is, it reverses the state.