This extension adds 2 blocks to use instead of the old follow block in Makecode Arcade. Instead of getting stuck on walls, sprites using the pathfinding blocks will walk around them in the shortest path to the target sprite! YOU MUST USE A TILEMAP FOR THIS EXTENSION TO FUNCTION.
Open this page at https://king5232.github.io/pxt-pathfinding/
This repository can be added as an extension in MakeCode.
- open https://arcade.makecode.com/
- click on New Project
- click on Extensions under the gearwheel menu
- search for https://github.com/king5232/pxt-pathfinding and import
To edit this repository in MakeCode.
- open https://arcade.makecode.com/
- click on Import then click on Import URL
- paste https://github.com/king5232/pxt-pathfinding and click import
This image shows the blocks code from the last commit in master. This image may take a few minutes to refresh.
- for PXT/arcade