How do i make this kind of wall jump?

So, here’s the deal. I already have a functioning wall jump in my game, but it isnt working how i want it to. In my game, when you jump off a wall, you go straight up. I want an effect similar to a mario game. In mario games, whenever you wall jump, your character goes up and im the oppisite direction of the wall, diagonally. Then, they cannot jump off that wall until they jump off another one. Does anyone know how to make an effect similar to this?

1 Like

I would imagine changing the ‘x’ value in addition to the ‘y’ value

(vx, vy, ax, ay, x, y or whatever you use)

Hope it helps!

1 Like

I tried that, it sadly didnt work.

1 Like

i found this online:

You could try to incorporate it to your game!