Ok, so here's what I'm trying to do.
I have two of the same sprite, (ally) and an enemy sprite (enemy).
The enemy sprite has line of sight and RTS movement.
I want to get the enemy to choose the ally that is closer.
The ally has a family (good) that the enemy is looking for.
What is happening is that the enemy sprite always goes to one ally.
Even if the other ally is closer.
It seems like the enemy is choosing the ally with the higher "priority," always.
How can I fix this?
(Get the enemy to choose the closer ally to move to)
I think it has to do with which ally I'm telling it to go to.