Difference between revisions of "Trigger"
From Castle Wiki
m |
|||
Line 31: | Line 31: | ||
* When this loses a tag | * When this loses a tag | ||
=== Motion === | === [[Motion]] === | ||
* When velocity changes | * When velocity changes |
Revision as of 20:08, 13 May 2022
A Trigger is the part of a Rule that describes when to run that rule. All rules have exactly one trigger.
Typically, triggers describe events that might happen while a Card is playing. For example, to destroy a block when the player taps the block, use the When this is tapped trigger, followed by the Destroy this actor Response.
List of triggers
Castle will only show triggers that are available for the Behaviors being used on the given Blueprint. For example, if the blueprint does not use the Analog Stick, then the "When the analog stick input ends" trigger will not appear.
General
Controls
- When this is tapped
- While this is pressed
- When a touch begins on this
- When a touch ends on this
- When analog stick input begins
- When analog stick input ends
- When a drag starts on this
- When a drag stops on this
- When this is slung
State
Motion
- When velocity changes
- When this stops moving
Clock
- When the clock reaches a beat
- When the clock reaches a bar
Sound
- When a track plays a note
Camera
- When this enters the camera viewport
- When this exits the camera viewport
Draw
- When the animation ends
- When the animation loops
- When the animation frame changes
- When the animation reaches a specific frame