From 0c01aad72f2fca3db70a277de8dbd1a15c688563 Mon Sep 17 00:00:00 2001 From: codeeater_ <55358751+toxichead@users.noreply.github.com> Date: Fri, 23 Jul 2021 17:52:30 +0300 Subject: [PATCH] final fix for tutorial i guess --- source/PlayState.hx | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/source/PlayState.hx b/source/PlayState.hx index 7f05745..96758dc 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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)