get path
Problem it solves
You want to check the waypoints stored inside a path, such as to spawn collectible coins at each checkpoint location.
What this block does
Returns the original array of tile locations that make up the path.
The block
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| tmpath | TilemapPath | path | The path object to inspect. |
Returns
tiles.Location[] — The list of tile locations stored in the path.
Example
let myPath = TilemapPath.create_path([tiles.getTileLocation(2, 2), tiles.getTileLocation(5, 5)]) let points = TilemapPath.get_path(myPath)
Add the extension
Add github:UnsignedArduino/TilemapPath to your project, or open: Import TilemapPath.