diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-26 16:47:24 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-26 16:47:24 -0500 |
commit | d5e3bc615b300eb985d59b91ebd1f2f1a4d4e107 (patch) | |
tree | 7356a6796ff166a85b8f7accb20e82596f200a63 /res/scripts/hallucination_hot_spring.lua | |
parent | 46bf85e7b85b8d3e61f0d2b276450c4f439b5c30 (diff) | |
download | tanetane-d5e3bc615b300eb985d59b91ebd1f2f1a4d4e107.tar.gz tanetane-d5e3bc615b300eb985d59b91ebd1f2f1a4d4e107.tar.bz2 tanetane-d5e3bc615b300eb985d59b91ebd1f2f1a4d4e107.zip |
Added first underwater map
Also spruced up the event that takes you there. Also fixed an issue where transplantParty wouldn't take the medium of the new position into consideration. Also added a constructor to the lua version of vec2i.
Diffstat (limited to 'res/scripts/hallucination_hot_spring.lua')
-rw-r--r-- | res/scripts/hallucination_hot_spring.lua | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/res/scripts/hallucination_hot_spring.lua b/res/scripts/hallucination_hot_spring.lua index df4084c..4e3ca44 100644 --- a/res/scripts/hallucination_hot_spring.lua +++ b/res/scripts/hallucination_hot_spring.lua | |||
@@ -15,15 +15,20 @@ end | |||
15 | 15 | ||
16 | function hallucination_hot_spring.enter_hot_spring() | 16 | function hallucination_hot_spring.enter_hot_spring() |
17 | if gamestate.ionia_in_water then | 17 | if gamestate.ionia_in_water then |
18 | StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) | 18 | -- Soft cutscene start; don't show bars but do take away control |
19 | getSprite(getPlayerSprite()).controllable = false | ||
20 | character():halt(getPlayerSprite()) | ||
21 | |||
22 | -- Leave the rest of the party behind and have Lucas wade into the hot spring | ||
19 | character():breakUpParty(getPlayerSprite()) | 23 | character():breakUpParty(getPlayerSprite()) |
20 | getSprite(getPlayerSprite()).paused = false | ||
21 | character():moveInDirection(getPlayerSprite(), Direction.UP) | 24 | character():moveInDirection(getPlayerSprite(), Direction.UP) |
22 | Delay(500) | 25 | Delay(500) |
23 | character():stopDirecting(getPlayerSprite()) | 26 | character():stopDirecting(getPlayerSprite()) |
24 | getSprite(getPlayerSprite()).paused = true | ||
25 | SetDirection("lucas", Direction.DOWN) | 27 | SetDirection("lucas", Direction.DOWN) |
26 | Delay(1000) | 28 | Delay(1000) |
29 | |||
30 | -- Show the cutscene bars when he gets surprised | ||
31 | StartCutscene(CutsceneOptions.DO_NOT_CHANGE_ANIMATION) | ||
27 | ShowExpression("lucas", "surprise") | 32 | ShowExpression("lucas", "surprise") |
28 | Delay(1000) | 33 | Delay(1000) |
29 | RemoveExpression("lucas") | 34 | RemoveExpression("lucas") |
@@ -32,6 +37,21 @@ function hallucination_hot_spring.enter_hot_spring() | |||
32 | Delay(200) | 37 | Delay(200) |
33 | PlaySound("splash_submerge.wav") | 38 | PlaySound("splash_submerge.wav") |
34 | WaitForAnimation("lucas") | 39 | WaitForAnimation("lucas") |
40 | Delay(1000) | ||
41 | |||
42 | -- After we fade to black, move the rest of the party offscreen. | ||
43 | -- We need to remove control again right after the map change because | ||
44 | -- ChangeMap automatically gives it back. | ||
45 | FadeToBlack(1000) | ||
46 | HideCutsceneBars() | ||
47 | SetPosition("kuma", -100, -100) | ||
48 | SetPosition("duster", -100, -100) | ||
49 | SetPosition("boney", -100, -100) | ||
50 | ChangeMap("underwater_start", "spawn", ChangeMapOptions.DO_NOT_FADE) | ||
51 | getSprite(getPlayerSprite()).controllable = false | ||
52 | Delay(500) | ||
53 | RemoveFadeout(1000) | ||
54 | getSprite(getPlayerSprite()).controllable = true | ||
35 | end | 55 | end |
36 | end | 56 | end |
37 | 57 | ||