dmolina007
Member
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?
Thank you so much. I will test this today.It's not native. I wrote a script library that can do it:
![]()
GitHub - DCurrent/openbor-script-Hansburg: Add double jumping, wall jumping, and obstacle jumping to OpenBOR modules.
Add double jumping, wall jumping, and obstacle jumping to OpenBOR modules. - GitHub - DCurrent/openbor-script-Hansburg: Add double jumping, wall jumping, and obstacle jumping to OpenBOR modules.github.com
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