Easy Platformer 1.0

Instructions: Arrow keys or WASD to move.\nAvoid the red.\nClick R to restart a level.\nEvery Level is possible, I have beat every! ❤️⭐️I\nIf you think it is too hard, comment and I'll give you tips on how to beat the level you're stuck on.

@Stage\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [TheFatRat - Xenogenesis.mp3 v] until done\nend\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen flag clicked\nif <not <[] = [leafybay]>> then\n\n@Player\n\ndefine Touch Ground <up>\nchange [falling v] by (1)\nrepeat until <not <<touching color (#fbd595)?> or <touching color (#33ff77)?>>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\ngo to x: (-162) y: (60)\n\nwhen flag clicked\nset [speed y v] to [0]\nforever\n    forever\n        change [speed y v] by (-1)\n        change y by (speed y)\n        Touch Ground <(speed y) > [0]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <(PenEnable) = [1]>> then\n        Walk (-90) (-10)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <(PenEnable) = [1]>> then\n        change y by (18)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(x position) > [251]> and <(Level) < [11]>> then\n        go to x: (-251) y: (y position)\n        broadcast (next level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff3838)?> then\n        broadcast (restart v)\n        wait (1.5) seconds\n    end\nend\n\ndefine Walk (direction) (speed)\npoint in direction (direction)\nchange x by (speed)\nset [slope v] to [0]\nrepeat until <<(slope) = [8]> or <not <touching (ground v)?>>>\n    change y by (1)\n    change [slope v] by (1)\nend\nif <(slope) = [8]> then\n    change x by ((0) - (speed))\n    change y by ((0) - (slope))\nend\nif <<key (left arrow v) pressed?> and <([abs v] of (speed) ) > [3]>> then\n    if <(Wall Jump) = [0]> then\n        set [speed x v] to ((-1.2) * (speed))\n        set [speed y v] to [11]\n        set [falling v] to [6]\n        set [wall jump v] to [15]\n    end\nelse\n    set [speed x v] to [0]\nend\n\nwhen [r v] key pressed\nbroadcast (restart v)\n\ndefine Touch Ground <up>\nchange [falling v] by (1)\nrepeat until <not <touching (ground v)?>>\n    if <up> then\n        change y by (-1)\n    else\n        change y by (1)\n        set [falling v] to [0]\n    end\n    set [speed y v] to [0]\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen flag clicked\nswitch costume to (costume1 v)\nset size to (100) %\nerase all\nforever\n    if <(PenEnable) = [1]> then\n        wait (5e-16) seconds\n        go to [front v] layer\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(x position) < [-251]> and <(Level) > [1]>> then\n        go to x: (251) y: (y position)\n        broadcast (previous level v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <(PenEnable) = [1]>> then\n        Walk (90) (10)\n    end\nend\n\nwhen I start as a clone\nrepeat (8)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen I receive [restart v]\nset [penenable v] to [0]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nwait (0.5) seconds\ngo to x: (-200) y: (-90)\nrepeat (20)\n    change [ghost v] effect by (-10)\nend\nset [penenable v] to [1]\n\ngo to x: (-230) y: (-90)\n\nset [ghost v] effect to (0)\n\nwhen flag clicked\nset [penenable v] to [1]\n\n@Ground\n\nwhen flag clicked\ngo to x: (0) y: (1)\n\nwhen flag clicked\nswitch costume to (1 v)\n\nwhen I receive [next level v]\nchange [level v] by (1)\nbroadcast (TextGo v)\nswitch costume to (Level)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        set [level v] to [1]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\n        broadcast (ghy v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) > [9]> then\n        broadcast (hlava v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(costume [number v]) = [6]> or <(costume [number v]) < [3]>> then\n        broadcast (hlava v)\n    end\nend\n\nwhen I receive [previous level v]\nif <(Level) > [1]> then\n    change [level v] by (-1)\n    broadcast (TextGo-1 v)\nend\nswitch costume to (Level)\n\nwhen I receive [next level v]\nif <(Level) = [2]> then\n    go to x: (0) y: (5)\nend\nif <(Level) = [3]> then\n    broadcast (slava v)\n    go to x: (0) y: (3)\nend\nif <(Level) = [4]> then\n    broadcast (lavas v)\n    go to x: (0) y: (5)\nend\nif <(Level) = [5]> then\n    broadcast (slavas v)\n    go to x: (0) y: (1)\nend\nif <(Level) = [6]> then\n    broadcast (ball start v)\nelse\n    broadcast (ball stop v)\nend\nif <(Level) = [7]> then\n    broadcast (the big lava v)\n    go to x: (0) y: (2)\nend\nif <(Level) = [8]> then\n    broadcast (cooll v)\n    go to x: (0) y: (4)\nend\nif <(Level) = [9]> then\n    broadcast (the big thing v)\nend\nif <(Level) = [11]> then\n    go to x: (0) y: (1)\nend\nstop [this script v]\n\nwhen I receive [previous level v]\nif <(Level) = [3]> then\n    broadcast (slava v)\nend\nif <(Level) = [4]> then\n    broadcast (lavas v)\nend\nif <(Level) = [5]> then\n    broadcast (slavas v)\nend\nif <(Level) = [6]> then\n    broadcast (ball start v)\nelse\n    broadcast (ball stop v)\nend\nif <(Level) = [7]> then\n    broadcast (the big lava v)\nend\nif <(Level) = [8]> then\n    broadcast (cooll v)\nend\nif <(Level) = [9]> then\n    broadcast (the big thing v)\nend\nstop [this script v]\n\n@Lava\n\nwhen flag clicked\nhide\n\nwhen I receive [slava v]\nshow\nswitch costume to (costume1 v)\ngo to x: (177) y: (-66)\n\nwhen I receive [lavas v]\nshow\nswitch costume to (costume2 v)\ngo to x: (80) y: (-66)\n\nwhen I receive [hlava v]\nhide\n\nwhen I receive [slavas v]\nshow\nswitch costume to (costume3 v)\ngo to x: (47) y: (59)\n\nwhen I receive [the big lava v]\nshow\nswitch costume to (costume4 v)\ngo to x: (-12) y: (-84)\n\nwhen I receive [cooll v]\nshow\nswitch costume to (costume5 v)\ngo to x: (124) y: (-6)\n\nwhen I receive [the big thing v]\nshow\nswitch costume to (costume6 v)\ngo to x: (-4) y: (0)\n\nwhen I receive [ball boom v]\nshow\n\nwhen flag clicked\ngo to [back v] layer\n\n@Lava Ball 1\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Some Lava\n\nwhen flag clicked\nhide\ngo to x: (-14) y: (1)\nforever\n    if <(Level) = [10]> then\n        show\n    else\n        hide\n    end\nend\n\n@Lava Ball 2\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Lava Ball 3\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Lava Ball 4\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Lava Ball 5\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Lava Ball 6\n\nwhen I receive [ball start v]\nforever\n    show\n    go to (random position v)\n    wait (0.5) seconds\nend\n\nwhen I receive [ball stop v]\nhide\nstop [other scripts in sprite v]\n\nwhen flag clicked\nhide\n\nwhen I receive [ball boom v]\nshow\n\n@Level\n\nwhen flag clicked\nshow\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nhide variable [level v]\nforever\n    if <(Level) = [11]> then\n        hide\n    else\n        show\n    end\nend\n\n@Text\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (1)\nshow\nforever\n    switch costume to (Level)\nend\n\n