—
Ok, I used this action: apply impulse at angle > distance(Player1.X, Player1.Y, enemy1.X, enemy1.Y)/1750
The number 1750 is result of several tests. This value hits the green tank perfectly.
The problem is: if I move over the terrain (changing my X and Y), the yellow tank doenst hit the green everytime.
My goal was to find a 'magical' number or expression that would hit the green tank everytime, then I would have just to change this number by a random interval around it. Did you get my idea?
What do you think?