diff --git a/source/funkin/ui/freeplay/FreeplayState.hx b/source/funkin/ui/freeplay/FreeplayState.hx index b4e72ef4a..507c44758 100644 --- a/source/funkin/ui/freeplay/FreeplayState.hx +++ b/source/funkin/ui/freeplay/FreeplayState.hx @@ -1646,7 +1646,9 @@ class FreeplayState extends MusicBeatSubState FunkinSound.playMusic('freakyMenu', { overrideExisting: true, - restartTrack: false + restartTrack: false, + // Continue playing this music between states, until a different music track gets played. + persist: true }); FlxG.sound.music.fadeIn(4.0, 0.0, 1.0); close(); diff --git a/source/funkin/ui/mainmenu/MainMenuState.hx b/source/funkin/ui/mainmenu/MainMenuState.hx index 685626cba..13a7c7395 100644 --- a/source/funkin/ui/mainmenu/MainMenuState.hx +++ b/source/funkin/ui/mainmenu/MainMenuState.hx @@ -183,7 +183,9 @@ class MainMenuState extends MusicBeatState FunkinSound.playMusic('freakyMenu', { overrideExisting: true, - restartTrack: false + restartTrack: false, + // Continue playing this music between states, until a different music track gets played. + persist: true }); } diff --git a/source/funkin/ui/story/StoryMenuState.hx b/source/funkin/ui/story/StoryMenuState.hx index 09af08b22..d5a3ce892 100644 --- a/source/funkin/ui/story/StoryMenuState.hx +++ b/source/funkin/ui/story/StoryMenuState.hx @@ -242,7 +242,9 @@ class StoryMenuState extends MusicBeatState FunkinSound.playMusic('freakyMenu', { overrideExisting: true, - restartTrack: false + restartTrack: false, + // Continue playing this music between states, until a different music track gets played. + persist: true }); } diff --git a/source/funkin/ui/title/TitleState.hx b/source/funkin/ui/title/TitleState.hx index 1b2816936..f9a0f7a0c 100644 --- a/source/funkin/ui/title/TitleState.hx +++ b/source/funkin/ui/title/TitleState.hx @@ -233,6 +233,7 @@ class TitleState extends MusicBeatState startingVolume: 0.0, overrideExisting: true, restartTrack: false, + // Continue playing this music between states, until a different music track gets played. persist: true }); // Fade from 0.0 to 1 over 4 seconds