> — i've encountered the same problem with going through walls and some more (sometimes no path is found even tho there clearly is one)
> Btw. i stole your points for the visualisation of the path ;D
I've noticed a bug occurring which might explain the not finding a path I'll have a look into it.
I've figured out the problem whilst also fixing another problem which is always a good thing.
When first clicking you try to find a path to line_of_sight.x and line_of_sight.y this is the same position as the Player object so that's why it isn't finding a path. I changed this to ClickX and ClickY and it works now.
P.s. If you use another object that follows the Player object using lerp between the two positions of say 0.2 it would look really good.