Pinkishu Posted September 8, 2014 Share Posted September 8, 2014 How would I go about that? I always disliked changing the anchor point for something like sprite flipping sincea) it will influence the sprite's position some other thing i will want to do might require another anchor point, which then because a huge mess to work with So, is there some way to flip the sprite without that? Maybe increase its position so it looks like it didnt change that or is there some other way? Link to comment Share on other sites More sharing options...
lewster32 Posted September 8, 2014 Share Posted September 8, 2014 There're many ways - manually create a 'flipped' sprite or animation sequence, use a centralised anchor and set the scale.x or scale.y to a negative value, draw to a BitmapData and reverse the pixels. It's up to you really, and depends on what you need. Link to comment Share on other sites More sharing options...
rich Posted September 8, 2014 Share Posted September 8, 2014 Worth adding that it will always be fastest to have flipped sprites in your sprite sheet, rather than do anything with them at run-time. Sometimes this isn't possible, but personally I always try to do it whenever I can. Pinkishu 1 Link to comment Share on other sites More sharing options...
Recommended Posts