From 0905b2c4b1de26c2ae979c1517c6a4dec885dfbb Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Thu, 16 Mar 2023 22:02:56 -0400 Subject: [PATCH] fixed exit bugs --- source/funkin/FreeplayState.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/funkin/FreeplayState.hx b/source/funkin/FreeplayState.hx index c43a9142c..622625f16 100644 --- a/source/funkin/FreeplayState.hx +++ b/source/funkin/FreeplayState.hx @@ -753,6 +753,10 @@ class FreeplayState extends MusicBeatSubstate if (controls.BACK && !typing.hasFocus) { + FlxTween.globalManager.clear(); + FlxTimer.globalManager.clear(); + dj.onIntroDone.removeAll(); + FlxG.sound.play(Paths.sound('cancelMenu')); // FlxTween.tween(dj, {x: -dj.width}, 0.2, {ease: FlxEase.quartOut});