From ab5bda3ee573a6e03595ec6941e6de38df851889 Mon Sep 17 00:00:00 2001 From: Cameron Taylor Date: Tue, 1 Oct 2024 01:02:26 -0400 Subject: [PATCH] fix: Character Select cursor moves properly at lower framerates --- source/funkin/ui/charSelect/CharSelectSubState.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/funkin/ui/charSelect/CharSelectSubState.hx b/source/funkin/ui/charSelect/CharSelectSubState.hx index 83bf15e9d5..4eb975e8af 100644 --- a/source/funkin/ui/charSelect/CharSelectSubState.hx +++ b/source/funkin/ui/charSelect/CharSelectSubState.hx @@ -885,8 +885,8 @@ class CharSelectSubState extends MusicBeatSubState cursorLocIntended.x += cursorOffsetX; cursorLocIntended.y += cursorOffsetY; - cursor.x = MathUtil.coolLerp(cursor.x, cursorLocIntended.x, lerpAmnt); - cursor.y = MathUtil.coolLerp(cursor.y, cursorLocIntended.y, lerpAmnt); + cursor.x = MathUtil.smoothLerp(cursor.x, cursorLocIntended.x, elapsed, 0.1); + cursor.y = MathUtil.smoothLerp(cursor.y, cursorLocIntended.y, elapsed, 0.1); cursorBlue.x = MathUtil.coolLerp(cursorBlue.x, cursor.x, lerpAmnt * 0.4); cursorBlue.y = MathUtil.coolLerp(cursorBlue.y, cursor.y, lerpAmnt * 0.4);