How do I detected the first jump ONLY if I have double Jump?

Get help using Construct 2

Post » Mon Dec 29, 2014 6:09 pm

I have double jump enabled, but the "on Jump trigger" will trigger twice if I mid air jump, how do I detect the first jump while on floor and not the one on mid air ?
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Mon Dec 29, 2014 6:11 pm

You sort of answered the question yourself. Along with the on jump trigger, add the condition platform is on floor.
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Mon Dec 29, 2014 6:40 pm

Hello Burvey,
Image
It doesn't work, now it doesn't even trigger at all.

Can you please download this example file ?
Basically, I want the sound to trigger on the first jump from the floor and not on the jump midair in the air

http://expirebox.com/download/c7425a761183cb0a98266ce9f038099c.html
B
12
S
3
Posts: 288
Reputation: 1,694

Post » Mon Dec 29, 2014 7:00 pm

Add an instance variable to the player sprite called jump
Remove platform is on floor condition and replace it with if variable jump = 0
Add the event under audio to set the variable jump to 1
Make a new trigger/event below that says on landed set variable jump to 0

Image
B
62
S
20
G
56
Posts: 1,077
Reputation: 36,021

Post » Mon Dec 29, 2014 7:11 pm

Thank you Burvey :D
B
12
S
3
Posts: 288
Reputation: 1,694


Return to How do I....?

Who is online

Users browsing this forum: R0J0hound and 3 guests