• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

I want to make a wall jump system, can someone help me?

M

MasterWhite

Guest
I'm currently working on a game and I'm struggling to make a wall jump system, like the ones where you jump on a wall and instead of keep climbing up, you have to jump to the other wall in other to go up, can somebody help me? (If it isn't too much to ask, I would prefer have a code example + the explanation of how it works, thank you very much)

My movimentation and colision scripts was here

Player Create:

Create.png

Get input:

get imput.png

Movimentation:

PLATAFORM MOVIMENTATION.png

Colisions:

COLISIONS.png
 

woods

Member
based on your code ..
i would go something like your basic jump shown above... only check for the wall on the X instead of the Y..

Code:
//jump
...
...

//wall jump
if place_meeting (x+1,y,obj_wall) and key_jump
{
vspd -=10
}
 
Top