How to update a bitmapData based on changes to the parent bitmap?
I have a set of sprites in my game that all face to the right (there are lots of frames of animation, several hundred in total).
I want the sprite to be able to face both directions, so rather than mirror and duplicate all of the PNGs (sprite frames) I am doing it via code.
If I create a bitmap and then scaleX = -1 it reverses itself perfectly.
However, if you then access the bitmapData of that bitmap, the data remains exactly the same (facing the opposite direction), and isn't updated when you perform operations on it (such as scaleX).
Does anyone know a way to get around this?! I want to create a bitmap, flip it and have that bitmaps data reflect this change.
Cheers,
Rich