From ce0628c5ad96e094db12a67d4e98b445fa873ad3 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 14 Feb 2021 16:13:08 -0500 Subject: Added map fadeouts Screen fadeouts and map fadeouts are now handled by the effect system. --- res/scripts/map2.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'res/scripts/map2.lua') diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 8058aa2..12a5df0 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua @@ -26,6 +26,9 @@ end function map2.mailbox_lightning() StartCutscene() + FadeMap(500, 0.5) + WaitForMapFade() + DisplayMessage("* ...?", "", SpeakerType.NONE) WaitForEndOfMessage() @@ -44,6 +47,9 @@ function map2.mailbox_lightning() SetAnimation("lucas", "lightning_collapse!") WaitForAnimation("lucas") + FadeMap(500, 0.0) + WaitForMapFade() + DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) WaitForEndOfMessage() HideCutsceneBars() -- cgit 1.4.1