Endless Jumping

This forum is currently in read-only mode.
From the Asset Store
Jump on candies, collect candies and earn score!!!
  • 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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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.

  • Great thank you so much! I really appreciate the help!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)