Invert, Horizontal Flip and Vertical Flip Physics Shapes
I recently discovered that is was very easy way to invert images, e.g: myObject.xScale = -1, will horizontally flip a display object. This works well but it will not flip any custom physics shapes assigned to the object so in order for the objects to have the correct physics the shapes need to be flipped also. Here is a function I created which will output a new list of flipped or inverted shapes coordinates from... More...
Posted by Beloudest, Posted on 7 May 2012, Last updated 7 May 2012 | 0 comments
