MrLoick / flixel-android

Automatically exported from code.google.com/p/flixel-android
Other
0 stars 0 forks source link

FlxSprite::loadGraphic - Reverse parameter isn't used #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r73.

Original comment by TSWes...@gmail.com on 16 Jul 2012 at 2:51