What steps will reproduce the problem?
1. In FlxSprite::loadGraphic, use a graphic that shouldn't be reversed while
animating (Reverse parameter isn't used)
What is the expected output? What do you see instead?
In a top-down environment where the image asset already contains left and right
animations (i.e. shouldn't be reversed), the animation should show non-flipped
frames. Instead, the animation is flipped when facing left.
What version of the product are you using? On what operating system?
0.4 on Windows
Please provide any additional information below.
FlxSprite
Add
/**
* Internal tracker for whether we should flip graphic when facing left/right
*/
protected boolean _reverse;
FlxSprite::loadGraphic
add
_reverse = Reverse;
FlxSprite::calcframe
Currently
if(_facing == LEFT)
framePixels.flip(true, true);
Should be
if(_facing == LEFT)
framePixels.flip((_reverse ? true : false), true);
Original issue reported on code.google.com by c...@luckoverskill.com on 15 Jul 2012 at 6:10
Original issue reported on code.google.com by
c...@luckoverskill.com
on 15 Jul 2012 at 6:10