Game Development Reference
In-Depth Information
With the parallel node at every update, both of its children will be updated, allowing
us to continue patrolling while we have a timer running. We want two things to hap-
pen if
donePatrolling
is
false
: the ship should continue to patrol and the timer
should start to run. RAIN supports copying and pasting of nodes, so right-click on the
Constraint
node and select
Copy
, then right-click on the
sequencer
node and click
on
Paste
. The node will be copied with its children, so delete the newly copied
way-
pointpatrol
and the
move
node. Then, add a
timer
action node below the second
Constraint
node, and set the time to 5 seconds. Now, the screen should look like
this: