MakeCode Games!

A fan-made community library of MakeCode Arcade games. Visit MakeCode Arcade to make a game!

← Back to extensions

Tilemap Path

Create multi-point waypoint paths on tilemaps for sprites to follow with built-in obstacle avoidance.

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

$tmpath get path block

Parameters

NameTypeDefaultMeaning
tmpathTilemapPathpathThe 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.