Skip to content

Commit b53b5bd

Browse files
NotHyper-474Kade-github
authored andcommitted
fix: Prevent error when getting fake out death while testing in Chart Editor
1 parent 73467b1 commit b53b5bd

File tree

1 file changed

+3
-3
lines changed
  • preload/scripts/characters

1 file changed

+3
-3
lines changed

preload/scripts/characters/bf.hxc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ class BoyfriendCharacter extends MultiSparrowCharacter {
2323
FunkinSound.playOnce(Paths.sound("gameplay/gameover/fakeout_death"), 1.0);
2424

2525
var bfFakeout:FlxAtlasSprite = new FlxAtlasSprite(this.x - 440, this.y - 240, Paths.animateAtlas("characters/bfFakeOut", "shared"));
26-
FlxG.state.subState.add(bfFakeout);
26+
GameOverSubState.instance.add(bfFakeout);
2727
bfFakeout.zIndex = 1000;
2828
bfFakeout.playAnimation('');
2929
// We don't want people to miss this.
30-
FlxG.state.subState.mustNotExit = true;
30+
GameOverSubState.instance.mustNotExit = true;
3131
bfFakeout.onAnimationComplete.add(() -> {
3232
bfFakeout.visible = false;
3333
this.visible = true;
34-
FlxG.state.subState.mustNotExit = false;
34+
GameOverSubState.instance.mustNotExit = false;
3535
this.playAnimation('firstDeath', true, true);
3636
// Play the "blue balled" sound. May play a variant if one has been assigned.
3737
GameOverSubState.playBlueBalledSFX();

0 commit comments

Comments
 (0)