Jump on enemy while press button...

Get help using Construct 2

Post » Thu Sep 08, 2016 1:47 am

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
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Post » Thu Sep 08, 2016 2:59 am

Check out this example. :mrgreen:

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
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 08, 2016 3:04 am

Thank you @Gmoney but I can't open the link :c
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Post » Thu Sep 08, 2016 3:04 am

Thank you @Gmoney but I can't open the link :c
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Post » Thu Sep 08, 2016 1:37 pm

Nestorj66 wrote:Thank you @Gmoney but I can't open the link :c


I'm so sorry, Nestorj66. I don't know what happened there. :shock:

Here's the correct link.

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

https://www.dropbox.com/s/ocfb9pv8fvxh4 ... .capx?dl=0
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 08, 2016 10:11 pm

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
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Post » Thu Sep 08, 2016 11:44 pm

Nestorj66 wrote: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. :mrgreen:

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
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Thu Sep 08, 2016 11:53 pm

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
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Post » Fri Sep 09, 2016 12:33 am

You're welcome, Nestorj66. :mrgreen:

Nestorj66 wrote: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. :mrgreen:
B
11
S
6
G
15
Posts: 256
Reputation: 9,207

Post » Fri Sep 09, 2016 12:52 am

Exactly :D, 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 :D
B
9
S
2
G
2
Posts: 32
Reputation: 1,595

Next

Return to How do I....?

Who is online

Users browsing this forum: tarek2 and 9 guests