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/map2.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'res/scripts/map2.lua') diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 1ef1235..8058aa2 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua @@ -29,9 +29,13 @@ function map2.mailbox_lightning() DisplayMessage("* ...?", "", SpeakerType.NONE) WaitForEndOfMessage() + PlaySound("lightning_crackle.wav") + Delay(1196) + local lucasPos = GetPosition("lucas") CreateAnimatedSpriteAtPosition("lightning_from_mailbox", "lightning", lucasPos:x() + 56, lucasPos:y() - 72, "strike", Direction.DOWN_LEFT, SpriteLayer.ABOVE) + PlaySound("lightning_explosion.wav") SetDirection("lucas", Direction.DOWN) SetAnimation("lucas", "lightning_electrocute!") WaitForAnimation("lucas") -- cgit 1.4.1