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.
please send the code so pro makecoders can check it.
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.
Wow… I have no idea how to help.
I mean I tried a while ago too, but I gave up.
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!
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).
Here’s an image of the statement in case the game doesn’t load.
You can try to understand how i did it in my game, jumpy squaire