I'm trying to get multiple copies of sprites to move towards enemy sprites that are closest to them.
What I have is:
Event:
If PlayerSprite is not overlapping EnemySprite
Pick nearest EnemySprite to PlayerSprite.X, PlayerSprite.Y
Action:
Set Angle of PlayerSprite to Position of EnemySprite
The problem is that any copy of PlayerSprite will go towards the nearest enemy to the original PlayerSprite instead of the nearest enemy to itself.
I feel like it's a simple fix but I just can't get my head around it right now
Can anybody help me out?
Thanks