Triggers
Fire any action automatically when a variable reaches, drops to, equals, or passes an interval value.
A trigger watches a variable and fires an action the moment the variable meets a condition. Triggers are how progression reacts to play: start the win scene when Score reaches 100, show a game over screen when Health drops to 0, play a sound every 10 coins.
Triggers live in the Triggers tab of the Progression section. Click the + button in the header to add one; there's no limit on how many you can create.
Configuring a Trigger
Opening a trigger shows its Progression Properties, with three parts:
Variable selects which variable the trigger watches.
Condition pairs a comparison with a value (default is Reaches 100).
Action is what fires when the condition is met. Any action available on the platform can be used, including starting a scene, showing or hiding a layer, opening a URL, firing a tracker, or even another Update Progression.
Conditions
Reaches
The variable is greater than or equal to the value
Once
Drops to
The variable is less than or equal to the value
Once
Equals
The variable is exactly equal to the value
Whenever it lands on the value
Every
The variable passes each multiple of the value
Once per interval passed
Reaches and Drops to are threshold conditions, so they fire a single time when the line is crossed. Use them for outcomes like winning, losing, or unlocking.
Every fires once per interval, and catches skipped intervals. If the value is set to Every 4 and the variable jumps from 20 to 10 in a single update, the action fires twice, once for each interval passed.
Common Patterns
Win condition: Score Reaches 100, action starts your end card scene.
Lose condition: Health Drops to 0, action starts your fail scene.
Milestone feedback: Score Every 10, action triggers a reward sound or animation.
Exact-state logic: Moves Equals 0, action shows an out-of-moves message.
Last updated