From aae3bf37e14f376caaf1410c4c725d4cf79ea889 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Mon, 9 Nov 2020 15:26:10 -0800 Subject: [PATCH] fixed freeplay score offset shit --- source/FreeplayState.hx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/FreeplayState.hx b/source/FreeplayState.hx index b402456ba..5002fff57 100644 --- a/source/FreeplayState.hx +++ b/source/FreeplayState.hx @@ -119,6 +119,10 @@ class FreeplayState extends MusicBeatState super.update(elapsed); lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.4)); + + if (Math.abs(lerpScore - intendedScore) <= 10) + lerpScore = intendedScore; + scoreText.text = "PERSONAL BEST:" + lerpScore; var upP = controls.UP_P;