Skip to main content

Questions tagged [path-finding]

Methods used to map out a path of travel from one point to another, typically avoiding obstacles in the way.

Filter by
Sorted by
Tagged with
1 vote
3 answers
242 views

I’m trying to implement a top-down Zelda-like enemy movement system. Consider a screen of x tiles wide by y tiles tall, each tile being 16x16 pixels. I’m not asking for code here. I’m asking for ...
tariq's user avatar
  • 121
0 votes
1 answer
143 views

I'm creating a puzzle for my game, where you have to arrange pipes to transmit an electrical flow from one point to the other. Each pipe center contains a connector hub and each end contains the ...
Redsam121's user avatar
2 votes
1 answer
187 views

Recently, I have been investigating the Anya pathfinding algorithm. Anya is an optimal any-angle pathfinding algorithm. However, it works only with discrete points on the grid. Here is an excerpt from ...
Lukas Makor's user avatar
1 vote
1 answer
254 views

Problem definition: I have an AI (zombie) that is destroying a special object to reach a specific location. The object is stored as a blackboard value and is a child actor of a NavLink(To trigger ...
Imantion's user avatar
0 votes
0 answers
76 views

Let's begin with a picture: I am currently making a turn-based strategy game set in space where you can settle colonies and have to transfer minerals from the colonies ("foo", "bar&...
Applekini's user avatar
  • 8,543
0 votes
1 answer
78 views

I'm trying to create a game server. The game I want to create has a following feature. 2d (isometric view) ~300 users can play so a map will be not that small all units can move in any angle (not ...
PudgeKim's user avatar
5 votes
5 answers
2k views

Note: the main problem has nothing to do with the TYPE of pathfinding algorithm (A*, flow-field etc), allow me to explain: I have a 2d grid and a lot of agents moving around, I want it so that ...
Xascoria Dung's user avatar
2 votes
1 answer
457 views

I have a character linked by a rope to a fixed point, in an environment with obstacles. I want to do a pathfind that take into account the rope. Here, if the character followed my current pathfind in ...
Alikae's user avatar
  • 51
2 votes
0 answers
100 views

I am making a 2D top-down grid-based game where the movement is similar to older Pokémon games so it's locked to a grid. I implemented A* pathfinding for my enemies with a bool[,] that indicates ...
rossz97's user avatar
  • 21
1 vote
2 answers
375 views

I'm trying to implement A*. I'm storing the queue of nodes to visit in a min-heap, and I'm seeing the same node being added more than once to it (with different priority). Wikipedia's pseudocode ...
HolyBlackCat's user avatar
  • 2,054
1 vote
1 answer
195 views

I am learing Unity and for now trying to implement a simply pathfinding alogorithm in a simply 2D isometric diamond-shaped tilemap. Recently I learned a way how to rotate tilemap and I already have a ...
Valeriy's user avatar
  • 13
6 votes
4 answers
726 views

i am making a 3d tactics game, visually similar to something like final fantasy tactics. it's tile based, with units able to move up and down the level onto buildings and up staircases and what have ...
graveyard's user avatar
0 votes
0 answers
110 views

I'm doing what this thread is doing except that it's not very satisfactory. What this does is finding the "closest" attacking position. But typically you want the attacker to attack from as ...
Weikai Wu's user avatar
0 votes
1 answer
152 views

I already implemented a Grid-Based pathfinding algorithm and I works. I also updated it so it takes into account the objects size and ignores paths where the object wont fit. However, I ran into a ...
Ezequile's user avatar
1 vote
1 answer
1k views

I'm making a spaceship game where the enemies and the player have the full 6 degrees of freedom, so can move forward/backwards, left/right, up/down and can also rotate in all three axes. I'm wanting ...
beyarkay's user avatar
  • 127
0 votes
1 answer
2k views

I'm trying to create an isometric game with Diablo-like control, but gravity isn't working. The CharacterBody3D won't touch the floor, the print(is_on_floor()) always results false. Here's my code for ...
KZulfazriawan's user avatar
0 votes
1 answer
109 views

I'm building a maze game where there's an enemy ready to pursuit the player if the player gets in his range, I'm using A*Pathfinding algorithm to do so, and I build the maze in a procedural way, where ...
AND4011002849's user avatar
0 votes
3 answers
886 views

I am new to Unity and want to create a tower defence game like Fieldrunners. I need help to create the grid placement area for the towers so that there is always a path for enemies to travel. I mean ...
Robin's user avatar
  • 3
0 votes
1 answer
157 views

How can I explore a path with A* (or another) by taking care of a rectangle collision ? I have a 2d map, where I know for each coordinate if it is an obstacle : For example, dark tiles are not ...
bux's user avatar
  • 159
0 votes
2 answers
768 views

I'm currently developing a tower defense game as a part of a group project in school. This game will be programmed in C++ using SFML. We are having trouble with finding a good way to define the path ...
user294957's user avatar
0 votes
0 answers
144 views

I am currently working on implementing a pathfinding module for my 2D game engine that I am writing in Python using Pygame. Currently there are objects such as trees or buildings which can be placed ...
Zoler1337's user avatar
0 votes
1 answer
905 views

I am trying to make an Rts game in unity and am trying to make it so that units can go to different destinations, I have a selection system that deactivates their Navmesh agents and the script that ...
Crystalline787's user avatar
0 votes
0 answers
252 views

Like, how does a building in these games know if they're being powered? Or if they're within range of influence of a hospital or fire station, etc. How would they know where to send an NPC or ...
Sir Gaelence's user avatar
10 votes
3 answers
3k views

I'm currently working on a 2D Age of Empires style RTS game. Here's my problem: I'm currently using the A* algorithm (via Path finding package) to move my units. When you select a "group" of ...
GauthierBee's user avatar
0 votes
1 answer
612 views

I'm trying to build a little MOBA game (max 10 players) in Unity and i'm really stuck with the pathfinding / local avoidance. Here is what i'm doing when user click to move on the map: Client send a ...
Aldo's user avatar
  • 309

1
2 3 4 5
15