Movement
Movement
Types
Functions
Constructs a web walking builder
Grabs the closest tile on map relative to the given Locatable.
A collision map.
Returns the destination of the player, as represented by the red flag on the mini-map while traversing. If the player is not moving, this will return Tile.Nil.
Returns the amount of steps between the player and the location. This will return -1 if the amount of steps was indeterminate (for example, one of the locations wasn't loaded or they are both not on the same floor).
Note: this can be resource intensive, as it generates a path between these two locations to find the distance. This should only be used if you need an accurate measurement for the amount of steps required. Please consider using Tile.distanceTo for euclidean distance for the length of a straight line between these two points.
Returns the amount of steps between two locations. This will return -1 if the amount of steps was indeterminate (for example, one of the locations wasn't loaded or they are both not on the same floor).
Note: this can be resource intensive, as it generates a path between these two locations to find the distance. This should only be used if you need an accurate measurement for the amount of steps required. Please consider using Tile.distanceTo for euclidean distance for the length of a straight line between these two points.
The run energy of the player.
Creates a local path in the current region.
Uses web walking to walk to a destination
Uses web walking to walk to the nearest bank
Creates a new tile path.
Whether or not the location may be reached. This will return false if one of the locations is not loaded, they're not on the same plane, or the distance between them is 0.
Note: this can be resource intensive, as it generates a path between these two locations to determine if they're reachable. This should only be used if you need to be certain that the point is reachable. Please consider using Tile.distanceTo