From 9f40e599364c827f9a80af44e4528cbfb37b6b14 Mon Sep 17 00:00:00 2001 From: lunarcleint <88809950+lunarcleint@users.noreply.github.com> Date: Thu, 13 Jul 2023 22:52:36 -0700 Subject: [PATCH] faster cam speed drag --- source/funkin/editors/character/CharacterEditor.hx | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/funkin/editors/character/CharacterEditor.hx b/source/funkin/editors/character/CharacterEditor.hx index b9509743..7d97dd25 100644 --- a/source/funkin/editors/character/CharacterEditor.hx +++ b/source/funkin/editors/character/CharacterEditor.hx @@ -232,6 +232,7 @@ class CharacterEditor extends UIState { private var movingCam:Bool = false; private var camDrag:FlxPoint = FlxPoint.get(0,0); + private var camDragSpeed:Float = 1.2; private var nextScroll:FlxPoint = FlxPoint.get(0,0); @@ -253,11 +254,13 @@ class CharacterEditor extends UIState { if (FlxG.mouse.justPressedMiddle) { FlxG.mouse.getScreenPosition(charCamera, camDrag); + camDrag *= camDragSpeed; camDrag += charCamera.scroll; } if (FlxG.mouse.pressedMiddle) { var pos = FlxG.mouse.getScreenPosition(charCamera); + pos *= camDragSpeed; nextScroll.set((camDrag.x - pos.x), (camDrag.y - pos.y)); }