From 73c9b0fb4eb35e73d0005f896462e748a207d2b1 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sat, 13 Feb 2021 22:32:21 -0500 Subject: Added sfx to electrocution event --- res/scripts/common.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'res/scripts/common.lua') 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 = { ABOVE = 1 } +function Delay(time) + while time > 0 do + time = time - coroutine.yield() + end +end + function StartCutscene() local playerId = getPlayerSprite() local playerSprite = getSprite(playerId) -- cgit 1.4.1