From a1d01f64b420fdac3f039d13d31453100c7f9a8e Mon Sep 17 00:00:00 2001 From: Gede Hari Date: Thu, 10 Dec 2020 08:58:46 +0800 Subject: [PATCH] Freeplay song not continuing fade in when exiting freeplay menu --- source/MainMenuState.hx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/MainMenuState.hx b/source/MainMenuState.hx index cabf8f0..ecda7d3 100644 --- a/source/MainMenuState.hx +++ b/source/MainMenuState.hx @@ -95,6 +95,11 @@ class MainMenuState extends MusicBeatState override function update(elapsed:Float) { + if (FlxG.sound.music.volume < 1) + { + FlxG.sound.music.volume += 0.5 * FlxG.elapsed; + } + if (!selectedSomethin) { if (controls.UP_P)