summary refs log tree commit diff stats
path: root/res
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2021-07-06 10:13:33 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2021-07-06 10:13:33 -0400
commit77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6 (patch)
treeaa8addf2f54d3def01edb29944cacdebdcaf981b /res
parent8aedeaf12c7dbf35f2f75f1b063b76a4fad06f30 (diff)
downloadtanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.gz
tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.tar.bz2
tanetane-77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6.zip
Added the ability to pan camera to a warp point
Diffstat (limited to 'res')
-rw-r--r--res/scripts/common.lua4
1 files changed, 4 insertions, 0 deletions
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)
247 camera():panToSprite(spriteId, length) 247 camera():panToSprite(spriteId, length)
248end 248end
249 249
250function PanToWarpPoint(warpPoint, length)
251 camera():panToWarpPoint(warpPoint, length)
252end
253
250function WaitForPan() 254function WaitForPan()
251 while camera():isPanning() do 255 while camera():isPanning() do
252 coroutine.yield() 256 coroutine.yield()