2.5d jumping

in a 2.5D game like this, how will i add jumping?

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?

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

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.

Or a sidescrolling platformer with 3d elements like FEZ.

Or a sidescroller with different planes like those chain link fences in super mario world.

Do you mean top down?

true…

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

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!

5 Likes

It means making a 2d thing look 3d

kinda,

top down.