Help For Jumping

Is there a reliable way to make it in a platformer so that if depending on how long I hold jump, I go higher?

2 Likes

it was hard for me to make this feature I struggled on making robot gamemode on geometry dash but I kinda don’t know where you want that to go

Yes. There are two ways to do this, one of which is easier to play, and to code, and which is just better in my opinion. This first way is to have a normal jump physics, except when the player lets go of the jump button, you significantly decrease the player’s upwards velocity. (Make sure to check if the player is moving up faster than the lessened velocity amount before applying the change).
I haven’t really played around with how exactly is the best way to decrease the velocity, it might be better to half the velocity rather than directly set it to a decreased amount, though I imagine you could always set the velocity to 0 or near 0 and it would play fine…
The other option is to apply a constant velocity up until the player releases the button or a certain amount of time passes. I imagine this one is more complicated to code and harder to control when playing. It would also require a lot more tuning before it feels right. It also decreases the range of jump heights that are possible to reach.

Yes there is! You can use the platformer extension to help you
Paste this into the extension search bar to download it.

https://github.com/microsoft/arcade-platformer

And here’s an example on how to use it. Remember to make the player sprite a platformer sprite!

1 Like

Yes… I don’t know off the top of my head but @BotWarrior made that as part of his game hollow knight
Here is the link

I need the same for algebra Dash someone please help us

yup just import this

Thank you so much! The only thing is, I want it to jump on up button. When I change my input to up button, it also jumps when space button pressed. Is there any way to fix that?

1 Like

yes there is @CollapsedAxolotl,


something like this should work fine

Here. You just need a block to turn off “A” as the jump button