# Wall Jumping Help

**URL:** <https://forum.makecode.com/t/wall-jumping-help/23503>\
**Category:** Help\
**Created:** [October 21, 2023, 12:15am UTC](https://forum.makecode.com/t/wall-jumping-help/23503 "2023-10-21T00:15:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [October 21, 2023, 12:15am UTC](https://forum.makecode.com/t/wall-jumping-help/23503/1 "2023-10-21T00:15:00Z")

</div>

I have a problem with a game that I’ve been working on for a while. I’ve been trying to add wall jumping into the game, but the way I wanted it to work… really isn’t working. I would share the code that is supposed to make it work, but there are so many if statements that it’d probably be hard for anyone to understand it. Instead, I’ll just describe it.  
I want it to be like the wall jumping in the NSMB series.  
To elaborate further, I would like for the player to decelerate whenever they hold any lateral direction, and be able to wall jump once they do so.  
Sorry if this whole thing’s hard to understand 😅  
If you still need the code I’ll send it  
Thank you and have a good day.

---

<div class="post-metadata">

**Author:** ![Mega0star01](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/mega0star01/32/14784_2.png) [@Mega0star01](https://forum.makecode.com/u/Mega0star01)\
**Post date:** [October 23, 2023, 4:33pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/2 "2023-10-23T16:33:09Z")

</div>

please send the code so pro makecoders can check it.

---

<div class="post-metadata">

**Author:** ![Brainstorm\_Studios](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/brainstorm_studios/32/20476_2.png) [@Brainstorm\_Studios](https://forum.makecode.com/u/Brainstorm_Studios)\
**Post date:** [October 23, 2023, 4:35pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/3 "2023-10-23T16:35:53Z")

</div>

Consider checking out my game, hoplings. No, this isn’t a shameless plug, I feel like the code in it could really help with wall jumping and even semisolid platforms.

---

<div class="post-metadata">

**Author:** ![ChimbroDaPro](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/chimbrodapro/32/15852_2.png) [@ChimbroDaPro](https://forum.makecode.com/u/ChimbroDaPro)\
**Post date:** [October 23, 2023, 4:42pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/4 "2023-10-23T16:42:30Z")

</div>

Wow… I have no idea how to help. 🙂

I mean I tried a while ago too, but I gave up.

---

<div class="post-metadata">

**Author:** ![Hello1](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/hello1/32/20533_2.png) [@Hello1](https://forum.makecode.com/u/Hello1)\
**Post date:** [October 23, 2023, 4:42pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/5 "2023-10-23T16:42:37Z")

</div>

One of the ways I did it was by making a variable called “CanWallJump” where 0 = you can’t and 1 = you can. when the player touches a wall, it sets to 1 and they’re not, it’s at 0. hope this helps!

---

<div class="post-metadata">

**Author:** ![IMakeCode](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/imakecode/32/17303_2.png) [@IMakeCode](https://forum.makecode.com/u/IMakeCode)\
**Post date:** [October 23, 2023, 9:36pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/8 "2023-10-23T21:36:34Z")

</div>

For some reason(probably the size), whenever I try to share the project, it gives me an error message. However, I did somehow manage to get the png file of the project earlier. The wall jump code is right above the forever statement that assigns properties to all enemies of the Bomber kind(somewhere to the right of the on start block).  
 ![arcade-Double-Jumper-07 (2)](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/f/f78dc44b277ebbdac052a8dc287c1bba9a4ad137.png)  
Here’s an image of the statement in case the game doesn’t load.

 ![Screenshot 2023-10-23 173320](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/6/68c58f597802711c358b3e02c436356da170a7f4.png)

---

<div class="post-metadata">

**Author:** ![WoofWoof](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/woofwoof/32/32523_2.png) [@WoofWoof](https://forum.makecode.com/u/WoofWoof)\
**Post date:** [October 27, 2023, 6:12pm UTC](https://forum.makecode.com/t/wall-jumping-help/23503/9 "2023-10-27T18:12:29Z")

</div>

You can try to understand how i did it in my game, [jumpy squaire](https://forum.makecode.com/t/new-game-https-arcade-makecode-com-s78958-36595-36661-02495-jumpy-square-have-fun/23684)
