This is all my design. Any similarity to other people's platformer code is purely a coincidence. If you use it, please credit @Gamerbud1234 Also if you want wall jumps uh well good luck with that
How to make: Create 3 sprites called "Player", "Level" & "Dangers" In the Player sprite, create a costume at least 90 x 90 in size. Then, duplicate said costume and make a black rectangle around it. Make it the same size. Name the rectangle costume "Hitbox" and the other "Sprite". In the Level sprite, make several levels. Keep in mind that the player jumps 136 pixels. Then, copy the levels and paste them in the Dangers sprite, but there add spikes and things the player has to avoid. Then, delete the ground in each level. Now for the code. Create 3 variables: "X", "Y" & "Level". Create a custom block called "Platform", and the setting "run without screen refresh" should be turned on. In the Player sprite, add this code: when Green Flag clicked set [Level] to (1) set size to (20)% go to x: (starting x) y: (starting y) set [X] to (0) set [Y] to (0) forever: Platform also add this code: define Platform switch costume to (Hitbox) change [Y] by (-1) change y by ((Y)) if ({touching (Level) ?}) then: change y by (( (( [abs] of ((Y)) )) * (-1) )) if ({touching (Level) ?}) then: change y by ((Y)) else: change y by (-1) set [Y] to (0) change y by (1) repeat until ({not ({touching (Level) ?}) }): if ({touching (Level) ?}) then: change y by (1) change [X] by (( ({key (right arrow) pressed?}) - ({key (left arrow) pressed?}) )) change x by (X) if ({touching (Level) ?}) then: change x by (( (0) - ((X)) )) repeat until ({touching (Level) ?}): change x by (( ((X)) / (10) )) change x by (( ((X)) / (-10) )) set [X] to (0) set [X] to (( ((X)) * (0.9) )) change y by (-1) if ({ ({touching (Level) ?}) and ({key (up arrow) pressed?}) }) then: set [Y] to (17) change y by (1) if ({touching (Dangers) ?}) then: go to x: (starting x) y: (starting y) set [X] to (0) set [Y] to (0) if ({ ((x position) = (240) }) then: set [X] to (0) set [Y] to (0) change [Level] by (1) go to x: (starting x) y: (starting y) if ({ ((y position)) = (-184) }) then: go to x: (starting x) y: (starting y) set [X] to (0) set [Y] to (0) switch costume to (Sprite) Then, in the Level sprite and the Dangers sprite, add this code: when Green Flag clicked forever: switch costume to ((Level))