summary refs log tree commit diff stats
path: root/res/scripts/common.lua
diff options
context:
space:
mode:
Diffstat (limited to 'res/scripts/common.lua')
-rw-r--r--res/scripts/common.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/res/scripts/common.lua b/res/scripts/common.lua index 04f6c5a..75b86a8 100644 --- a/res/scripts/common.lua +++ b/res/scripts/common.lua
@@ -30,6 +30,12 @@ SpriteLayer = {
30 ABOVE = 1 30 ABOVE = 1
31} 31}
32 32
33function Delay(time)
34 while time > 0 do
35 time = time - coroutine.yield()
36 end
37end
38
33function StartCutscene() 39function StartCutscene()
34 local playerId = getPlayerSprite() 40 local playerId = getPlayerSprite()
35 local playerSprite = getSprite(playerId) 41 local playerSprite = getSprite(playerId)