What is the easiest way to enable 2D isometric grid-based pathfinding?
I am currently working on some tactical-RPG-like game, and I've been struggling with finding an appropriate pathfinding system for the game.
What I want is pretty simple: The character in the attached image should be able to move to a clicked tile, either straight or diagonally, choosing the shortest possible path, while making sure to avoid those black tiles (these are all just placeholders, naturally, but black tiles represent impassable terrain). Movement is snapped to tiles, so he is forced to cross the center of each tile he walks through.
I'm quite the noob programmer, but I've been reading and trying to implement A* pathfinding system, which don't seem to cover every possible case (I based my code on this logic: https://www.raywenderlich.com/4946/introduction-to-a-pathfinding , but there still seem to be cases where the character won't choose the best path...unless I'm just not able to get it).
It would really help me if you guys could recommend a method, plugin, that would cover a project such as this!
Thank you very much for your time.
I already have a working prototype WITHOUT obstacles, but as soon as obstacles come in, some arrangements simply break the system and keep the character from reaching its destination.
Can you explain how you got the pathfinding system working? I am working on a similar tactics based isometric game and am also struggling to find a pathfinding system that will work.