Earth || A 360º Scrolling Platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Everdream v] until done\nend\n\n@blank\n\n@Background\n\nwhen flag clicked\nswitch costume to (mercury v)\nset x to (0)\nset y to (0)\nforever\n    if <key (right arrow v) pressed?> then\n        glide (0.2) secs to x: (2) y: (0)\n    else\n        if <key (left arrow v) pressed?> then\n            glide (0.2) secs to x: (-2) y: (0)\n        else\n            glide (0.1) secs to x: (0) y: (0)\n        end\n    end\n    go to [back v] layer\nend\n\n@Earth\n\nwhen flag clicked\nswitch costume to (earth v)\nbroadcast (respawn v)\nforever\n    change [y vel v] by (0.6)\n    if <key (right arrow v) pressed?> then\n        change [dir vel v] by (-0.2)\n    end\n    if <key (left arrow v) pressed?> then\n        change [dir vel v] by (0.2)\n    end\n    set [dir vel v] to ((Dir Vel) * (0.8))\n    turn right (Dir 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 ((Dir Vel) * (-1)) degrees\n                        set [dir 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 I receive [respawn v]\npoint in direction (90)\ngo to x: (-10) y: (-500)\nset [dir vel v] to [0]\nset [y vel v] to [0]\n\n@player\n\nwhen flag clicked\ngo to x: (0) y: (0)\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        broadcast (respawn v)\n    end\n    show\n    change y by (5)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (respawn v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\ngo to [front v] layer\nshow\ngo to x: (0) y: (0)\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n
★════ Earth 360º platformer ════★\nHello! After days of hard work, I present to you my first 360º platformer\n\nArrow keys to move\n