diff --git a/source/StoryMenuState.hx b/source/StoryMenuState.hx index 1bdfa866e..d5338b2af 100644 --- a/source/StoryMenuState.hx +++ b/source/StoryMenuState.hx @@ -230,15 +230,19 @@ class StoryMenuState extends MusicBeatState var movedBack:Bool = false; var selectedWeek:Bool = false; - + var stopspamming:Bool = false; function selectWeek() { if (weekUnlocked[curWeek]) { - FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); + if (stopspamming == false) + { + FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt); - grpWeekText.members[curWeek].week.animation.resume(); - grpWeekCharacters.members[1].animation.play('bfConfirm'); + grpWeekText.members[curWeek].week.animation.resume(); + grpWeekCharacters.members[1].animation.play('bfConfirm'); + stopspamming = true; + } PlayState.storyPlaylist = weekData[curWeek]; PlayState.isStoryMode = true;