Pastel - A Platformer

Instructions: Pastel - A Platformer\nIF YOU GET STUCK, PRESS 'R'\n=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=\nAll made my me, _Oxymoron_.\nThis is so old. Enjoy the cringe project my younger self made. \n\nUse the arrow keys to move and jump. Press r to reset yourself on the level.\n\nGREEN gets you to the next level.\nRED kills you (don't worry, you have unlimited lives XD).\n\nHave fun!\n\nREMEMBER TO FAVOURITE, LOVE AND COMMENT :D\n\n=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=\nUpdate Log:\n21/12/18 - shared project\n16/01/19 - fixed some bugs\n17/01/19 - added level 11, because we hit 10 favourites! Yay!\n18/01/19 - 20 FAVES! WHOOO! Level 12 done.\n24/01/2019 - Level 13 done.\n19/02/2019 - Level 14\n21/02/2019 - added new intro\n =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=\n

@Stage\n\nwhen I receive [homepage v]\nswitch backdrop to (start v)\n\nwhen I receive [finish v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nclear graphic effects\nswitch backdrop to (the end v)\nwait (2) seconds\nbroadcast (end v)\n\nwhen I receive [end v]\nswitch backdrop to (thanks v)\n\nwhen flag clicked\nswitch backdrop to (logo v)\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nnext backdrop\nclear graphic effects\n\n@Sprite1\n\nwhen I receive [start v]\ngo to x: (-208) y: (0)\nplaform\n\ndefine plaform\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (left v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#cccccc)?> then\n        change y by (1)\n        if <touching color (#cccccc)?> then\n            change y by (1)\n            if <touching color (#cccccc)?> then\n                change y by (1)\n                if <touching color (#cccccc)?> then\n                    change y by (1)\n                    if <touching color (#cccccc)?> then\n                        change x by ((Xv) * (-1))\n                        change y by (-4)\n                        if <key (up arrow v) pressed?> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-5]\n                            else\n                                set [xv v] to [5]\n                            end\n                            set [yv v] to [10]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#cccccc)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#cccccc)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nif <touching color (#dddede)?> then\n    broadcast (reset v)\nend\n\nwhen I receive [reset v]\ngo to x: (-208) y: (0)\n\nwhen flag clicked\nhide\nforever\n    if <touching color (#ffcccc)?> then\n        broadcast (reset v)\n    end\n    if <touching color (#e0ffb8)?> then\n        broadcast (next level v)\n        broadcast (start v)\n    end\n    if <touching color (#ffe9cc)?> then\n        broadcast (finish v)\n    end\nend\n\nwhen [r v] key pressed\nbroadcast (reset v)\n\nwhen I receive [finish v]\nswitch costume to (right v)\nshow\ngo to x: (-201) y: (-133)\nglide (2) secs to x: (186) y: (-133)\nhide\n\n@Sprite2\n\nwhen I receive [homepage v]\nshow\ngo to x: (-14) y: (-60)\nforever\n    next costume\n    wait (0.5) seconds\nend\n\nwhen this sprite clicked\nbroadcast (Start v)\nglide (0.25) secs to x: (-14) y: (-180)\nhide\n\nwhen flag clicked\nhide\n\n@Music\n\nwhen I receive [homepage v]\nforever\n    play sound [“New In Town” \(Pet Simulator a Roblox Original Soundtrack\) by BSlick.mp3 v] until done\nend\n\n@Star\n\nwhen I receive [end v]\nswitch costume to (star v)\nshow\nset [ghost v] effect to (100)\ngo to x: (-52) y: (135)\nrepeat (20)\n    wait (0.05) seconds\n    change [ghost v] effect by (-5)\nend\nswitch costume to (star1 v)\nplay sound [pop v] until done\n\nwhen flag clicked\nhide\n\n@heart\n\nwhen I receive [end v]\nswitch costume to (heart v)\nshow\nset [ghost v] effect to (100)\ngo to x: (49) y: (131)\nrepeat (20)\n    wait (0.05) seconds\n    change [ghost v] effect by (-5)\nend\nwait (1) seconds\nswitch costume to (heart1 v)\nplay sound [pop v] until done\n\nwhen flag clicked\nhide\n\n@arrow\n\nwhen flag clicked\nhide\ngo to x: (207) y: (-158)\n\nwhen I receive [end v]\nshow\nglide (1.6) secs to x: (-52) y: (135)\nset size to (80) %\nwait (0.1) seconds\nset size to (100) %\nglide (0.9) secs to x: (49) y: (131)\nset size to (80) %\nwait (0.1) seconds\nset size to (100) %\nglide (0.5) secs to x: (173) y: (146)\n\n@comment\n\nwhen I receive [end v]\nswitch costume to (comment v)\nshow\nset [ghost v] effect to (100)\ngo to x: (-5) y: (-87)\nrepeat (20)\n    wait (0.05) seconds\n    change [ghost v] effect by (-5)\nend\nforever\n    switch costume to (comment v)\n    wait (0.5) seconds\n    switch costume to (comment2 v)\n    wait (0.5) seconds\nend\n\nwhen flag clicked\nhide\n\n@Sprite4\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\n\nwhen [t v] key pressed\nif <(username) = [_Oxymoron_]> then\n    show\nend\n\n@Sprite3\n\nwhen flag clicked\nclear graphic effects\nswitch costume to (costume1 v)\nhide\n\nwhen flag clicked\nplay sound [Brick Bronze OST Route 16 by BSlick v] until done\n\nwhen [space v] key pressed\nif <(username) = [_Oxymoron_]> then\n    hide\nend\n\nwhen flag clicked\nset size to (70) %\nshow\ngo to x: (400) y: (-11)\nglide (1) secs to x: (206) y: (-11)\nrepeat (10)\n    wait (0.05) seconds\n    next costume\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (name v)\n\nwhen flag clicked\nwait (1) seconds\nplay sound [Super Smash Bros 64 v] until done\n\n@Sprite5\n\nwhen flag clicked\nclear graphic effects\nset [ghost v] effect to (100)\n\nwhen I receive [name v]\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (3) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (homepage v)\n\n@Sprite6\n\nwhen flag clicked\nhide\nswitch costume to (costume1 v)\nclear graphic effects\nset [ghost v] effect to (100)\n\nwhen I receive [name v]\nshow\ngo to [front v] layer\ngo to x: (-115) y: (-6)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (1) seconds\nrepeat (6)\n    next costume\nend\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@Sprite7\n\nwhen I receive [name v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (4) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\nclear graphic effects\nset [ghost v] effect to (100)\n\n