ScriptLayerController (Metroid Prime 2)

From Retro Modding Wiki
Revision as of 19:43, 1 July 2023 by Duncathan (talk | contribs) (→‎States)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Properties

States

State Description
Arrived Sent by dynamic controllers when they finish loading.

It can be useful to send a Play message from the controller to itself using this state, to activate the layer as soon as it's finished loading.

Messages

Message Description
Increment Activates the target layer for the next time the area is loaded.

Dynamic controllers: begins loading the layer asynchronously. Does not activate the layer immediately.

Decrement Deactivates the target layer for the next time the area is loaded.

Dynamic controllers: unloads and deactivates the layer immediately.

Play Dynamic controllers: activates the target layer if it isn't yet active.

If the layer has not yet finished loading, it will load synchronously, blacking out the screen until finished.

Load Alias for Increment.
Unload Alias for Decrement.