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:
parent
1fde59f999
commit
711e0a6b75
|
@ -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();
|
||||
|
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue