diff options
| author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-14 16:13:08 -0500 |
|---|---|---|
| committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-14 16:13:08 -0500 |
| commit | ce0628c5ad96e094db12a67d4e98b445fa873ad3 (patch) | |
| tree | 94a67903059685969085f7ee5724b9960c74d3f6 /res/scripts/map2.lua | |
| parent | 73c9b0fb4eb35e73d0005f896462e748a207d2b1 (diff) | |
| download | tanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.tar.gz tanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.tar.bz2 tanetane-ce0628c5ad96e094db12a67d4e98b445fa873ad3.zip | |
Added map fadeouts
Screen fadeouts and map fadeouts are now handled by the effect system.
Diffstat (limited to 'res/scripts/map2.lua')
| -rw-r--r-- | res/scripts/map2.lua | 6 |
1 files changed, 6 insertions, 0 deletions
| 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 | |||
| 26 | 26 | ||
| 27 | function map2.mailbox_lightning() | 27 | function map2.mailbox_lightning() |
| 28 | StartCutscene() | 28 | StartCutscene() |
| 29 | FadeMap(500, 0.5) | ||
| 30 | WaitForMapFade() | ||
| 31 | |||
| 29 | DisplayMessage("* ...?", "", SpeakerType.NONE) | 32 | DisplayMessage("* ...?", "", SpeakerType.NONE) |
| 30 | WaitForEndOfMessage() | 33 | WaitForEndOfMessage() |
| 31 | 34 | ||
| @@ -44,6 +47,9 @@ function map2.mailbox_lightning() | |||
| 44 | SetAnimation("lucas", "lightning_collapse!") | 47 | SetAnimation("lucas", "lightning_collapse!") |
| 45 | WaitForAnimation("lucas") | 48 | WaitForAnimation("lucas") |
| 46 | 49 | ||
| 50 | FadeMap(500, 0.0) | ||
| 51 | WaitForMapFade() | ||
| 52 | |||
| 47 | DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) | 53 | DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) |
| 48 | WaitForEndOfMessage() | 54 | WaitForEndOfMessage() |
| 49 | HideCutsceneBars() | 55 | HideCutsceneBars() |
