I have discovered a curious issue.
I am trying to make a simple wall-following method. It is going well. When you test it out as-is it works almost perfectly. Try it here.
Drag the target around and the enemy should seek you.
However. If one adds any more copies of the enemy, horrible things happen. I am NOT using global variables, so that isn't the problem.
The main issue is the fact that the enemies are getting stuck in walls. With multiple copies of 'enemy' it is easy to reproduce the bug.
Is it a simple programming error? or a native bug?