mirror of
https://github.com/ninjamuffin99/Funkin.git
synced 2024-11-27 17:33:03 +00:00
week score lerp fix INSPIRED BY PR #447 BY @jvc2
https://github.com/ninjamuffin99/Funkin/pull/447
This commit is contained in:
parent
03ed9bc2be
commit
d63e132d71
|
@ -227,6 +227,9 @@ class StoryMenuState extends MusicBeatState
|
||||||
// scoreText.setFormat('VCR OSD Mono', 32);
|
// scoreText.setFormat('VCR OSD Mono', 32);
|
||||||
lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.5));
|
lerpScore = Math.floor(FlxMath.lerp(lerpScore, intendedScore, 0.5));
|
||||||
|
|
||||||
|
if (Math.abs(lerpScore - intendedScore) <= 10)
|
||||||
|
lerpScore = intendedScore;
|
||||||
|
|
||||||
scoreText.text = "WEEK SCORE:" + lerpScore;
|
scoreText.text = "WEEK SCORE:" + lerpScore;
|
||||||
|
|
||||||
txtWeekTitle.text = weekNames[curWeek].toUpperCase();
|
txtWeekTitle.text = weekNames[curWeek].toUpperCase();
|
||||||
|
|
Loading…
Reference in a new issue