diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2021-07-06 10:13:33 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2021-07-06 10:13:33 -0400 |
commit | 77fad1c341787f11ee3b8aeaa5c58fe6ebbdebb6 (patch) | |
tree | aa8addf2f54d3def01edb29944cacdebdcaf981b /res | |
parent | 8aedeaf12c7dbf35f2f75f1b063b76a4fad06f30 (diff) | |
download | tanetane-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.lua | 4 |
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) |
248 | end | 248 | end |
249 | 249 | ||
250 | function PanToWarpPoint(warpPoint, length) | ||
251 | camera():panToWarpPoint(warpPoint, length) | ||
252 | end | ||
253 | |||
250 | function WaitForPan() | 254 | function WaitForPan() |
251 | while camera():isPanning() do | 255 | while camera():isPanning() do |
252 | coroutine.yield() | 256 | coroutine.yield() |