Coolbeans
Having an issue implementing A* pathfinding
Hi, I am trying to add pathfinding into a game that I am creating and have tried to use the A* pathfinding algorithm. It kind of works as it does eventually find a route however it can take a very long time when nodes are far apart and when I look at it when it searches it looks like it goes over the same nodes over and over again and I'm not too sure why? My guess is that I am exploring nodes that are already in my closed list.
I have added the code as an attachment to this post.
19 replies