Switch to full stage
Loading Project
Loading project …

Instructions

Use the arrow keys (you can also use WASD). Btw, something I, personally, REALLY like about this is that you cant get stuck beneath the sprites. The purple block is just for that purpose. If you try jumping, you won't get stuck, instead you will just "bounce" back to the ground. (Scroll down for explanation of code:) -Edit: 7-8-21: Changed the wall jumping mechanic instead of 8 degree, i changed it to 4 degree. Changed the controls to arrow keys or WASD. Here's an explanation of the code if you guys wanna know how it works: Basically we have the X velocity as a variable in which when you move, the x velocity moves, then the x position is changed by the x velocity. For the y velocity we make it so that we can only jump IF the player is on the ground, cause then you could just double jump. The other change yv by 1 or -1 is just to make the gravity and fix any glitches the player will have when landing. The if loops are just to make the player work with slopes. Which in theory, if you wee to have a slanted wall like this, you could wall jump. But if you change the wall to be less slanted, the player will walk on it. Try it out if you like to!

Notes and Credits

Feel free to look at the code or remix, this is one of the more basic ways to jump. Credit: I took inspiration from JoshCRE8S

TurboWarp is a Scratch mod that compiles projects to JavaScript to make them run really fast. Try it out by inputting a project ID or URL above or choosing a featured project below.