Planets A 360 Platformer

Instructions: Use arrow keys to move\nThe Trampoline launches you\nLava and Spikes kill you\nThe Blue Portals will take you to the next level\nALL LEVELS ARE POSSIBLE (EVEN MARZ)\nTell me about any bugs\nThanks to Scratch and Nintendo for sound effects\nMusic is Faded by Alan Walker\nEverything else is by Well... Me @Coder7227\nI"m so sorry for procrastination Part 2 is coming soon\nImpossible Count:\n21 People Say It's Impossible

@Stage\n\n@Platform\n\ndefine SET HACK SIZE TO (number or text)\nswitch costume to (size hack v)\nset size to (number or text) %\nswitch costume to (costume1 v)\n\nwhen I receive [respawn v]\npoint in direction (90)\ngo to x: (-19) y: (-365)\nset [d vel v] to [0]\nset [y vel v] to [0]\n\nwhen I receive [green flag v]\nbroadcast (Earth v)\nswitch backdrop to (blue sky 2  v)\nswitch costume to (costume1 v)\nshow\nbroadcast (respawn v)\nSET HACK SIZE TO [200]\nforever\n    change [y vel v] by (1)\n    if <(move) = [0]> then\n        if <key (right arrow v) pressed?> then\n            change [d vel v] by (-0.2)\n        end\n        if <key (left arrow v) pressed?> then\n            change [d vel v] by (0.2)\n        end\n    end\n    set [d vel v] to ((d vel) * (0.8))\n    turn right (d vel) degrees\n    if <touching (player v)?> then\n        change y by (-1)\n        if <touching (player v)?> then\n            change y by (-1)\n            if <touching (player v)?> then\n                change y by (-1)\n                if <touching (player v)?> then\n                    change y by (-1)\n                    if <touching (player v)?> then\n                        change y by (4)\n                        turn right ((d vel) * (-1)) degrees\n                        set [d vel v] to [0]\n                    end\n                end\n            end\n        end\n    end\n    change y by (y vel)\n    if <touching (player v)?> then\n        change y by ((y vel) * (-1))\n        set [y vel v] to [0]\n    end\n    change y by (1)\n    if <touching (player v)?> then\n        if <key (up arrow v) pressed?> then\n            set [y vel v] to [-12]\n        end\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nswitch backdrop to (blue sky 2  v)\nhide\n\nwhen I receive [next level v]\nnext costume\nnext backdrop\nif <(costume [number v]) = [3]> then\n    broadcast (Moon v)\nend\nif <(costume [number v]) = [4]> then\n    broadcast (Mars v)\nend\n\nset [d vel v] to [0]\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen I receive [earth v]\nswitch costume to (costume1 v)\nshow\nset [ghost v] effect to (0)\nwait (1.5) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\nwhen I receive [moon v]\nswitch costume to (costume2 v)\nshow\nset [ghost v] effect to (0)\nwait (1.5) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\nwhen I receive [mars v]\nswitch costume to (costume3 v)\nshow\nset [ghost v] effect to (0)\nwait (1.5) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\nset [ghost effect v] to [0]\nset [ghost v] effect to (Ghost effect)\nwait (1.4) seconds\nrepeat until <(Ghost effect) = [100]>\n    change [ghost effect v] by (10)\n    set [ghost v] effect to (Ghost effect)\nend\nhide\nset [ghost v] effect to (0)\nbroadcast (Logo v)\n\n@LOGO\n\nwhen flag clicked\nshow\nset [ghost effect v] to [100]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\n\nwhen I receive [logo v]\nswitch backdrop to (blue sky 2  v)\nrepeat until <(Ghost effect) = [0]>\n    change [ghost effect v] by (-10)\n    set [ghost v] effect to (Ghost effect)\nend\nwait (1) seconds\nhide\nbroadcast (Green flag v)\nforever\n    play sound [Alan Walker - Faded \(instrumental version\).mp3 v] until done\nend\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (-1)\nhide\n\nwhen I receive [respawn v]\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen flag clicked\nforever\n    change y by (-5)\n    if <touching color (#ff0000)?> then\n        stop all sounds\n        start sound [Crunch v]\n        broadcast (respawn v)\n    end\n    if <touching color (#0e00ff)?> then\n        start sound [Big Boing v]\n        set [y vel v] to [-20]\n    end\n    if <touching color (#979797)?> then\n        stop all sounds\n        start sound [Crunch v]\n        broadcast (respawn v)\n    end\n    if <touching color (#5d5d5d)?> then\n        stop all sounds\n        start sound [Crunch v]\n        broadcast (respawn v)\n    end\n    if <touching color (#2cffe9)?> then\n        set [move v] to [1]\n        play sound [Win v] until done\n        broadcast (Next Level v)\n        set [move v] to [0]\n    end\n    change y by (5)\nend\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [next level v]\nbroadcast (respawn v)\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (costume3 v)\n    end\n    if <key (right arrow v) pressed?> then\n        switch costume to (costume2 v)\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (do the dew v)\nend\n\n