FANDOM


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

SyntaxEdit

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.

UsageEdit

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.

See AlsoEdit

dbFlipSprite

dbSpriteFlipped
dbSpriteMirrored

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.