0 Favourites

Jump on enemy while press button...

  • 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.

    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.

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

  • 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.

    Here's the correct link.

    I'll always double check the link after I upload it from now on. (I'm so sorry..)

  • 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.

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

  • 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

    You're always welcome, Nestorj66.

    Your English is perfect. I think it was me thinking too fast.

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

  • 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.

    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.

  • Construct 3

    Buy Construct 3

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

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