I have been messing around with cannons and I have managed to get the cannon set to when the player touches the screen and a button to fire it, but when I click the fire button the cannon resets its angle to the direction of the button.
At the moment it looks something like this:
- Touch - is touching Background : cannon arm - set angle towards- touch.x touch.y
- button - on click : ball - set angle - Cannon arm.angle degrees
Anyone know why the angle resets to its starting position when I press the button?
Any help appreciated