Shoot enemies in range

Hello

I found 3 year old post from somebody else which is EXACTLY my problem (and it's well worded) so I allow myself to paste this user's question as I have not found an answer:



I am getting into this now, but need a little help. I have managed to get my 'towers' to spawn missiles, and move/travel towards my 'enemies'.

However, ALL the 'missiles' from ALL the 'towers' only navigate to 1 'enemy' until it destroys it, and then it moves to another.

So my question is: How do I get my missiles to only go toward the nearest 'enemy' to itself (so 1 missile will go to one target and another missile to another target).


Can anyone provide an answer please?
Sign In or Register to comment.