diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-21 18:31:43 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-21 18:31:43 -0500 |
commit | f1118738d56d70989a9a131d6b370b73e8e3bc25 (patch) | |
tree | c6fcca0be1f2bb7db35d16f4b1cb38a7de3f632a /res/scripts/map2.lua | |
parent | 5df0d0616ee3996add0b14e0fb0becd6257d04a2 (diff) | |
download | tanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.tar.gz tanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.tar.bz2 tanetane-f1118738d56d70989a9a131d6b370b73e8e3bc25.zip |
Added frozen animation for cutscenes
The player's party will be set to "frozen" at the start of a cutscene and "still" at the end. "frozen" doesn't include idle animations, which are weird to show up during tense exchanges. A CutsceneOptions enum was introduced to be able to modify the growing number of things that StartCutscene() and HideCutsceneBars() do. Currently the lightning mailbox event uses it so that Lucas's animation is not reset to still (instead of the collapsed animation) after he's electrocuted.
Diffstat (limited to 'res/scripts/map2.lua')
-rw-r--r-- | res/scripts/map2.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index cb373b4..31b9e00 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua | |||
@@ -89,7 +89,7 @@ function map2.mailbox_lightning() | |||
89 | 89 | ||
90 | DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) | 90 | DisplayMessage("* It was lightning.\n\fAh.", "", SpeakerType.NONE) |
91 | WaitForEndOfMessage() | 91 | WaitForEndOfMessage() |
92 | HideCutsceneBars() | 92 | HideCutsceneBars(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) |
93 | end | 93 | end |
94 | 94 | ||
95 | function map2.approach_doria() | 95 | function map2.approach_doria() |
@@ -142,7 +142,7 @@ function map2.approach_doria() | |||
142 | SetAnimation("boney", "crouch") | 142 | SetAnimation("boney", "crouch") |
143 | StopSound(barkingNoise) | 143 | StopSound(barkingNoise) |
144 | PlaySound("boney_growl.wav") | 144 | PlaySound("boney_growl.wav") |
145 | SetAnimation("kuma", "still") | 145 | SetAnimation("kuma", "frozen") |
146 | Delay(1000) | 146 | Delay(1000) |
147 | 147 | ||
148 | SetAnimation("doria", "talk") | 148 | SetAnimation("doria", "talk") |