how do i choose 1 particular instance as an obstacle in pathfinding?
Hi, after adding a path-finding behavior to your object(lets call it enemy). You go to the event sheet, add a new event - for this I'll use 'On start of layout' and add a new action for 'enemy'. You then scroll down until you see the title "Pathfinding" then you choose 'add obstacle' and you just choose that particular object you want to be an obstacle. That's it!
StormHo try this demo
https://www.scirra.com/tutorials/1118/path-finding
Develop games in your browser. Powerful, performant & highly capable.
I'm confused by your question, are you wanting to set an instance already on the screen to be an obstacle in pathfinding, or to spawn one in front of the player and have the Player object treat it as an obstacle in pathfinding, or...?
you mean like this