Primary - A platformer

Instructions: ==Primary==\n-By CheekyBubba5-\nThank you to all who say this game is very good!!\n400 Views :0000\nSECONDARY IS OUT! - https://scratch.mit.edu/projects/715140477 \n--Primary is a challenging, super fun platformer with a ton of levels to explore\nShare your time in the comments!\nMake sure to like and favorite for the part 2!\nWOW this got so many views:)\n\n--Controls--\nThere are now controls in the menu!\nPress SPACE to switch the color of your guy. This is super important to know\nPress "r" to retry a level if you get literally stuck\nPress "t" to start the timer\nOnce you started the time, press "t" to end the timer\n--Updates--\nVersion 1.3 is out right now\nThere may or may not be any updates but there will be a new "Primary 2" Which is not the actual name.\nNEW UPDATE!!\n-Better menu\n-Added timer\n-New thumbnail\n\nHOW TO PLAY\nAs you go through, you have to match the color of the level to your player color. This means that you can only touch the color that you are. If you touch a color that is not the color you are, you will die.\nThe purple is the end point where you need to get to.\n\nHOPE YOU ENJOY!!

@Stage\n\nwhen flag clicked\n\nwhen I receive [start v]\nset [pitch v] effect to (0)\nforever\n    play sound [Mission Impossible v] until done\nend\n\nwhen flag clicked\nset volume to (100) %\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (-226) y: (148)\n\nwhen flag clicked\nhide\n\nwhen I receive [lose v]\ngo to x: (-227) y: (-147)\n\nwhen [space v] key pressed\nnext costume\n\nwhen I receive [start v]\nwait (0.1) seconds\nset [level v] to [1]\nswitch costume to (red v)\ngo to x: (-226) y: (148)\nforever\n    change y by (SpeedY)\n    if <touching color (#000000)?> then\n        change y by ((SpeedY) * (-1))\n        set [speedy v] to [0]\n        if <(Lock) = [0]> then\n            if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n                change [speedy v] by (10.3)\n                set [lock v] to [1]\n            end\n        end\n    else\n        change [speedy v] by (-1)\n        set [lock v] to [0]\n    end\n    if <<touching color (#ff0000)?> and <<(costume [name v]) = [blue]> or <(costume [name v]) = [yellow]>>> then\n        broadcast (lose v)\n    end\n    if <<touching color (#0057ff)?> and <<(costume [name v]) = [red]> or <(costume [name v]) = [yellow]>>> then\n        broadcast (lose v)\n    end\n    if <<touching color (#feff00)?> and <<(costume [name v]) = [red]> or <(costume [name v]) = [blue]>>> then\n        broadcast (lose v)\n    end\n    if <<touching color (#ff9400)?> and <(costume [name v]) = [blue]>> then\n        broadcast (lose v)\n    end\n    if <<touching color (#8c00ff)?> and <(costume [name v]) = [yellow]>> then\n        broadcast (lose v)\n    end\n    if <<touching color (#41ff00)?> and <(costume [name v]) = [red]>> then\n        broadcast (lose v)\n    end\n    if <touching color (#905400)?> then\n        broadcast (lose v)\n    end\n    if <touching color (#c700ff)?> then\n        broadcast (next v)\n        change [level v] by (1)\n    end\n    if <key (r v) pressed?> then\n        broadcast (lose v)\n    end\nend\n\nwhen I receive [start v]\nwait (0.1) seconds\nforever\n    if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n        change [speedx v] by (1.4)\n    end\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [speedx v] by (-1.4)\n    end\n    change x by (SpeedX)\n    if <touching color (#000000)?> then\n        change x by ((SpeedX) * (-1))\n        set [speedx v] to [0]\n    else\n        set [speedx v] to ((SpeedX) * (0.8))\n    end\nend\n\nwhen I receive [next v]\ngo to x: (-227) y: (-147)\n\nwhen I receive [start v]\nshow\n\nbroadcast (Start v)\n\nwhen flag clicked\nforever\n    if <mouse down?> then\n        wait until <not <mouse down?>>\n        next costume\n    end\nend\n\nwhen I receive [start v]\nforever\n    if <key (t v) pressed?> then\n        wait until <not <key (t v) pressed?>>\n        set [time v] to [0]\n        reset timer\n        show variable [time v]\n        repeat until <key (t v) pressed?>\n            set [time v] to (round (timer))\n        end\n        wait until <not <key (t v) pressed?>>\n        set [time v] to (timer)\n        wait (2) seconds\n        hide variable [time v]\n    end\nend\n\nshow variable [time v]\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nswitch costume to (costume1 v)\nset [level v] to [1]\n\nwhen I receive [next v]\nnext costume\n\nwhen I receive [start v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nhide\n\ngo to x: (0) y: (0)\nshow\ngo to [front v] layer\n\nswitch costume to (primary v)\n\n@start\n\nwhen flag clicked\nhide variable [time v]\nset volume to (100) %\nstart sound [Magical Adventure - Game Music v]\ngo to x: (0) y: (0)\nforever\n    set size to ((([sin v] of ((timer) * (300)) ) * (1)) + (100)) %\nend\n\nhide\n\nwhen flag clicked\nshow\nforever\n    set x to ((((x position) * (2)) + (mouse x)) / (50))\n    set y to ((((y position) * (2)) + (mouse y)) / (50))\nend\n\nwhen I receive [start v]\nrepeat (10)\n    change volume by (-10)\nend\n\nwhen I receive [start v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nforever\n\n@Start button\n\nwhen flag clicked\ngo to x: (0) y: (-80)\nforever\n    set size to ((([sin v] of ((timer) * (300)) ) * (3)) + (100)) %\nend\n\nforever\n\nforever\n    set size to ((([sin v] of ((timer) * (300)) ) * (3)) + (100)) %\nend\n\nwhen flag clicked\nset [started? v] to [0]\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (big v)\n    else\n        switch costume to (small v)\n    end\nend\n\nwhen this sprite clicked\nset [started? v] to [1]\nstart sound [Wood Tap v]\nbroadcast (Start v)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\n@Sprite3\n\nwhen flag clicked\nhide\nrepeat until <(Started?) = [1]>\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\n\nwhen I start as a clone\nshow\ngo to (random position v)\nwait (0.1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@time\n\nwhen flag clicked\ngo to x: (-210) y: (169)\nhide\n\nshow\n\nwhen I receive [start v]\nforever\n    if <key (t v) pressed?> then\n        wait until <not <key (t v) pressed?>>\n        show\n        wait until <key (t v) pressed?>\n        wait until <not <key (t v) pressed?>>\n        wait (2) seconds\n        hide\n    end\nend\n\n@This level was token out\n\nwhen flag clicked\nhide\n\n