Discuss Scratch
- Discussion Forums
- » Developing Scratch Extensions
- » Path finding
- dpowell11
-
Scratcher
7 posts
Path finding
I posted this extension idea somewhere else but I have no idea how to make this…
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
An example of use:

Set path finding mode to [Top view v]
Set path finding mode to [Side view v]
Show path finding
Hide path finding
Path find to color [#67e94b]
Path find to [Sprite v] without touching color[#67e84b]
Path find to color[#67e84b] without touching [Sprite_2 v]
Path find to [Sprite v] without touching [Sprite_2 v]
if <Path finding [Failed v] ?> then
broadcast [Panic v]
end
if <Path finding [Succeeded v] ?> then
broadcast [Celebrate v]
end
Follow path in increments of (10)Increments is referring to points on a graph
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
An example of use:
when green flag clicked
set path finding mode to [Top view v]
Show path finding
Path find to [egg v] without touching color[#FF0000]
if <Path finding [Succeeded v] ?> then
Follow path in increments of (15)
end
stop [all v]

Last edited by dpowell11 (Oct. 30, 2025 19:59:16)
- GamingCat12345
-
Scratcher
100+ posts
Path finding
https://scratch.mit.edu/projects/1210131285/
…
….
…..
……
Something like this?
Although this does suck if the project isn't grid based so an extension for this would be really nice
…
….
…..
……
Something like this?
Although this does suck if the project isn't grid based so an extension for this would be really nice
Last edited by GamingCat12345 (Dec. 11, 2025 18:03:23)
- dpowell11
-
Scratcher
7 posts
Path finding
https://scratch.mit.edu/projects/1210131285/
…
….
…..
……
Something like this?
Although this does suck if the project isn't grid based so an extension for this would be really nice
Yeah! Although it would be able to have a lot more customization!
- GamingCat12345
-
Scratcher
100+ posts
Path finding
Yeah! Although it would be able to have a lot more customization!I've had ideas for this like skipping unneccesary path parts with a few formulas and whatnot, and the customization you seem to be mentioning like “increment in” wouldn't be that hard. Pretty much just make a copy of the map but ‘rendered’ in the increments selected. And the script already has sections where i can tell if the pathfinding succeeded or not and “pathfind to color/sprite” is as simple as finding that color/sprite and then pathfinding to that point. The without touching is just the map/walls. Now if side view means like jumping and whatnot then I wouldn't be able to do that with the current version (But I bet I could make it). I already made show pathfinding, and hide pathfinding is simple.
I can also make something like
Set path mode [Grid-locked v] //Basically my current version
Set path mode [Fastest route v] //Cuts corners and moves towards the farthest point on the path it can see
Set path mode [... v] //Whatever else you can think of
Also, this is so backpackable that I might as well have already made the extension myself, and if you really need this then, I can add all of these extra things like the pathfind to color/sprite and whatnot
But anyways, a straight extension to do this work would be pretty nice ig, and I am still treating this like “Help with Scripts” lol
- Discussion Forums
- » Developing Scratch Extensions
-
» Path finding