How do I increase spped ball for each touch

Get help using Construct 2

Post » Tue Sep 01, 2015 10:41 am

I need to increase the speed of a ball whenever I click/touch on a sprite in rapid succession :

1 click/touch- speed X1
2 click/touch-- speed X2
3 click/touch - speed X3
and so on

every time I click/touch in rapid succession the ball must accelerate an X value

PLEASE HELP XD
B
3
Posts: 6
Reputation: 187

Post » Tue Sep 01, 2015 11:42 am

Setup event:

>On click/touch
• • • • >Set SomeTimingVariable to 1
• • • • >Wait 0.25 seconds (or however long you want the "rapid succession" window to be)
• • • • >Set SomeTimingVariable to 0

Base event:

>On click/touch
• • • • >If SomeTimingVariable is 0
• • • • • • • • >[Do whatever initial thing you want to happen]
• • • • >Else
• • • • • • • • >Set Ball.Speed to Ball.Speed+100 (or whatever speed amount you'd wish to add)

Good luck, hope this helps!
B
27
S
5
G
1
Posts: 62
Reputation: 2,367

Post » Wed Sep 02, 2015 6:52 pm

please can u made same screen shot for me ?? i try to do that but is not working...XD
B
3
Posts: 6
Reputation: 187


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 18 guests