In top view (8 directions controller), how can I implement pathfinding to monsters who purchase the player ?
Here is a quick drawing of the issue :
<img src="http://img12.imageshack.us/img12/7301/pathfinding.jpg" border="0" />
No problem for doing the case on the left (I plug monster direction on player X and Y) , but how can I do the case on the right of the picture ? The monster could avoid solid sprites or any obstacles.
Thanks for help !