Hello. I was wandering if flashpunk has a function to flip a image before setting it as backdrop, or to flip the backdrop itself. Any ides?
Flipping a backdrop[SOLVED]
jacobalbano
(Jacob Albano)
#2
Your best bet is probably to flip the BitmapData used as a source for the backdrop.
var flipped:BitmapData = new BitmapData(original.width, original.height, true, 0);
var matrix:Matrix = new Matrix( -1, 0, 0, 1, original.width, 0);
flipped.draw(lanternArtSide, matrix, null, null, null, true);
var backdrop:Backdrop = new Backdrop(flipped);