Skip to main content

Module trigger_manager

Module trigger_manager 

Source
Expand description

§trigger_manager

Generic trigger system for JRPG maps. Triggers bind a script function to a tile area and fire when the player steps on, enters, or interacts with that area. Triggers can be sourced from Tiled custom properties, exported JS function-name conventions, or hand-authored config files.

The TriggerManager tracks active triggers and provides position-based queries used by the game loop.

Structs§

Trigger
A trigger bound to a specific tile or rectangular area on a map.
TriggerManager
Manages a collection of Triggers and determines which ones should fire given the player’s current (and previous) position.