# Help coding jumping

**URL:** <https://forum.makecode.com/t/help-coding-jumping/13551>\
**Category:** Help\
**Tags:** game\
**Created:** [May 13, 2022, 3:02am UTC](https://forum.makecode.com/t/help-coding-jumping/13551 "2022-05-13T03:02:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Toby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toby/32/31659_2.png) [@Toby](https://forum.makecode.com/u/Toby)\
**Post date:** [May 13, 2022, 3:02am UTC](https://forum.makecode.com/t/help-coding-jumping/13551/1 "2022-05-13T03:02:14Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![danger\_kitty](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/danger_kitty/32/32006_2.png) [@danger\_kitty](https://forum.makecode.com/u/danger_kitty)\
**Post date:** [May 13, 2022, 4:19pm UTC](https://forum.makecode.com/t/help-coding-jumping/13551/2 "2022-05-13T16:19:40Z")

</div>

Here is the Easiest type of jump code that I use

 ![arcade-screenshot](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/0/078c4d804fbbd2ad7b941143c559e1bdd0dea3f7.png)

---

<div class="post-metadata">

**Author:** ![PrinceDaBezt123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/princedabezt123/32/6280_2.png) [@PrinceDaBezt123](https://forum.makecode.com/u/PrinceDaBezt123)\
**Post date:** [May 13, 2022, 4:21pm UTC](https://forum.makecode.com/t/help-coding-jumping/13551/3 "2022-05-13T16:21:10Z")

</div>

Hey @Toby, try this:

 ![Screenshot 2022-05-13 113131](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/9/994650df42d7702e2b2829caa3eac9ab1251bc2c.jpeg)

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

---

<div class="post-metadata">

**Author:** ![Toby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/toby/32/31659_2.png) [@Toby](https://forum.makecode.com/u/Toby)\
**Post date:** [May 18, 2022, 4:59pm UTC](https://forum.makecode.com/t/help-coding-jumping/13551/4 "2022-05-18T16:59:43Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![PrinceDaBezt123](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/princedabezt123/32/6280_2.png) [@PrinceDaBezt123](https://forum.makecode.com/u/PrinceDaBezt123)\
**Post date:** [May 19, 2022, 12:39am UTC](https://forum.makecode.com/t/help-coding-jumping/13551/5 "2022-05-19T00:39:13Z")

</div>

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