Object Mirroring
Can i mirror my object when i press button?
You can change the direction of the coordinate axes (drawing direction)
screen.setDrawAnchor( -1,1 )
or
image = new Image( 100, 100 )
image.setDrawAnchor( -1,-1 )
Or you can just do
if flipped then
screen.setDrawScale(-1, 1)
else
screen.setDrawScale(1, 1)
end
screen.drawSprite(...)
. setDrawScale with negative values (works with y input too if you want) reverses. You can even combine it with scaling like setDrawScale(-1.5, 5.3) or something.
thanks