Merge pull request #289 from theDetourist/idleanimsfix

Player 2 now plays idle animation properly when camera zooms in
This commit is contained in:
Kade M 2021-04-23 17:13:27 -07:00 committed by GitHub
commit fdc4c82fb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3881,7 +3881,15 @@ 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)
// Commented out until a reason to bring this back arises in the future
/* if (SONG.notes[Math.floor(curStep / 16)].mustHitSection)
dad.dance(); */
if(dad.animation.curAnim.name.startsWith('sing'))
if(dad.animation.finished)
dad.dance();
else
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);