I'm trying to do some simple enemy Ai, and I want each enemy sprite to have a "Target" which is the nearest sprite that it should follow.
But I'm having some problems figuring out how to decide each enemies nearest target.
Basically I just want to know what enemy is nearest to another enemy, taking walls into account.
I've included a really stupid example of what I want, and that shows that my idea of how to do it doesn't work hehe.
Thanks for any help!
You do not have the required permissions to view the files attached to this post.