Funkin icon indicating copy to clipboard operation
Funkin copied to clipboard

[BUGFIX] Fixed `cancelMenu` sound not playing after switching state

Open AppleHair opened this issue 1 year ago • 1 comments

So in StoryMenuState and OptionsState, the cancelMenu sound doesn't play when coming back to MainMenuState, and in MainMenuState, the cancelMenu sound doesn't play when coming back to TitleState. This happens because MusicBeatState's startOutro runs FunkinSound.stopAllAudio, which means every sound played before the call to FlxG.switchState, which calls startOutro, will be stopped. To fix this, instead of calling FunkinSound.playOnce BEFORE FlxG.switchState, we call it AFTER FlxG.switchState. Easy!

AppleHair avatar Jul 09 '24 17:07 AppleHair

👍

EliteMasterEric avatar Jul 10 '24 22:07 EliteMasterEric