Help coding jumping

Every time i code a jump if i keep spamming the jump button while in the air the character just stays there bouncing up qnd down until i let go of the jump button and he falls how do i make it so you cant jump again until you land on the ground

Here is the Easiest type of jump code that I use

Hey @Toby, try this:

If you set your sprite’s vy to 0, then set “on game update if is a (or up) button pressed, then set my sprite vy (velocity y) to some number like -120”. Hope this helps

thanks yall :smiley: ill post my game demo publically in a few weeks


Can’t wait! I’m sure it’ll be amazing.