# 2.5d jumping

**URL:** <https://forum.makecode.com/t/2-5d-jumping/21778>\
**Category:** Help\
**Tags:** game, graphics-and-math, make\
**Created:** [August 10, 2023, 8:23pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778 "2023-08-10T20:23:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![urassari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/urassari/32/9535_2.png) [@urassari](https://forum.makecode.com/u/urassari)\
**Post date:** [August 10, 2023, 8:23pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/1 "2023-08-10T20:23:19Z")

</div>

![image](https://us1.discourse-cdn.com/flex020/uploads/makecode/original/2X/4/4b654accd64cac3a93400c3d88cf49c33d9544ab.png) in a 2.5D game like this, how will i add jumping?

---

<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:** [August 10, 2023, 8:25pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/2 "2023-08-10T20:25:09Z")

</div>

could you give an example of what you mean by 2.5d? It can mean a few different things. Is there a game you’re thinking of?

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [August 10, 2023, 10:56pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/3 "2023-08-10T22:56:01Z")

</div>

I think he means its 2D but it looks 3D  
(2D + 3D) / 2 = 2.5D

---

<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:** [August 10, 2023, 11:03pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/4 "2023-08-10T23:03:01Z")

</div>

hehe, i understand that much! But there are a bunch of different ways to interpret 2.5D.

For example, a top down platformer like [Crosscode](https://en.wikipedia.org/wiki/CrossCode).

Or a sidescrolling platformer with 3d elements like [FEZ](https://en.wikipedia.org/wiki/Fez_(video_game)).

Or a sidescroller with different planes like [those chain link fences in super mario world](https://mario.wiki.gallery/images/1/19/SMW_Fence.png).

---

<div class="post-metadata">

**Author:** ![Luke](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/luke/32/32519_2.png) [@Luke](https://forum.makecode.com/u/Luke)\
**Post date:** [August 10, 2023, 11:03pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/5 "2023-08-10T23:03:44Z")

</div>

Do you mean top down?

---

<div class="post-metadata">

**Author:** ![YuHayate](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/yuhayate/32/8275_2.png) [@YuHayate](https://forum.makecode.com/u/YuHayate)\
**Post date:** [August 11, 2023, 4:28pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/6 "2023-08-11T16:28:16Z")

</div>

true…

---

<div class="post-metadata">

**Author:** ![sylvancircle](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/sylvancircle/32/15811_2.png) [@sylvancircle](https://forum.makecode.com/u/sylvancircle)\
**Post date:** [August 11, 2023, 4:29pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/7 "2023-08-11T16:29:01Z")

</div>

I think this is most likely beat-em-up style 2D (Double Dragon, Streets of Rage, Castle Crasher).

If that’s the case, here’s a quick example of one way to do it: [https://arcade.makecode.com/S08709-89116-31899-14498](https://arcade.makecode.com/S08709-89116-31899-14498)

Basically, you will have to track the character’s height off the ground separately from its position on the ground. Splitting the body and its shadow allows the character to be drawn off the ground as well as jump into wall tiles without being blocked. A little bit of extra math handles the character’s gravity.

It starts to get trickier when pits get involved, but let’s worry about that when you get there. Hope this helps!

---

<div class="post-metadata">

**Author:** ![SoftTalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/softtalker/32/10776_2.png) [@SoftTalker](https://forum.makecode.com/u/SoftTalker)\
**Post date:** [August 11, 2023, 4:29pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/8 "2023-08-11T16:29:04Z")

</div>

It means making a 2d thing look 3d

---

<div class="post-metadata">

**Author:** ![urassari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/urassari/32/9535_2.png) [@urassari](https://forum.makecode.com/u/urassari)\
**Post date:** [August 11, 2023, 4:29pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/9 "2023-08-11T16:29:04Z")

</div>

kinda,

---

<div class="post-metadata">

**Author:** ![urassari](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.makecode.com/urassari/32/9535_2.png) [@urassari](https://forum.makecode.com/u/urassari)\
**Post date:** [August 11, 2023, 4:29pm UTC](https://forum.makecode.com/t/2-5d-jumping/21778/10 "2023-08-11T16:29:06Z")

</div>

top down.
