Merge pull request #638 from toxichead/patch-1

GF DANCE IN TUTORIAL FIX
This commit is contained in:
Kade M 2021-05-30 14:28:05 -07:00 committed by GitHub
commit b2af14e752
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3371,6 +3371,13 @@ class PlayState extends MusicBeatState
}
#end
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 (SONG.notes[Math.floor(curStep / 16)] != null)
{
if (SONG.notes[Math.floor(curStep / 16)].changeBPM)
@ -3382,7 +3389,7 @@ class PlayState extends MusicBeatState
// Conductor.changeBPM(SONG.bpm);
// Dad doesnt interupt his own notes
if (SONG.notes[Math.floor(curStep / 16)].mustHitSection)
if (SONG.notes[Math.floor(curStep / 16)].mustHitSection && dad.curCharacter != 'gf')
dad.dance();
}
// FlxG.log.add('change bpm' + SONG.notes[Std.int(curStep / 16)].changeBPM);