Skip to main content
A fairly strong revision to more emphasize the goal, especially in the otherwise confusing title. Added the tower-defense tag as well. ♪
Source Link

Pathfinding Locate the closestshortest path through obstacles when there is no path.all normal paths are blocked

I'm doingmaking a TDTower Defense and I have basic pathfinding working, but I got a problem.
I

I want to make the path blockable, and when a block occurs the runners will attack the blocking towers. So

So what I need is a way to find the shortest path withthat, more importantly, has the lowest amountnumber of towers in it(more important), which is the shortestway. How

How do I do that?

Pathfinding the closest path when there is no path.

I'm doing a TD and I have basic pathfinding working but I got a problem.
I want to make the path blockable, and when a block occurs the runners will attack the blocking towers. So what I need is a way to find the path with lowest amount of towers in it(more important), which is the shortest. How do I do that?

Locate the shortest path through obstacles when all normal paths are blocked

I'm making a Tower Defense and I have basic pathfinding working, but I got a problem.

I want to make the path blockable, and when a block occurs the runners will attack the blocking towers.

So what I need is a way to find the shortest path that, more importantly, has the lowest number of towers in the way.

How do I do that?

edited tags
Link
coderanger
  • 6.1k
  • 37
  • 38
Source Link
Daniel
  • 549
  • 3
  • 11

Pathfinding the closest path when there is no path.

I'm doing a TD and I have basic pathfinding working but I got a problem.
I want to make the path blockable, and when a block occurs the runners will attack the blocking towers. So what I need is a way to find the path with lowest amount of towers in it(more important), which is the shortest. How do I do that?