# Making a new game

**URL:** <https://forum.makecode.com/t/making-a-new-game/6838>\
**Category:** Help\
**Created:** [March 18, 2021, 3:00am UTC](https://forum.makecode.com/t/making-a-new-game/6838 "2021-03-18T03:00:50Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Local\_momo](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/local_momo/32/3598_2.png) [@Local\_momo](https://forum.makecode.com/u/Local_momo)\
**Post date:** [March 18, 2021, 3:00am UTC](https://forum.makecode.com/t/making-a-new-game/6838/1 "2021-03-18T03:00:50Z")

</div>

How do I make it so you can’t just repeatedly jump, or like, have it paused until you reach the ground

---

<div class="post-metadata">

**Author:** ![DahbixLP](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/dahbixlp/32/4760_2.png) [@DahbixLP](https://forum.makecode.com/u/DahbixLP)\
**Post date:** [March 18, 2021, 3:24pm UTC](https://forum.makecode.com/t/making-a-new-game/6838/2 "2021-03-18T15:24:09Z")

</div>

Just do this!

> **[jump](https://arcade.makecode.com/77072-59491-15048-13389)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![UnsignedArduino](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/unsignedarduino/32/592_2.png) [@UnsignedArduino](https://forum.makecode.com/u/UnsignedArduino)\
**Post date:** [March 18, 2021, 3:24pm UTC](https://forum.makecode.com/t/making-a-new-game/6838/3 "2021-03-18T15:24:30Z")

</div>

Have a variable that counts how many times you jump, and when it’s greater than like, 2, then disable jumping. Once you hit the floor, reset the variable.

---

<div class="post-metadata">

**Author:** ![Agent\_14](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/agent_14/32/17567_2.png) [@Agent\_14](https://forum.makecode.com/u/Agent_14)\
**Post date:** [March 18, 2021, 3:24pm UTC](https://forum.makecode.com/t/making-a-new-game/6838/4 "2021-03-18T15:24:51Z")

</div>

Put the jump inside a if hitting wall bottom.

---

<div class="post-metadata">

**Author:** ![Bag3l](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/bag3l/32/18267_2.png) [@Bag3l](https://forum.makecode.com/u/Bag3l)\
**Post date:** [March 18, 2021, 3:25pm UTC](https://forum.makecode.com/t/making-a-new-game/6838/5 "2021-03-18T15:25:52Z")

</div>

@Local_momo, use an if then statement. There should be a block/ prewritten piece of code that allows you to check if a sprite is hitting a wall in any direction. Set that to bottom, and put it in the if then statement. There you go, you can only jump on the ground.
