clicked-based waypoints

Introduction: 
Waypoints is a component for all forms of pathfinding and it is the final step thereof. Whether is a space-based (see GemCraft games on Steam) or node-based (see CreeperWorld1 and 3). it serves as finished product of a pathfinding. However waypoints has other functions than pathfinding. For example, click-based waypoint. 

Concept: 
In pathfinding, the waypoints points are set by calculation and scanning while this one adds the points where being clicked.  In both ways, waypoints use lists to do the job. 

There are few ways to propel actors according to the waypoints. 
1. Always and Actors > Position
2. Actors > motion. 

One full solution
In this case, the solution is 
initialisation


  the click event. 

The core (Always) 



for diagnosis purposes: 

Download (SWF) 

Source: This image is made with Microsoft paint form 1 color and 64 * 64 dimension. 
gif > JPEG > HEIC not in sequences Then expand then repeat. the steps multiple times. 

The similar events can be found in the bottom flawed pathfinding page

No comments:

Post a Comment