From ec7bdd32e2ecd567c88a6dcad60430d30d2f34a8 Mon Sep 17 00:00:00 2001 From: EliteMasterEric Date: Fri, 6 Mar 2026 02:12:32 -0500 Subject: [PATCH] Adjust camera follow tween duration based on playback rate --- source/funkin/play/PlayState.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/funkin/play/PlayState.hx b/source/funkin/play/PlayState.hx index efa1e74af..1d0381484 100644 --- a/source/funkin/play/PlayState.hx +++ b/source/funkin/play/PlayState.hx @@ -3931,9 +3931,11 @@ class PlayState extends MusicBeatSubState @:nullSafety(Off) FlxG.camera.target = null; + var adjustedDuration:Float = duration * playbackRate; + // Follow tween! Caching it so we can cancel/pause it later if needed. var followPos:FlxPoint = cameraFollowPoint.getPosition() - FlxPoint.weak(FlxG.camera.width * 0.5, FlxG.camera.height * 0.5); - cameraFollowTween = FlxTween.tween(FlxG.camera.scroll, {x: followPos.x, y: followPos.y}, duration, { + cameraFollowTween = FlxTween.tween(FlxG.camera.scroll, {x: followPos.x, y: followPos.y}, adjustedDuration, { ease: ease, onComplete: function(_) {