diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index fccfcc440..05eb6e2b7 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -234,6 +234,7 @@ class FreeplayState extends MusicBeatState if (controls.BACK) { + FlxG.sound.play(Paths.sound('cancelMenu')); FlxG.switchState(new MainMenuState()); } diff --git a/source/ui/OptionsState.hx b/source/ui/OptionsState.hx index da51df269..ce28f5a31 100644 --- a/source/ui/OptionsState.hx +++ b/source/ui/OptionsState.hx @@ -137,7 +137,10 @@ class Page extends FlxGroup function updateEnabled(elapsed:Float) { if (canExit && controls.BACK) + { + FlxG.sound.play(Paths.sound('cancelMenu')); exit(); + } } function set_enabled(value:Bool)