mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-12-25 06:36:43 +00:00
fixed spamming issue with the buttons on the story menu
This commit is contained in:
parent
d97a32fb3a
commit
931aca8492
|
@ -230,15 +230,23 @@ class StoryMenuState extends MusicBeatState
|
||||||
|
|
||||||
var movedBack:Bool = false;
|
var movedBack:Bool = false;
|
||||||
var selectedWeek:Bool = false;
|
var selectedWeek:Bool = false;
|
||||||
|
var stopspamming = false;
|
||||||
function selectWeek()
|
function selectWeek()
|
||||||
{
|
{
|
||||||
if (weekUnlocked[curWeek])
|
if (weekUnlocked[curWeek])
|
||||||
|
{
|
||||||
|
if (stopspamming == true)
|
||||||
|
{
|
||||||
|
// no more spamming for u hahaha
|
||||||
|
}
|
||||||
|
if (stopspamming == false)
|
||||||
{
|
{
|
||||||
FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt);
|
FlxG.sound.play('assets/sounds/confirmMenu' + TitleState.soundExt);
|
||||||
|
|
||||||
grpWeekText.members[curWeek].week.animation.resume();
|
grpWeekText.members[curWeek].week.animation.resume();
|
||||||
grpWeekCharacters.members[1].animation.play('bfConfirm');
|
grpWeekCharacters.members[1].animation.play('bfConfirm');
|
||||||
|
stopspamming = true;
|
||||||
|
}
|
||||||
|
|
||||||
PlayState.storyPlaylist = weekData[curWeek];
|
PlayState.storyPlaylist = weekData[curWeek];
|
||||||
PlayState.isStoryMode = true;
|
PlayState.isStoryMode = true;
|
||||||
|
|
Loading…
Reference in a new issue