Sync story mode menu to the beat

This commit is contained in:
Merlin
2021-07-11 01:35:21 +02:00
parent 388c6215c7
commit c23f9738e3
2 changed files with 50 additions and 9 deletions

View File

@ -323,6 +323,9 @@ class StoryMenuState extends MusicBeatState
FlxG.switchState(new MainMenuState());
}
if (FlxG.sound.music != null)
Conductor.songPosition = FlxG.sound.music.time;
super.update(elapsed);
}
@ -474,4 +477,13 @@ class StoryMenuState extends MusicBeatState
FlxG.save.data.weekUnlocked = weekUnlocked.length - 1;
FlxG.save.flush();
}
override function beatHit()
{
super.beatHit();
grpWeekCharacters.members[0].bopHead();
grpWeekCharacters.members[1].bopHead();
grpWeekCharacters.members[2].bopHead();
}
}