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
Parameters
| Name | Type | Default | Meaning |
|---|---|---|---|
| sprite | Sprite | mySprite | The 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.