Hi, please look at attached capx. Its just an example of tower defence that I found here on the forum. I made some changes to it.
The problem is that the turrets with a long range and rotation will target the nearest or first in range targets which is not good for my game. I want to make turrets shoot only targets in front of it but not from the other spawner or line. Ofc, I can disable rotation but It will limit tower places.
Also, I found interesting thing during experimentations. If disable rotation and place turrets only in front of the spawners they will shoot their targets by targets positioning (both for nearest and first in range options). If the targets is on the same distance to the towers they will shot simultaneously. But if the front target is farther than the target of the upper or lower turret it won't shoot till the closest target will be destroyed. It is clearly seen if you place 1 tower in front of each spawner and play till wave 2 or 3.
I just want make turrets from each line shoot targets from their own spawner. Is that possible rather than making enemy clones for each spawner and checking where turrets were placed and programming them to shoot targets from their line? Huh. Thanks.