diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 10:21:50 -0500 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2021-02-28 10:21:50 -0500 |
commit | 0ca04799aa1fecbde5da7d9f32dae566b9a9788e (patch) | |
tree | db479fd2f9a68d4bcd4ee415a9f025f3f28ae047 /res/scripts | |
parent | b3c8a3ab263e2312a35ef68ffb56217eeb619803 (diff) | |
download | tanetane-0ca04799aa1fecbde5da7d9f32dae566b9a9788e.tar.gz tanetane-0ca04799aa1fecbde5da7d9f32dae566b9a9788e.tar.bz2 tanetane-0ca04799aa1fecbde5da7d9f32dae566b9a9788e.zip |
Abstracted changes of sprite.controllable in scripts
Diffstat (limited to 'res/scripts')
-rw-r--r-- | res/scripts/hallucination_hot_spring.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/scripts/hallucination_hot_spring.lua b/res/scripts/hallucination_hot_spring.lua index 4e3ca44..c432eb3 100644 --- a/res/scripts/hallucination_hot_spring.lua +++ b/res/scripts/hallucination_hot_spring.lua | |||
@@ -16,7 +16,7 @@ end | |||
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 | -- Soft cutscene start; don't show bars but do take away control | 18 | -- Soft cutscene start; don't show bars but do take away control |
19 | getSprite(getPlayerSprite()).controllable = false | 19 | DisablePlayerControl() |
20 | character():halt(getPlayerSprite()) | 20 | character():halt(getPlayerSprite()) |
21 | 21 | ||
22 | -- Leave the rest of the party behind and have Lucas wade into the hot spring | 22 | -- Leave the rest of the party behind and have Lucas wade into the hot spring |
@@ -48,10 +48,10 @@ function hallucination_hot_spring.enter_hot_spring() | |||
48 | SetPosition("duster", -100, -100) | 48 | SetPosition("duster", -100, -100) |
49 | SetPosition("boney", -100, -100) | 49 | SetPosition("boney", -100, -100) |
50 | ChangeMap("underwater_start", "spawn", ChangeMapOptions.DO_NOT_FADE) | 50 | ChangeMap("underwater_start", "spawn", ChangeMapOptions.DO_NOT_FADE) |
51 | getSprite(getPlayerSprite()).controllable = false | 51 | DisablePlayerControl() |
52 | Delay(500) | 52 | Delay(500) |
53 | RemoveFadeout(1000) | 53 | RemoveFadeout(1000) |
54 | getSprite(getPlayerSprite()).controllable = true | 54 | EnablePlayerControl() |
55 | end | 55 | end |
56 | end | 56 | end |
57 | 57 | ||