diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-13 22:32:21 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-13 22:32:21 -0500 |
commit | 73c9b0fb4eb35e73d0005f896462e748a207d2b1 (patch) | |
tree | c539f7f81b2cc32c640faa85d468611c67b55447 /res/scripts/map2.lua | |
parent | 470b1d43fb6f8e17624ee90f87270de5bd6ff77e (diff) | |
download | tanetane-73c9b0fb4eb35e73d0005f896462e748a207d2b1.tar.gz tanetane-73c9b0fb4eb35e73d0005f896462e748a207d2b1.tar.bz2 tanetane-73c9b0fb4eb35e73d0005f896462e748a207d2b1.zip |
Added sfx to electrocution event
Diffstat (limited to 'res/scripts/map2.lua')
-rw-r--r-- | res/scripts/map2.lua | 4 |
1 files changed, 4 insertions, 0 deletions
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() | |||
29 | DisplayMessage("* ...?", "", SpeakerType.NONE) | 29 | DisplayMessage("* ...?", "", SpeakerType.NONE) |
30 | WaitForEndOfMessage() | 30 | WaitForEndOfMessage() |
31 | 31 | ||
32 | PlaySound("lightning_crackle.wav") | ||
33 | Delay(1196) | ||
34 | |||
32 | local lucasPos = GetPosition("lucas") | 35 | local lucasPos = GetPosition("lucas") |
33 | CreateAnimatedSpriteAtPosition("lightning_from_mailbox", "lightning", lucasPos:x() + 56, lucasPos:y() - 72, "strike", Direction.DOWN_LEFT, SpriteLayer.ABOVE) | 36 | CreateAnimatedSpriteAtPosition("lightning_from_mailbox", "lightning", lucasPos:x() + 56, lucasPos:y() - 72, "strike", Direction.DOWN_LEFT, SpriteLayer.ABOVE) |
34 | 37 | ||
38 | PlaySound("lightning_explosion.wav") | ||
35 | SetDirection("lucas", Direction.DOWN) | 39 | SetDirection("lucas", Direction.DOWN) |
36 | SetAnimation("lucas", "lightning_electrocute!") | 40 | SetAnimation("lucas", "lightning_electrocute!") |
37 | WaitForAnimation("lucas") | 41 | WaitForAnimation("lucas") |