Ultimate Platformer

Instructions: -Use the arrow keys to move\n-Avoid red at all costs\n-Blue is bouncy\n-Try to get to purple\n-Try to beat the record time\n-@crazyhenryj currently has the record time of 74.9 seconds.

@Stage\n\nwhen I receive [message1 v]\nnext backdrop\n\nwhen flag clicked\nset [time v] to [0]\nswitch backdrop to (backdrop1 v)\n\nwhen flag clicked\nhide variable [☁ record_time v]\nrepeat until <(backdrop [number v]) = [20]>\n    wait (0.1) seconds\n    change [time v] by (0.1)\nend\nshow variable [☁ record_time v]\nforever\n    if <(Time) < (☁ Record_Time)> then\n        set [☁ record_time v] to (Time)\n    end\nend\n\nwhen flag clicked\nset volume to (40) %\nforever\n    play sound [Malaguena.mp3 v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\nset [y spawn v] to [-110]\nset [x spawn v] to [-224]\ngo to x: (X Spawn) y: (Y Spawn)\nset size to (50) %\nforever\n    if on edge, bounce\n    change [y v] by (-0.5)\n    if <key (left arrow v) pressed?> then\n        change [x v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching color (#000000)?> then\n        change y by (1)\n        if <touching color (#000000)?> then\n            change y by (1)\n            if <touching color (#000000)?> then\n                change y by (1)\n                if <touching color (#000000)?> then\n                    change y by (1)\n                    if <touching color (#000000)?> then\n                        change y by (1)\n                        if <touching color (#000000)?> then\n                            change y by (1)\n                            if <touching color (#000000)?> then\n                                change y by (-6)\n                                change x by ((x) * (-1))\n                                if <key (up arrow v) pressed?> then\n                                    set [y v] to [10]\n                                    if <(x) > [0]> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (y)\n    if <touching color (#000000)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<touching color (#000000)?> and <key (up arrow v) pressed?>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching color (#ff0000)?> then\n        go to x: (X Spawn) y: (Y Spawn)\n    end\n    if <touching color (#003fff)?> then\n        set [y v] to [16]\n    end\n    if <touching color (#7f00ff)?> then\n        broadcast (message1 v)\n        go to x: (X Spawn) y: (Y Spawn)\n    end\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Screen Shot 2016-06-26 at 2.06.05 PM\n\nwhen flag clicked\ngo to x: (0) y: (0)\nchange [ghost v] effect by (10000)\ngo to [front v] layer\n\n