From f0f1ab213393119d80ffdd151d7e5c5f716123d2 Mon Sep 17 00:00:00 2001 From: NeeEoo Date: Sat, 13 Apr 2024 22:45:00 +0200 Subject: [PATCH] Fix offset focus --- source/funkin/editors/stager/StageEditor.hx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/source/funkin/editors/stager/StageEditor.hx b/source/funkin/editors/stager/StageEditor.hx index e38565e3..fec13b2a 100644 --- a/source/funkin/editors/stager/StageEditor.hx +++ b/source/funkin/editors/stager/StageEditor.hx @@ -472,9 +472,8 @@ class StageEditor extends UIState { } function focusCharacter(char:Character) { - // TODO: fix this being incorrect var point = char.getCameraPosition(); - nextScroll.set(point.x, point.y); + nextScroll.set(point.x - stageCamera.width / 2, point.y - stageCamera.height / 2); setZoom(stage.defaultZoom); }