Highlight accessible tiles around agent

Hello,
Suppose I have an agent and it can move around on 2D Grid Graph, the agent has some move points. How do I highlight all the tiles that are accessible by the agent? I want to highlight the area around it N tiles around like this:

How can I do this?
Thanks in advance.

Hey,

There is also an example scene in the pro version ‘Turnbased’ that limits the movement range, it’s only available in the pro version since some components in that scene aren’t available in the free version. Though I can’t remember of the top of my head which.

Yes. The Turnbased example scene shows how to do this.

This method is quite helpful: https://arongranberg.com/astar/docs/pathutilities.html#BFS
Or https://arongranberg.com/astar/docs/constantpath.html

Hey,

@aron_granberg thanks! That appears to be what I need. <3

1 Like