Game Development Reference
In-Depth Information
We have to specify where we want the path to go. Since we want the green balls to go all
the way to the end of the path, we can type in
End.X
and
End.Y
, as shown in the follow-
ing screenshot. The end of the course is the pink block we had set up earlier. So in this
case,
Pathfinding
is finding a position of an object.
Once you have the
Find path
action set up, you should add another event. Select
BallGreen
and then select
On path found
, as shown in the following screenshot. Once a
path is found, we can perform an action.