News:

PlayBASIC2DLL V0.99 Revision I Commercial Edition released! - Convert PlayBASIC programs to super fast Machine Code. 

Main Menu

About Sprite Flipping

Started by Dagfari, August 24, 2006, 01:16:20 PM

Previous topic - Next topic

Dagfari

I was wondering if it's both possible and feasible to flip (mirror) a sprite just before it's drawn, then after it's drawn, flip it back to normal.  Essentially enabling me to have multiple instances of a given sprite facing either direction but only having to load one instance of the sprite into memory.

Thanks.

kevin

#1
 Yes, just scale the sprite by -1 on the X axis.

ScaleSpriteX SpriteIndex, ScalePercent#