Speed of falling objects based on rate of tap?

Get help using Construct 2

Post » 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?
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

Post » 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
34
S
5
G
1
Posts: 164
Reputation: 2,725

Post » 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.
B
60
S
19
G
3
Posts: 451
Reputation: 6,364

Post » 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
34
S
5
G
1
Posts: 164
Reputation: 2,725


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 1 guest