Jump & Double Jump for Touch Controls [Resolved]

0 favourites
  • 5 posts
From the Asset Store
Supports keyboard, mouse and gamepads. Supports several gamepads at once.
  • Here's a Capx I put together that combines Jump & Double Jump into one mechanic.

    I found the solutions to both jump types on the forum so I put them together. I could not find a dual jump system for touch controls so I thought I'll post it.

    :D

  • thank you sir! any suggestions on limiting the amount of jumps he can perform one after another?

  • Woops I'll update the caps later today.I think I forgot to put in a global variable.

    If You make a double jump global var that equals zero when you tap for the second time that would say the d-jump is on.

    If you then equal the d-jump global variable to 1 (off) It will deactivate the d-jump.

    After that you then have to reactivate it by putting a 'wait' event to delay the reactivation then turn the double jump global var to zero.

    Zero means On.

    One means off.

    You have to associate the global var that equals zero to the event that doubles jump.

    :-)

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • i think i got it but one question.what if the player falls from very high?then the timer will reset and he will be able to rejump again.i am very new to this but wouldn't be better if we said doublejump=2 and each jump detract 1 from doublejump and when we reach zero deactivate? or something like that.

  • Yo! Iv updated it so the player doesn't jump forever out of the layout (Same link) Do try out your theory to see if it works to exercise your problem solving and logic.

    Mess around with the variables to achieve different double jump heights!

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