How do I fix this cannon behaviour

Get help using Construct 2

Post » Fri Apr 18, 2014 1:05 am

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
B
5
S
2
Posts: 105
Reputation: 837

Post » Fri Apr 18, 2014 1:40 am

Maybe set the touch to make sure the touch isn't over the button . so make another condition with the is touching condtion that says isn't over fire button. It sound like the is touching is still activating cause even though it over the button its technically still over the background.
B
23
S
4
G
2
Posts: 364
Reputation: 2,392

Post » Fri Apr 18, 2014 3:23 am

ah ok ill try that now thanks for the reply.
B
5
S
2
Posts: 105
Reputation: 837


Return to How do I....?

Who is online

Users browsing this forum: David181, Yahoo [Bot] and 14 guests