Jumping High

I would like to make it so the player jumps from low to high based on how long the jump button is held. How can I achieve this action?
 
I would like to make it so the player jumps from low to high based on how long the jump button is held. How can I achieve this action?

It's not native. I wrote a script library that can do it:


If that's too much, you can try to write one yourself. The basic principal is you capture the player Jump key release event. You then get current velocity of player entity, and if they are in Jump animation and rising, you knock their upward velocity down by ~25% (you don't want to stop outright, or it will look like they hit a glass ceiling).

HTH,
DC
 
It's not native. I wrote a script library that can do it:


If that's too much, you can try to write one yourself. The basic principal is you capture the player Jump key release event. You then get current velocity of player entity, and if they are in Jump animation and rising, you knock their upward velocity down by ~25% (you don't want to stop outright, or it will look like they hit a glass ceiling).

HTH,
DC
Thank you so much. I will test this today.
 
Back
Top Bottom