Ball Platformer 

Instructions: Use the arrow keys or ASDW to move. Go to the flag. Different colors mean different things. 

@Stage\n\nwhen flag clicked\nforever\n    play sound [\[Dubstep_-_Pegboard_Nerds_-_Self_Destruct_\[Monster v] until done\nend\n\n@theGround\n\nwhen I receive [nextlevel v]\nnext costume\n\nwhen I receive [message1 v]\nswitch costume to (costume15 v)\n\nwhen [space v] key pressed\nchange [level v] by (1)\nnext costume\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\n@theGuy\n\nwhen flag clicked\nset [level v] to [1]\nhide variable [level v]\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-209) y: (-54)\n        set [yv v] to [0]\n        wait until <not <touching color (#e81818)?>>\n    end\n    if <<touching color (#ffff00)?> or <touching color (#000000)?>> then\n        go to x: (-209) y: (-54)\n        change [level v] by (1)\n        broadcast (nextlevel v)\n        wait until <not <<touching color (#ffff00)?> or <touching color (#000000)?>>>\n    end\n    if <touching color (#ff9400)?> then\n        set [yv v] to [20]\n    end\n    if <touching color (#2daae4)?> then\n        set [yv v] to [40]\n    end\n    if <touching color (#cc99ff)?> then\n        if <(level) = [11]> then\n            go to x: (-212) y: (19)\n        end\n        if <(level) = [10]> then\n            go to x: (-193) y: (117)\n        end\n        if <(level) = [13]> then\n            go to x: (219) y: (18)\n        end\n    end\n    wait until <not <touching color (#cc99ff)?>>\nend\n\nwhen flag clicked\nforever\n    if <touching color (#15e462)?> then\n        change y by ((YV) * (1))\n        set [yv v] to [0]\n    end\n    change y by (1)\n    if <<touching color (#15e462)?> and <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>>> then\n        set [yv v] to [-15]\n    end\n    change y by (-1)\nend\n\nwhen flag clicked\nshow\nset size to (50) %\nwait (1) seconds\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (-209) y: (-54)\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [xv v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [xv v] by (-1)\n    end\n    set [xv v] to ((XV) * (0.9))\n    change x by (XV)\n    if <touching color (#00ff55)?> then\n        change y by (1)\n        if <touching color (#00ff55)?> then\n            change y by (1)\n            if <touching color (#00ff55)?> then\n                change y by (1)\n                if <touching color (#00ff55)?> then\n                    change y by (1)\n                    if <touching color (#00ff55)?> then\n                        change y by (1)\n                        if <touching color (#00ff55)?> then\n                            change x by ((XV) * (-1))\n                            change y by (-5)\n                            if <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w 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    end\n    change [yv v] by (-1)\n    change y by (YV)\n    if <touching color (#00ff55)?> then\n        change y by ((YV) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <<touching color (#00ff55)?> and <<<key (up arrow v) pressed?> or <key (space v) pressed?>> or <key (w v) pressed?>>> then\n        set [yv v] to [15]\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#e4e43e)?> then\n        broadcast (message1 v)\n    end\nend\n\nwhen [space v] key pressed\ngo to x: (-209) y: (-54)\n\n@thumbnail\n\nwhen flag clicked\nhide\n\nwhen I receive [message1 v]\nwait (3.5) seconds\nshow\ngo to [front v] layer\ngo to x: (0) y: (0)\nstop [all v]\n\n