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.

stop following path

Problem it solves

You want an enemy guard to instantly abandon their patrol route when they spot the player or get hit.

What this block does

Interrupts the path following for a sprite, stopping their movement and canceling the rest of the route.

The block

sprite $sprite stop following path block

Parameters

NameTypeDefaultMeaning
spriteSpritemySpriteThe sprite that should stop following its path.

Example

let guard = sprites.create(img`.`, SpriteKind.Enemy)
TilemapPath.stop_follow_path(guard)

Add the extension

Add github:UnsignedArduino/TilemapPath to your project, or open: Import TilemapPath.