tutorial in the notes and credits section
Variables (For All Sprites) Create these variables: X Velocity Y Velocity On Ground Score Lives Checkpoint X Checkpoint Y Sprites Player Ground Lava Coin Flag Player Script Green Flag when green flag clicked go to x:(-200) y:(0) set [X Velocity v] to (0) set [Y Velocity v] to (0) set [Lives v] to (3) set [Score v] to (0) Movement forever if <key [right arrow v] pressed?> then change x by (5) end if <key [left arrow v] pressed?> then change x by (-5) end end Gravity forever change [Y Velocity v] by (-1) change y by (Y Velocity) end Ground Collision forever if <touching [Ground v]?> then repeat until <not <touching [Ground v]?>> change y by (1) end set [Y Velocity v] to (0) set [On Ground v] to (1) else set [On Ground v] to (0) end end Jump forever if <<key [space v] pressed?> and <(On Ground) = (1)>> then set [Y Velocity v] to (15) end end Lava forever if <touching [Lava v]?> then change [Lives v] by (-1) go to x:(Checkpoint X) y:(Checkpoint Y) end end Coins Coin sprite: when green flag clicked show forever if <touching [Player v]?> then hide change [Score v] by (1) stop [this script v] end end Checkpoint Flag sprite: forever if <touching [Player v]?> then set [Checkpoint X v] to (x position) set [Checkpoint Y v] to (y position) end Win forever if <touching [Flag v]?> then say [You Win!] for (3) secs stop [all v] end Level Ideas ? Grass ? Dirt ? Lava ? Coins ? Moving platforms ? Bounce pads ? Spikes ⭐ Checkpoints ? Finish flag Extra Features You Can Add Double jump Wall jump Enemies Boss fight Animations Parallax scrolling Multiple levels Main menu Save system Sound effects Background music Dash ability Health bar Collectibles Unlockable characters This gives you a solid, playable platformer foundation that you can recreate in Scratch using its block editor and then expand with additional mechanics.