Jump on enemy while press button...

0 favourites
From the Asset Store
Jump on candies, collect candies and earn score!!!
  • Hello everyone. I need your help for do a jump style like the Mario 2D games. I mean when the charachter jumps on the top of the enemy bounce a little, but if you are pressing or holding the jump button while the charachter is killing the enemy the character jumps higher. I mean I want the character can jump higher and higher depenging of the time that the botton is hold down.

    I did the events:

    X platform is on floor and X up arrow button is down, for the little jump.

    X platform is on floor and up arrow button is down, for the high jump.

    I hope this has been understood, sorry for my bad English an thank you! n.n

  • Check out this example. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Explanation

    1. When jumped on enemy's head, enemy dies and player bounces off.

    2. When jumped on enemy's head while pressing [Down], enemy dies and player jumps again higher.

    https://www.dropbox.com/s/srbm69t2ouu0u ... .capx?dl=0

  • Thank you Gmoney but I can't open the link :c

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Thank you Gmoney but I can't open the link :c

  • Thank you Gmoney but I can't open the link :c

    I'm so sorry, Nestorj66. I don't know what happened there. <img src="{SMILIES_PATH}/icon_eek.gif" alt=":shock:" title="Shocked">

    Here's the correct link.

    I'll always double check the link after I upload it from now on. <img src="{SMILIES_PATH}/icon_redface.gif" alt=":oops:" title="Embarrassed"> (I'm so sorry..)

    https://www.dropbox.com/s/ocfb9pv8fvxh4 ... .capx?dl=0

  • Thank you! But not what I meant n.n' I meant something like Mario jumps in Super Mario Bros/3/World. That the jump is bigger as more jump key is pressed. In this example jumps higger but not as I say

  • Thank you! But not what I meant n.n' I meant something like Mario jumps in Super Mario Bros/3/World. That the jump is bigger as more jump key is pressed. In this example jumps higger but not as I say

    You're welcome, Nestorj66. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Oh, that's easy. All we need to do is changing the Jump Sustain setting in Platform behavior.

    https://www.dropbox.com/s/vyrap3wkp8scb ... .capx?dl=0

  • Thank you again, apreciate it, but I think that you don't get me ^^'. I know that exists the jump sustain but I don't mean that, well really I don't know xD, I mean when is in a jump on enemy head (like Super Mario Bros 1 or 3 or World), only when the jump is on an enemy head Gmoney

  • You're welcome, Nestorj66.

    Thank you again, apreciate it, but I think that you don't get me ^^'. I know that exists the jump sustain but I don't mean that, well really I don't know xD, I mean when is in a jump on enemy head (like Super Mario Bros 1 or 3 or World), only when the jump is on an enemy head Gmoney

    ok, so what you need to learn is how Player jumps higher in the following condition?

    1. Player jump to enemy's head.

    2. While landing in enemy's head, Player presses jump button again for a long time.

    3. Player will jump higher.

    I just wanted to clarify before I made another example.

  • Exactly

  • Exactly <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">, and depending on how long the button is pressed jump that differs the height. Sorry if if not understood before, it must be for my bad English. Really thanks for helping me and being the only person to respond <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy">

    You're always welcome, Nestorj66. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Your English is perfect. I think it was me thinking too fast. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    Ok, so here's the latest example. I hope this was what you were looking for.

    https://www.dropbox.com/s/02p7lqxmdpga6 ... .capx?dl=0

  • Yes, more or less well. The problem is when the jump on enemy is finished and jump again, the jump strenght stays, and the idea is that only changes when the player jumps on the enemy.

  • Check this out. <img src="{SMILIES_PATH}/icon_mrgreen.gif" alt=":mrgreen:" title="Mr. Green">

    https://www.dropbox.com/s/2kulg1btx0jrz ... .capx?dl=0

    What was updated

    1. Player jumps faster.

    2. Player's jump strength varies based on how long the jump key is pressed.

    3. Player can jump again after stepping on the enemy's head.

    4. Jump strength stays after jump is complete.

  • Wow really close Gmoney . Now the only problem is that the double jump stays

  • No! Sorry! I add another event when the player on landed disable the double jump. Finally! Thank you so much

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