# Speed of falling objects based on rate of tap?

Get help using Construct 2

### » Mon Jun 16, 2014 7:21 pm

Question:
If objects are falling at the rate of 300 how would one go about making them fall quicker based on the rate of screen taps?

However, falling rate should never slow down once they have sped up.

Any ideas?
Football Dash (1m+): GooglePlay | AppStore

www.lumicreative.com
B
82
S
31
G
8
Posts: 506
Reputation: 10,739

### » Mon Jun 16, 2014 8:13 pm

What about setting a global variable gravity and increase it (you name it how much) everytime anytouch is triggered? (using physics) then set world gravity to global gravity.
B
35
S
5
G
1
Posts: 169
Reputation: 2,765

### » Mon Jun 16, 2014 9:37 pm

Great suggestion, but I need it to be dynamic meaning that I don't want to increase speed every time anytouch is triggered as I am already doing that. What I want to do is that if someone is tapping faster, the falling matches to their skill level. If someone is really bad at the game, I want the objects to fall slower.

In other words, let's say the objects are falling at the rate of 300. If someone taps once every second, the rate stays at 300. If the person taps 3 every second, the falling rate speeds up, but never slows back down if they were to go back to once every second.
Football Dash (1m+): GooglePlay | AppStore

www.lumicreative.com
B
82
S
31
G
8
Posts: 506
Reputation: 10,739

### » Mon Jun 16, 2014 10:38 pm

every 1 second - global gravity = gravity -3 (300 minimum)
if ppl tap slow (3 times), it will remain zero
If ppl tap fast, lets say 10 times, 10-3 = 7 (increase of speed).

Ppl stop tapping, -3, -3, -3, until 300 minimum

(just an idea)
B
35
S
5
G
1
Posts: 169
Reputation: 2,765