How do I show a different frame for double jumping?

Get help using Construct 2

Post » Tue Aug 18, 2015 2:48 pm

Okay, this is hopefully a simple answer that I'm overlooking: If my platform is jumping, I play a jump frame. If he double jumps, though, I'd like to play a different frame. How can I do this? I only see "Is Double Jump Enabled" as a trigger option, which isn't helpful (since it's always enabled). I need something to the extent of "On Double Jump" or something, I feel like, but I don't see anything like that.
B
14
S
2
Posts: 73
Reputation: 794

Post » Tue Aug 18, 2015 3:23 pm

You could always use an instance variable.
On jump, set variable to 1. On jump, if variable =1 - play second jump animation and double jump.
When you land set the variable back to 0.
Something like that should work.
Be sure to check out my Metroidvania game, A Hole in the Earth
B
59
S
24
G
3
Posts: 359
Reputation: 5,683


Return to How do I....?

Who is online

Users browsing this forum: KTML5 and 31 guests