flipx
This commit is contained in:
@@ -263,6 +263,9 @@ class Stage extends FlxSpriteGroup implements IHook implements IPlayStateScripte
|
||||
case BF:
|
||||
this.characters.set("bf", character);
|
||||
charData = _data.characters.bf;
|
||||
character.flipX = !character.flipX;
|
||||
if (character.flipX)
|
||||
character.flipAnimationOffsets();
|
||||
character.initHealthIcon(false);
|
||||
case GF:
|
||||
this.characters.set("gf", character);
|
||||
@@ -270,6 +273,8 @@ class Stage extends FlxSpriteGroup implements IHook implements IPlayStateScripte
|
||||
case DAD:
|
||||
this.characters.set("dad", character);
|
||||
charData = _data.characters.dad;
|
||||
if (character.flipX)
|
||||
character.flipAnimationOffsets();
|
||||
character.initHealthIcon(true);
|
||||
default:
|
||||
this.characters.set(character.characterId, character);
|
||||
|
||||
Reference in New Issue
Block a user