Skip to content

Commit ab5bda3

Browse files
committed
fix: Character Select cursor moves properly at lower framerates
1 parent 777978f commit ab5bda3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎source/funkin/ui/charSelect/CharSelectSubState.hx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -885,8 +885,8 @@ class CharSelectSubState extends MusicBeatSubState
885885
cursorLocIntended.x += cursorOffsetX;
886886
cursorLocIntended.y += cursorOffsetY;
887887

888-
cursor.x = MathUtil.coolLerp(cursor.x, cursorLocIntended.x, lerpAmnt);
889-
cursor.y = MathUtil.coolLerp(cursor.y, cursorLocIntended.y, lerpAmnt);
888+
cursor.x = MathUtil.smoothLerp(cursor.x, cursorLocIntended.x, elapsed, 0.1);
889+
cursor.y = MathUtil.smoothLerp(cursor.y, cursorLocIntended.y, elapsed, 0.1);
890890

891891
cursorBlue.x = MathUtil.coolLerp(cursorBlue.x, cursor.x, lerpAmnt * 0.4);
892892
cursorBlue.y = MathUtil.coolLerp(cursorBlue.y, cursor.y, lerpAmnt * 0.4);

0 commit comments

Comments
 (0)