Supposing that you already know how to add behaviours to objects, the basic idea is this:
- make your object find an endpoint (there is always a start point and an endpoint even if you do fancy thinks like teletransportation o even a pathfinding loop, the start point is the actual x,y point where your pathfinder object is standing in the moment it starts moving towards the chosen path, the endpoint is the position you want your pathfinder to reach), it could be the position of another object or whatever you want depending on what you want to achieve. This can be achieved with the "find path" action.
- Use the on path found event in order to "tell" your object to start doing something the moment it finds the path toward the desired endpoint.
- In the on path found event use the action "Move along path" to tell the object to follow the path already found (pretty obvious maybe but just in case ) .