Pathing System Like Defender's Depot

Hello developers! I am here to ask of you guys how to make a pathing system like Defender’s Depot . If you haven’t played that game, don’t worry. I can explain it here.

Basically, when you place something like a wall or tower, the path updates. It comes from the spawn to the end. It finds the shortest path via grid system. How can I replicate this. (If you don’t understand what I mean, you can go play it)

2 Likes

learn to use the A* algorithm to acomplish a similar outcome

1 Like

What is the A* algorithm sdfsdsdf

1 Like

its a pathfinding algorithm that uses some sort of heuristic (a sort of guess)

1 Like

Sebastian Lague has made a great video explaning what the A* algorithm is and how to use it!

3 Likes

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