How do I make double jump with touch control?

Get help using Construct 2

Post » Sat Jul 12, 2014 8:10 pm

Hi,

I'm triying to make a double jump platform with touch controls. With this:

Image

The problem is: when I touch screen, doubleJump var sets to True automatically and I can't make double jump. Could anyone tell me what's wrong with this code, please?

Thanks
B
3
Posts: 8
Reputation: 185

Post » Sat Jul 12, 2014 9:41 pm

Image

This seems to work for me, hope i helped.
Be nice until it's time to not be nice
B
36
S
10
G
9
Posts: 293
Reputation: 6,712

Post » Mon Jul 14, 2014 10:14 am

Thanks a lot
B
3
Posts: 8
Reputation: 185

Post » Mon Jul 14, 2014 7:56 pm

the reason this happened is because the "is in touch" is a constant where as "any touch start" is a trigger event. triggers will play the events once during the triggered action where as constant will play the events as long as the action is true.
B
25
S
7
G
1
Posts: 83
Reputation: 2,550


Return to How do I....?

Who is online

Users browsing this forum: David181, manujorgo, NECRONOMICRON and 26 guests