This project works best in Turbowarp (https://turbowarp.org/440913868?turbo&fps=60). Run the project in turbo mode (shift click the green flag). This is needed because the game makes some checks of where the platforms are and the game cannot make them fast enough at 30 fps. The game also has a debugger that fixes the hitboxes after 0.25 seconds if they get stuck. At 30 fps, almost every interaction with a platform will cause the hitboxes to reset. Use the arrow keys to move. Press s to jump. You can wall jump, too. Jump onto a wall and you will automatically cling to it. Jump to launch off. Similarly to Fancy Pants Adventure: World 3, you can wall run. Hold up when jumping onto a wall to quickly scale the wall. If you wall run at the top of a wall, you can vault up and get a boost of speed. You can also wall run up walls that have a curve at the bottom without jumping. Press f to view hitboxes. This is useful if you want to edit this (though the code is a mess...) The hitboxes correspond to the following colors: Red - Hitbox X Blue - Hitbox Y Yellow - Wall jump zones Green - Floor zone
I've been trying to make a platformer engine myself, and I think I'm proud of what I have so far. More updates are to come. Currently negative gravity is quite glitchy, so I advise you not to use it. Update Log V3.4 9/23/21 -Got rid of an annoying sound that occurs when you're running V3.3 3/25/21 -Added a glitchy teleport move by pressing A while moving, but I'm too busy right now to do anything about it V3.2 2/9/21 -Increased wall run value -Decreased air friction -Changed map a bit to be more suited for wall jumping V3.1 1/17/21 Changed a few default values to fit Turbowarp better V3.0 12/10/20 Renamed Internal FPS to Average FPS due to the variable being the average FPS after a small amount of time Changed Average FPS time from 1 second to 1/2 second Added the Internal FPS variable Fixed a glitch where the speed of sliding down a wall was dependent on your FPS Changed floor hitbox thickness Set the box size to half, same for all stats Fixed a bug where if the y hitbox touches the ground while Momentum Y>0, it goes through the floor...ish... Okay, actually, there's a lot of bugs where you can glitch through platforms... V2.1.1 12/9/20 Renamed FPS to Internal FPS due to it not being the actual visual FPS, only the speed that the Scratch processes it. V2.1 10/27/20 Slight hitbox shape adjustments V2.0 10/26/20 (okay, I'll just compile the rest of the updates for today here) FPA 3 wall running and vaulting Sounds (placeholder, probably) Debugger V1.4 10/26/20 (yes all of these updates came in one day) Wall jumping! It's a little different from other Scratch platformers. V1.3 10/26/20 I fixed the bugs now. There might still be a few, but most of them are gone. V1.2 10/26/20 Now you can't jump. I'm trying to fix bugs, but it doesn't work. V1.1 10/26/20 Apparently there's this glitch that makes the Y hitbox think that jumping in the ground (falling from a high height and then hitting the ground) means you are hitting a ceiling, so I needed to make a few debug additions to the script. I got an FPS script from " () to help fix the bug, and it sort of did. Now when you jump at a ceiling while holding left or right, it seems like the X hitbox freaks out. V1.0 10/25/20 Release