diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index 8e2549e..8c915cc 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -199,8 +199,7 @@ class FreeplayState extends MusicBeatState PlayState.isStoryMode = false; PlayState.storyDifficulty = curDifficulty; FlxG.switchState(new PlayState()); - if (FlxG.sound.music != null) - FlxG.sound.music.stop(); + } } diff --git a/source/PlayState.hx b/source/PlayState.hx index ff9c7b3..940127f 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -131,6 +131,7 @@ class PlayState extends MusicBeatState camGame = new FlxCamera(); camHUD = new FlxCamera(); camHUD.bgColor.alpha = 0; + FlxG.cameras.reset(camGame); FlxG.cameras.add(camHUD); diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index f0a4e88..4f078df 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -317,8 +317,7 @@ class StoryMenuState extends MusicBeatState PlayState.campaignScore = 0; new FlxTimer().start(1, function(tmr:FlxTimer) { - if (FlxG.sound.music != null) - FlxG.sound.music.stop(); + FlxG.switchState(new PlayState()); }); }