Endless Jumping

For questions about using Classic.

Post » Tue Nov 16, 2010 4:34 pm

So I am just starting out with Construct, and I have made a simple control scheme for the character in my game (it is a platformer), and it functions normally except for one issue: When I press the jump key, I can keep pressing it and I essentially have endless jumping. I am not sure how to limit this function, and every time I try to make it so you have to hit the ground first it stops other events from happening instead.

I would appreciate any help on this if possible.

Here is a link to the .cap file if it will help!
http://www.mediafire.com/?awrua6piycssty3

The controls for the game are: Up Arrow for Jump, Left Arrow for Left, and Right Arrow for Right.

Thanks in advance!
B
1
G
2
Posts: 2
Reputation: 629

Post » Tue Nov 16, 2010 5:05 pm

Hi. First, I'll point out that the normal jump works automatically, by pressing the shift key.

That said, you can make your custom jump work normally by adding another condition to test if the character is on ground to the the event, like so:

+ MouseKeyboard: On key Up arrow pressed
+ blank_character: is on ground
-> blank_character: Jump

That will prevent it from jumping again while it is jumping or falling.
B
3
S
2
G
2
Posts: 187
Reputation: 1,449

Post » Tue Nov 16, 2010 6:45 pm

Great thank you so much! I really appreciate the help!
B
1
G
2
Posts: 2
Reputation: 629


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests