DbMirrorSprite

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

Syntax
void dbMirrorSprite ( int iSprite ) This command causes the sprite specified by iSprite to be displayed as if being viewed in a mirror. The image remains unmodified.

Usage
dbMirrorSprite ( 1 ); The above statement will display sprite number 1's image reversed, as if being seen in a mirror.

In order to return the sprite to an unmirrored state: if (dbSpriteMirrored (1) == 1) { dbMirrorSprite (1); } The above uses the dbSpriteMirrored function to test if the sprite is currently mirrored. If it is, it reverses the state.