Hello,
I'm developing a tactical turn-based game and have encountered a challenge. I need to highlight all the tiles that are within a certain distance from a specific source tile using AStarGrid2D. This is to show players possible target tiles they can move to or interact with during their turn. While I'm familiar with using AStar to find the shortest path between two points, I'm unsure how to adapt it to find and highlight all tiles within a specified distance from a source.
I'm pondering whether to run multiple AStar searches or if there's a more efficient method to achieve this.
Has anyone tackled something similar or can guide me on this?
Thank you in advance!