summary refs log tree commit diff stats
path: root/res/scripts/map2.lua
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2021-02-21 12:31:55 -0500
committerKelly Rauchenberger <fefferburbia@gmail.com>2021-02-21 12:31:55 -0500
commitecbe17b582803aaeaa9ccee88a3d093ff93a6cd3 (patch)
treeb7e14ae55b6c38992598b8571ed217bc8f249887 /res/scripts/map2.lua
parentf0eab98e417bf648261a9027bef91fe935af76cb (diff)
downloadtanetane-ecbe17b582803aaeaa9ccee88a3d093ff93a6cd3.tar.gz
tanetane-ecbe17b582803aaeaa9ccee88a3d093ff93a6cd3.tar.bz2
tanetane-ecbe17b582803aaeaa9ccee88a3d093ff93a6cd3.zip
Added sprite pausing
All sprites are now paused when a cutscene starts and unpaused when it ends. Pausing means that the CharacterSystem and BehaviourSystem will not process them in their tick. This allows specific sprites to be unpaused during cutscenes if movement is needed.

The player character is halted and made non-controllable by the script when the cutscene starts and made controllable again when it ends. It is important to remember that if interacting with a sprite that might be moving, you have to manually call Halt() on them in their script to make them stop moving.
Diffstat (limited to 'res/scripts/map2.lua')
-rw-r--r--res/scripts/map2.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/res/scripts/map2.lua b/res/scripts/map2.lua index 3c3a5d9..cb373b4 100644 --- a/res/scripts/map2.lua +++ b/res/scripts/map2.lua
@@ -172,3 +172,14 @@ function map2.approach_doria()
172 172
173 HideCutsceneBars() 173 HideCutsceneBars()
174end 174end
175
176function map2.talk_to_ionia()
177 Halt("ionia")
178 StartCutscene()
179 SetAnimation("ionia", "talk")
180 DisplayMessage("* Kumatora!", "Ionia", SpeakerType.MAN)
181 WaitForEndOfMessage()
182
183 SetAnimation("ionia", "still")
184 HideCutsceneBars()
185end