From d707c5efc6057b5221c974459ddb125dbbf24c03 Mon Sep 17 00:00:00 2001 From: Kade M Date: Sat, 5 Jun 2021 11:12:10 -0700 Subject: [PATCH] fix spooky kids dance --- source/Character.hx | 1 + source/PlayState.hx | 11 +++-------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/source/Character.hx b/source/Character.hx index 3e8367c..0f8ed7c 100644 --- a/source/Character.hx +++ b/source/Character.hx @@ -537,6 +537,7 @@ class Character extends FlxSprite dadVar = 6.1; if (holdTimer >= Conductor.stepCrochet * dadVar * 0.001) { + trace('dance'); dance(); holdTimer = 0; } diff --git a/source/PlayState.hx b/source/PlayState.hx index b521a86..b1b47ca 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -1788,6 +1788,7 @@ class PlayState extends MusicBeatState scoreTxt.text = Ratings.CalculateRanking(songScore,songScoreDef,nps,maxNPS,accuracy); if (FlxG.save.data.accuracyDisplay) scoreTxt.text = "Score: " + songScore; + if (FlxG.keys.justPressed.ENTER && startedCountdown && canPause) { persistentUpdate = false; @@ -3317,6 +3318,8 @@ class PlayState extends MusicBeatState gf.playAnim('scared', true); } + var danced:Bool = false; + override function stepHit() { super.stepHit(); @@ -3333,10 +3336,6 @@ class PlayState extends MusicBeatState } #end - if (dad.curCharacter == 'spooky' && curStep % 4 == 2) - { - // dad.dance(); - } // yes this updates every step. @@ -3425,10 +3424,6 @@ class PlayState extends MusicBeatState boyfriend.playAnim('idle'); } - if (!dad.animation.curAnim.name.startsWith("sing")) - { - dad.dance(); - } if (curBeat % 8 == 7 && curSong == 'Bopeebo') {