Controlling flows
Last updated
Last updated
The AFX system includes multiple nodes that you can use to control flows. This includes conditional branching, looping, and one time activation.
For example, if you wanted an object to begin moving, and to continue moving, after a collision took place, you could use a Toggle
node.
In this example, the Start
node sets the initial state of the Toggle
node, turning it off. A collision event would then turn on the Toggle
node, which would remain on and pass the update flow through to the Translate
node each frame.