How do I increase speed for every touch

Just started using Construct 2? Post your questions here

Post » Fri Sep 04, 2015 5:35 pm

hello, I want to increase the speed of a player every time I touch the sprite control in rapid succession..please help me!!
B
3
Posts: 6
Reputation: 187

Post » Fri Sep 04, 2015 11:33 pm

Do you try "On tap object" condition?
Image Image
B
26
S
15
G
142
Posts: 881
Reputation: 74,060

Post » Sat Sep 05, 2015 9:10 am

ye, but how can i say that have to increase the speed for each touch in succession?
eg:

1 touch = speedx1
2 tocuh rapid succession= speed x2
3 tocuh rapid succession= speed x3

and go on...
B
3
Posts: 6
Reputation: 187

Post » Sat Sep 05, 2015 9:36 am

I don't know how do you control the speed of your sprite, but you can do it like that:

make a Instance Variable for your player, something like speed.

then events and actions:

System every tick -> player move forward player.speed
Touch on touched player -> player add 1 to speed
B
24
S
3
G
1
Posts: 454
Reputation: 2,171

Post » Sat Sep 05, 2015 2:19 pm

thx so much!!!! work!! ;)
B
3
Posts: 6
Reputation: 187


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest