Mr. Circle Platformer 2

Instructions: Use the arrow keys to move and press space bar to kill yourself if you get stuck. If you touch red it will kill you. Purple is a bounce pad, so it will shoot you really high, and green zooms you to the right.\n\nALL OF THE LEVELS ARE POSSIBLE!\n\nHave fun! Good luck!

@Stage\n\nwhen flag clicked\nswitch backdrop to (main menu v)\nset [level v] to [0]\nhide variable [level v]\nhide variable [time v]\nhide variable [score v]\nreset timer\nforever\n    if <(backdrop [number v]) < [5]> then\n        reset timer\n    end\nend\n\nwhen I receive [next level v]\nnext backdrop\nchange [level v] by (1)\nset [yvel v] to [0]\nset [xvel v] to [0]\n\nwhen backdrop switches to [main menu2 v]\nshow variable [score v]\nset [score v] to (timer)\nhide variable [level v]\nforever\n    reset timer\nend\n\nwhen backdrop switches to [level1 v]\nreset timer\nset [level v] to [1]\nshow variable [level v]\n\n@Mr. Circle title\n\nwhen flag clicked\nshow\nswitch costume to (costume2 v)\ngo to x: (-324) y: (93)\nrepeat (35)\n    change x by (10)\nend\nwait (1.5) seconds\nforever\n    next costume\nend\n\nwhen backdrop switches to [intro1 v]\nhide\n\n@Platformer title\n\nwhen flag clicked\nhide\nwait (1) seconds\nshow\nswitch costume to (costume2 v)\ngo to x: (405) y: (37)\nrepeat (40)\n    change x by (-10)\nend\nwait (1) seconds\nforever\n    next costume\nend\n\nwhen backdrop switches to [intro1 v]\nhide\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (main menu v)\nhide\nwait (2) seconds\nshow\nswitch costume to (costume1 v)\ngo to x: (-14) y: (-242)\nrepeat (20)\n    change y by (10)\nend\nforever\n    next costume\nend\n\nwhen backdrop switches to [intro1 v]\nhide\n\nwhen backdrop switches to [intro1 v]\nhide\n\n@Play button\n\nwhen flag clicked\nhide\nwait (3) seconds\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen this sprite clicked\nhide\nswitch backdrop to (intro1 v)\n\n@roof\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [intro1 v]\nshow\n\n@Mr. Circle\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [yvel v] to [0]\nset [xvel v] to [0]\nforever\n    change y by (Yvel)\nend\n\nwhen backdrop switches to [intro1 v]\nshow\nswitch costume to (straight v)\ngo to x: (-115) y: (-43)\nforever\n    set [xpos v] to (x position)\n    set [ypos v] to (y position)\n    change [yvel v] by (-0.5)\n    if <<key (space v) pressed?> or <<(y position) < [-141]> or <touching color (#ff0000)?>>> then\n        hide\n        set [xvel v] to [0]\n        set [yvel v] to [0]\n        wait (0.5) seconds\n        go to x: (-115) y: (-43)\n        show\n    end\n    if <<not <key (right arrow v) pressed?>> and <not <key (left arrow v) pressed?>>> then\n        switch costume to (straight v)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xvel v] by (0.7)\n        switch costume to (right v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xvel v] by (-0.7)\n        switch costume to (left v)\n    end\n    change x by (Xvel)\n    if <touching color (#000000)?> then\n        change y by (2)\n        if <touching color (#000000)?> then\n            change y by (2)\n            if <touching color (#000000)?> then\n                change y by (2)\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 x by ((Xvel) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> and <not <color (#003fff) is touching (#000000)?>>> then\n                                if <(Xvel) > [0]> then\n                                    set [xvel v] to [-8]\n                                else\n                                    set [xvel v] to [8]\n                                end\n                                set [yvel v] to [7]\n                            else\n                                set [xvel v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <color (#003fff) is touching (#000000)?> then\n        change y by (-7)\n    end\n    change y by (Yvel)\n    if <touching color (#000000)?> then\n        change y by ((Yvel) * (-1))\n        set [yvel v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#000000)?> then\n        if <key (up arrow v) pressed?> then\n            set [yvel v] to [7]\n        end\n    end\n    if <touching color (#7f00ff)?> then\n        set [yvel v] to [10]\n    end\n    if <touching color (#00ff55)?> then\n        set [xvel v] to [30]\n        set [yvel v] to [2]\n    end\n    change y by (1)\n    set [xvel v] to ((Xvel) * (0.9))\n    if <(x position) > [345]> then\n        broadcast (next level v)\n        go to x: (-151) y: (-43)\n    end\nend\n\nwhen backdrop switches to [main menu2 v]\nhide\n\n