final fix for tutorial i guess

This commit is contained in:
codeeater_ 2021-07-23 17:52:30 +03:00 committed by GitHub
parent d8f679a659
commit 0c01aad72f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4449,10 +4449,15 @@ class PlayState extends MusicBeatState
if (curSong == 'Tutorial' && dad.curCharacter == 'gf')
{
if (curBeat % 2 == 1 && dad.animOffsets.exists('danceLeft'))
dad.playAnim('danceLeft');
if (curBeat % 2 == 0 && dad.animOffsets.exists('danceRight'))
dad.playAnim('danceRight');
if (curStep < 64 || SONG.notes[Math.floor(curStep / 16)].mustHitSection)
dad.dance();
else
{
if (curStep % 2 == 0 && dad.animOffsets.exists('danceLeft'))
dad.playAnim('danceLeft', true);
else if (curStep % 2 == 1 && dad.animOffsets.exists('danceRight'))
dad.playAnim('danceRight', true);
}
}
if (SONG.notes[Math.floor(curStep / 16)] != null)