From 0ca04799aa1fecbde5da7d9f32dae566b9a9788e Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Sun, 28 Feb 2021 10:21:50 -0500 Subject: Abstracted changes of sprite.controllable in scripts --- res/scripts/hallucination_hot_spring.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'res') 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 function hallucination_hot_spring.enter_hot_spring() if gamestate.ionia_in_water then -- Soft cutscene start; don't show bars but do take away control - getSprite(getPlayerSprite()).controllable = false + DisablePlayerControl() character():halt(getPlayerSprite()) -- 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() SetPosition("duster", -100, -100) SetPosition("boney", -100, -100) ChangeMap("underwater_start", "spawn", ChangeMapOptions.DO_NOT_FADE) - getSprite(getPlayerSprite()).controllable = false + DisablePlayerControl() Delay(500) RemoveFadeout(1000) - getSprite(getPlayerSprite()).controllable = true + EnablePlayerControl() end end -- cgit 1.4.1