GF DANCE IN TUTORIAL FIX

This commit is contained in:
Infinite Jackal 2021-05-30 19:04:51 +03:00 committed by GitHub
parent b23b9a6076
commit 6c70fd92e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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