I am trying to make aiming and shooting at enemy automatically on mobile.In case there are 2 or more enemy in window then i want the player to shoot at the enemy in front and then the user can tap to change which enemy to aim.i tried adding turret behavior to the bullet to get the aiming right in the first place but its not working as i expected.
Develop games in your browser. Powerful, performant & highly capable.
System -> Every Tick => Gun -> Rotate Towards Position -> [Enemy].X ; [Enemy].Y
[Enemy] -> Pick Nearest
(Replace the [Enemy] with the right object)