a) You haven't set up the HomeZone values on all of the objects. NodePatrols are 1, Enemy is -1, and NodeZone is 0. They need to match.
b) You need to figure out your NodePatrol pattern. I made several assumptions. 1) that the Origin is in the middle, but you've moved some, (top-left) so the Enemy stops without overlapping, but the code that picks the next NodePatrol picks the non-overlapping items to pick next, which will include the top-left which it just arrived at. 2) (not in this code, but my previous sample) I was just picking the farthest node, but there where only two at the time.
Once you figure out how to pick the next node, then you can code the steps appropriately.
a) You haven't set up the HomeZone values on all of the objects. NodePatrols are 1, Enemy is -1, and NodeZone is 0. They need to match.
b) You need to figure out your NodePatrol pattern. I made several assumptions. 1) that the Origin is in the middle, but you've moved some, (top-left) so the Enemy stops without overlapping, but the code that picks the next NodePatrol picks the non-overlapping items to pick next, which will include the top-left which it just arrived at. 2) (not in this code, but my previous sample) I was just picking the farthest node, but there where only two at the time.
Once you figure out how to pick the next node, then you can code the steps appropriately.
You can delete the browser object at any time. It's just logging for debugging.