# Help with a double jump

**URL:** <https://forum.makecode.com/t/help-with-a-double-jump/9014>\
**Category:** Help\
**Created:** [July 2, 2021, 4:58pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014 "2021-07-02T16:58:27Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 2, 2021, 4:58pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/1 "2021-07-02T16:58:27Z")

</div>

So im making a game that is like a zelda 2d game.  
And i want to do a item that makes the character jump two times.  
Is there a way to make a double jump?

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 2, 2021, 4:59pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/2 "2021-07-02T16:59:55Z")

</div>

Are you doing a sidescroller or a topdown game?

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 2, 2021, 5:04pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/3 "2021-07-02T17:04:32Z")

</div>

Sidescroller

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 2, 2021, 5:07pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/4 "2021-07-02T17:07:44Z")

</div>

The way I usually do this is using a variable! Let’s call it “number of jumps”.

Whenever the player touches the ground set “number of jumps” to 0. Then, whenever they jump, increase “number of jumps” by 1. Only do a jump if “number of jumps” is less than 2.

You can check when the player is on the ground using an “on sprite of kind player hits wall” block in the scene category and then putting an “is sprite hitting wall bottom” block inside of an if-statement.

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 2, 2021, 5:31pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/5 "2021-07-02T17:31:29Z")

</div>

I still did not get it 😕

---

<div class="post-metadata">

**Author:** ![richard](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/richard/32/5417_2.png) [@richard](https://forum.makecode.com/u/richard)\
**Post date:** [July 2, 2021, 5:35pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/6 "2021-07-02T17:35:07Z")

</div>

Here’s some sample code:

> **[double jump](https://arcade.makecode.com/42592-97492-53158-56577)**
>
> Made with ❤️ in Microsoft MakeCode Arcade.

---

<div class="post-metadata">

**Author:** ![ursoidd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/ursoidd/32/34551_2.png) [@ursoidd](https://forum.makecode.com/u/ursoidd)\
**Post date:** [July 2, 2021, 5:38pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/7 "2021-07-02T17:38:56Z")

</div>

Thanks 👍

---

<div class="post-metadata">

**Author:** ![OrigamiArtist](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/origamiartist/32/33299_2.png) [@OrigamiArtist](https://forum.makecode.com/u/OrigamiArtist)\
**Post date:** [March 4, 2026, 5:40pm UTC](https://forum.makecode.com/t/help-with-a-double-jump/9014/8 "2026-03-04T17:40:19Z")

</div>

Is there a way to make a double jump but going sideways? Like this:

 ![Screenshot 2026-03-04 16.40.41](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/3X/5/8/58eedca027e457896203d4040e3ed33c34d6e8d7.png)

Just to save on making a whole other topic, I’ll post it here.
