From 8bd876ed1ceef68a366b4f11a6a03bd8697ddec0 Mon Sep 17 00:00:00 2001 From: MtH Date: Sat, 7 May 2022 22:07:09 +0200 Subject: [PATCH] flipx --- source/funkin/play/stage/Stage.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/funkin/play/stage/Stage.hx b/source/funkin/play/stage/Stage.hx index 47a159f76..332dbeec3 100644 --- a/source/funkin/play/stage/Stage.hx +++ b/source/funkin/play/stage/Stage.hx @@ -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);