Platformer
@Stage\n\n@Player\n\nwhen I receive [change player1 v]\nswitch costume to (classic v)\n\nwhen I receive [start v]\nshow variable [level v]\nshow\ngo to x: (-180) y: (-50)\nset [level v] to [1]\nset [x v] to [0]\nset [y v] to [0]\npoint in direction (90)\nforever\n    change [y v] by (-1)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.7)\n        set rotation style [left-right v]\n        point in direction (-90)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [x v] by (0.7)\n        set rotation style [all around v]\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (1)\n    end\n    if <touching (levels v)?> then\n        change y by (-4)\n        change x by ((x) * (-1))\n        if <<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [10]\n            if <([abs v] of (x) ) = (x)> then\n                set [x v] to [-5]\n            else\n                set [x v] to [5]\n            end\n        else\n            set [x v] to [0]\n        end\n    end\n    change y by (y)\n    if <touching (levels v)?> then\n        change y by ((0) - (y))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<<<key (space v) pressed?> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching (levels v)?>> then\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <(y position) > [180]> then\n        set [y v] to [0]\n    end\nend\n\nwhen I receive [change player3 v]\nswitch costume to (classic3 v)\n\nwhen I receive [change player2 v]\nswitch costume to (classic2 v)\n\nwhen I receive [change player4 v]\nswitch costume to (classic4 v)\n\nwhen flag clicked\nforever\n    if <touching (next v)?> then\n        broadcast (NEXT v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (spikes lava v)?> or <touching (enemies v)?>> then\n        broadcast (Death v)\n    end\nend\n\nwhen I receive [death v]\ngo to x: (-183) y: (9)\n\nwhen flag clicked\nforever\n    if <<touching (spikes lava v)?> or <touching (enemies v)?>> then\n        go to x: (-183) y: (9)\n    end\nend\n\nwhen I receive [next v]\ngo to x: (-183) y: (9)\n\nwhen flag clicked\nhide variable [level v]\n\n@Levels\n\nwhen I receive [start v]\nshow\nset [level v] to [1]\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen I receive [next v]\nnext costume\nchange [level v] by (1)\n\nwhen [n v] key pressed\nbroadcast (NEXT v)\n\n@Next\n\n@Spikes Lava\n\nwhen I receive [start v]\nshow\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [start v]\nshow\n\n@TN\n\nwhen flag clicked\nhide\n\n@MENU//START\n\nwhen I receive [start v]\nhide\n\nwhen this sprite clicked\nbroadcast (START v)\n\nwhen flag clicked\nset [color v] effect to (0)\nshow\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [back v]\nshow\n\nwhen I receive [back v]\nshow\n\n@MENU//SETTINGS\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nset [color v] effect to (0)\nshow\n\nwhen this sprite clicked\nbroadcast (SETTINGS v)\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [more v]\nhide\n\nwhen I receive [change mode v]\nnext costume\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back v]\nshow\n\n@MENU//BACK\n\nwhen this sprite clicked\nbroadcast (Back v)\n\nwhen I receive [settings v]\nshow\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen flag clicked\nset [color v] effect to (0)\nhide\n\nwhen I receive [more v]\nshow\n\nwhen I receive [change mode v]\nnext costume\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back v]\nhide\n\n@MENU//TEXT\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen flag clicked\nset [color v] effect to (0)\n\nwhen I receive [start v]\nhide\n\nwhen I receive [settings v]\nhide\n\nwhen I receive [more v]\nhide\n\nwhen I receive [start v]\nhide\n\nwhen I receive [back v]\nshow\n\n@MENU//BACKGROUND\n\nwhen I receive [change mode v]\nnext costume\n\nwhen I receive [start v]\nhide\n\nwhen flag clicked\nshow\n\nwhen I receive [back v]\nshow\n\n@MENU//Color\n\nwhen I receive [settings v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [r v]\nnext costume\n\nwhen I receive [l v]\nswitch costume to (previous costume v)\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        broadcast (Change Player1 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [4]> then\n        broadcast (Change Player4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [2]> then\n        broadcast (Change Player2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        broadcast (Change Player3 v)\n    end\nend\n\nwhen I receive [start v]\nhide\n\n@MENU//L ARROW\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [settings v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (L v)\n\nwhen I receive [start v]\nhide\n\n@MENU//R ARROW\n\nwhen I receive [rainbow v]\nforever\n    change [color v] effect by (10)\nend\n\nwhen I receive [settings v]\nshow\n\nwhen I receive [back v]\nhide\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (R v)\n\nwhen I receive [change mode v]\nnext costume\n\nwhen I receive [start v]\nhide\n\n
NEW CONTEST https://scratch.mit.edu/projects/946509277/\nWASD/Arrows to move Player\nDon't touck the Spikes or Lava\nMobile Friendly\nN to skip\nLike and Fav