Hello,
I'm trying to make something where the user uses touch to direct fire.
As you can see, I have no idea what I am doing.
This works in a way, but the left and right side their angles differ from where I set the turret sprite (horizontal X position).
I suspect it has something to do with the Touch coordinates messing with the numbers of the max angle.. but I'm not sure.
I just want the turret to go max 200 degrees (which is the max angle left) and 340 degrees (max angle right).
The turret starts with an angle of 270 (pointing up).
Any ideas?
Regards