From 77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Tue, 6 Jul 2021 10:13:33 -0400 Subject: Added the ability to pan camera to a warp point --- res/scripts/common.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'res') diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 35eec22..46f2275 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua @@ -247,6 +247,10 @@ function PanToSprite(spriteName, length) camera():panToSprite(spriteId, length) end +function PanToWarpPoint(warpPoint, length) + camera():panToWarpPoint(warpPoint, length) +end + function WaitForPan() while camera():isPanning() do coroutine.yield() -- cgit 1.4.1