1
0
Fork 0
mirror of https://github.com/ninjamuffin99/Funkin.git synced 2025-01-03 02:37:28 +00:00

fix: Main menu music doesn't cut out when switching states anymore.

This commit is contained in:
EliteMasterEric 2024-10-02 01:57:25 -04:00 committed by Cameron Taylor
parent 1fde59f999
commit 711e0a6b75
4 changed files with 10 additions and 3 deletions

View file

@ -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();

View file

@ -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
});
}

View file

@ -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
});
}

View file

@ -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