Which way? Thata way, no thata away! Waypoints.
As a side project I have been working on a Top Down Game Template so you can make games similiar to Shadowgrounds, Diablo etc.
I have been working with waypoint navigation as the video shows.
In the video example I have put two crawlers in to the scene and gave them the same script.
I give them a different waypoint controller target. This waypoint controller then takes care of its selected target.
The waypoint controller has 4 pivots as targets placed around the map for the target to move to. The amount of pivots can be more, any sensible amount.
There is also a false waypoint target. If you drag this into the waypoint controller, say in its 4th spot. The target will then after the 3rd waypoint go to the first one.
in the video the top crawler has two active waypoints and two waypoints that are false causing it to go back and forth. While the other crawler has all four active.
The great thing is its a standard template, drop them in game place your pivots and just drag which ever pivots/waypoints in to the slots from first to last, any extra slots take the false waypoint.
More options will follow for waypoints like a random waypoint.
I have already done something with animation so you only have to type Walk or Run into the slot and it works.
Hope thats all clear.
- 3
3 Comments
Recommended Comments