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: Introduction to A* Pathfinding | Kodeco , 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’ve finally managed to implement some modified version of A* pathfinding system.

Hi.

I am creating a similar type of game.

Can I share a modified directions script?

thank you.