diff options
Diffstat (limited to 'res/scripts/common.lua')
-rw-r--r-- | res/scripts/common.lua | 6 |
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 | ||
33 | function Delay(time) | ||
34 | while time > 0 do | ||
35 | time = time - coroutine.yield() | ||
36 | end | ||
37 | end | ||
38 | |||
33 | function StartCutscene() | 39 | function StartCutscene() |
34 | local playerId = getPlayerSprite() | 40 | local playerId = getPlayerSprite() |
35 | local playerSprite = getSprite(playerId) | 41 | local playerSprite = getSprite(playerId) |