mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-29 02:04:28 +00:00
flipx
This commit is contained in:
parent
8e2eefb605
commit
8bd876ed1c
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue