How do you code a pathfinding in a grid base game? For example you want a unit to go around a wall.
See the A* algorithm.
1 Like
how do you code pathfinding?
Check out this post which contains details on how to code pathfinding.