Grid-based pathfinding? (c#)

Godot Version

4.1

Question

I am making a grid-base rougelike where everything is on a grid (35*27) and I would just like to know what the best way to go about doing this would be? Also the way I am going about making this is by having an object called “gridmaster” which has a two-dimentional array with int values (0 for nothing, 1 for wall, 2 for player, 3 for chest, and 4+ for enemy, where subtracting 4 would get you the index of an Enemy array which stores references)

you could try make A* search algorithm

Look at AStarGrid2D

2 Likes

thanks, that looked promising but as I said I don’t really know what I’m doing so I wanted second opinions.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.