Level 1: Left Click to move the Target around.
Level 2: Hold Right click to move the Player towards the mouse.
All the pathfinding is calculated and stored in the target and a single brain object.
To copy this into a game, make sure that the brain object is the LAST object placed in a level. That means if you ever edit another object in the level by clicking on it (even if you don't move it), you MUST delete the brain object and then add it back. (This is due to the order in which Flowlab triggers objects' code.)
The delay at the beginning is intentional; it gives the map a chance to calculate its boundaries and each obstacle a chance to find its position ID
Here is a much better version of this: https://flowlab.io/game/play/2494906
You can go here with questions or comments: https://community.flowlab.io/t/4-pathfinding-player-follow-examples-platforming-top-down/36367