Game Development Reference
In-Depth Information
Add an action and select BallGreen , and then select Move along path as shown in the
following screenshot. This will move the green ball along the path that it found.
Go ahead and try out the game. You will probably notice that the ball ignores the walls. In
order to fix this, we have to do two things. First, click on the PlaceTurret graphic and add
a Solid behavior, as shown in the following screenshot:
Then, we have to add another event. We have to add another action to the On start of lay-
out event. Add a green ball, and then add an Add obstacle action. This will add an
Obstacle for Pathfinding .
We want to put the PlaceTurret object as Obstacle , as shown in the following screenshot:
Search WWH ::




Custom Search