2D area walkable by tag/layer

Hi,
I am working with a 2D grid graph with tilemap, and I wanted to make some agents move ONLY through wall tiles. My idea was to scan a graph making only wall tiles walkable by their tag/layer, but I can’t find any way to do that.

Is this possible, or is there a workaround to achieve this? I am working with the free A* Pathfinding, version 4.2.17.

Thanks!

Hi

Sorry for the late reply. I’ve been quite sick these last few weeks.

There’s no way to integrate with a tilemap out of the box. However you could run a script when the game starts that set the nodes walkability to what you want. See Graph Updates during Runtime - A* Pathfinding Project

Hi

No worries, thanks for the response and I hope you are doing better now!

1 Like