Game Development Reference
In-Depth Information
This is all of the scene setup that we need to specify routes and locations for the
character to walk. However, we will need to customize the behavior tree to randomly
choose different points to patrol to.
Create a new behavior tree for our character and call it Patrol . Open the behavior
tree editor, and below the new root node, create a Random node by right-clicking
on the root and navigating to Create | Decisions | Random . This creates a node
that randomly selects one of its children to execute. Don't worry too much about
how the different nodes work in the RAIN behavior tree for now; we will go into
Search WWH ::




Custom Search