Jump Strength

Get help using Construct 2

Post » Fri Mar 22, 2013 2:40 am

Hi

I want my character to jump just a little bit if the jump button is tapped, but higher as long as the high if the jump button is pressed.

But Im using the platformer behavior, and with this, the player always jump the same amount based on the jump strength value

Anyone knows how to implement this?

Thanks
B
7
S
3
G
3
Posts: 53
Reputation: 2,459

Post » Fri Mar 22, 2013 4:19 am

set the jump action on the release of the button...
add a variable "jump"
if key is down, add 1 to "jump"
when key is released, set jump strenght to "jump", then simulate Jump
Image
B
42
S
11
G
5
Posts: 269
Reputation: 10,880

Post » Fri Mar 22, 2013 4:57 am

but it will delay the jump isn't it
I believe that what perezbalen wants is real time jump but can control power...hmmmm
B
12
S
3
G
4
Posts: 56
Reputation: 3,235

Post » Sat Mar 23, 2013 2:02 am

yes, r4dicaldreamer is right.
B
7
S
3
G
3
Posts: 53
Reputation: 2,459

Post » Sat Mar 23, 2013 2:20 am

This question has been asked quite a few times. Use the forum search or check the FAQ.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Mon Mar 25, 2013 10:27 pm

Thanks. Solved it with Vector Y = -300 on key release.
B
7
S
3
G
3
Posts: 53
Reputation: 2,459


Return to How do I....?

Who is online

Users browsing this forum: Matthew de and 27 guests