Just drag the red dot with the mouse wherever you want, and then press the space bar to make a blue dot appear on the mouse cursor that will seek to go towards the red dot avoiding the black areas in real time.
Pathfinding engine by Griffpatch (pathfinding with lists). Although the pathfinding engine isn't mine, I decided to upload this project inspired by Griffpatch's pathfinding engine since I'm working on a project that uses it on my other account @Dash-Coder . It's a very good and versatile engine capable of many things.