Colorless - A Platformer

Instructions: *GASP* 3000+ VIEWS?????!!!!!\nHOW IS THAT POSSIBLE!!????? AWESOME!!!!!!!!!!!!!!\n\nPlay Purple :) https://scratch.mit.edu/projects/514366908/

@Stage\n\nwhen flag clicked\nswitch backdrop to (colorless v)\nforever\n    broadcast (Tick v)\nend\n\nwhen I receive [backdrop1 v]\nswitch backdrop to (colored1 v)\n\nwhen I receive [backdrop2 v]\nswitch backdrop to (colored2 v)\n\nwhen I receive [you won v]\nstop [other scripts in sprite v]\n\n@LESS LAG\n\n@Thumbnail\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@Player\n\nwhen I receive [tick v]\nif <not <key (any v) pressed?>> then\n    switch costume to (none v)\nelse\n    if <<key (up arrow v) pressed?> and <not <<key (right arrow v) pressed?> or <key (left arrow v) pressed?>>>> then\n        switch costume to (up v)\n    end\n    if <<key (right arrow v) pressed?> and <not <<key (up arrow v) pressed?> or <key (left arrow v) pressed?>>>> then\n        switch costume to (right v)\n    end\n    if <<key (left arrow v) pressed?> and <not <<key (right arrow v) pressed?> or <key (up arrow v) pressed?>>>> then\n        switch costume to (left v)\n    end\n    if <<key (right arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (right & up v)\n    end\n    if <<key (left arrow v) pressed?> and <key (up arrow v) pressed?>> then\n        switch costume to (left & up v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-205) y: (-30)\nshow\nset [xv v] to [0]\nset [yv v] to [0]\n\nwhen I receive [tick v]\ngo to [front v] layer\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    change [xv v] by (-1.5)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    change [xv v] by (1.5)\nend\nchange x by (Xv)\nset [xv v] to ((Xv) * (0.85))\nif <touching (levels v)?> then\n    change y by (1)\n    if <touching (levels v)?> then\n        change y by (1)\n        if <touching (levels v)?> then\n            change y by (1)\n            if <touching (levels v)?> then\n                change y by (1)\n                if <touching (levels v)?> then\n                    change y by (1)\n                    if <touching (levels v)?> then\n                        change x by ((Xv) * (-1.6))\n                        change y by (-5)\n                        set [xv v] to [0]\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (Yv)\nif <touching (levels v)?> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <touching (levels v)?> then\n        set [yv v] to [15]\n    end\nend\nchange y by (1)\nif <(x position) > [245]> then\n    broadcast (next level v)\n    go to x: (-205) y: (-30)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\nif <<<touching (enemies1 v)?> or <touching (enemies2 v)?>> or <(y position) < [-180]>> then\n    go to x: (-205) y: (-30)\n    change [deaths v] by (1)\n    set [xv v] to [0]\n    set [yv v] to [0]\nend\n\nwhen I receive [you won v]\nhide\n\nwhen [r v] key pressed\ngo to x: (-205) y: (-30)\n\nwhen [s v] key pressed\nbroadcast (next level v)\ngo to x: (-205) y: (-30)\n\n@Levels\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nwhen I receive [next level v]\nnext costume\nif <(costume [number v]) = [5]> then\n    broadcast (enemy1 v)\nelse\n    if <(costume [number v]) = [6]> then\n        broadcast (backdrop1 v)\n        broadcast (stop v)\n    else\n        if <(costume [number v]) = [7]> then\n            broadcast (enemy2 v)\n        else\n            if <(costume [number v]) = [8]> then\n                broadcast (backdrop2 v)\n                broadcast (stop v)\n            else\n                if <(costume [number v]) = [11]> then\n                    broadcast (enemy3 v)\n                else\n                    if <(costume [number v]) = [12]> then\n                        broadcast (enemy4 v)\n                    else\n                        if <(costume [number v]) = [13]> then\n                            broadcast (enemy5 v)\n                        else\n                            if <(costume [number v]) = [14]> then\n                                broadcast (you won v)\n                                broadcast (stop v)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\n@Words\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Enemies1\n\nwhen flag clicked\nshow\nswitch costume to (level 1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [next level v]\nnext costume\n\n@Enemies2\n\nwhen flag clicked\nhide\n\nwhen I receive [enemy1 v]\nshow\ngo to x: (205) y: (-101)\nset size to (100) %\nset [speed v] to [3]\nforever\n    switch costume to (costume2 v)\n    glide (speed) secs to x: (-100) y: (-101)\n    switch costume to (costume1 v)\n    glide (speed) secs to x: (205) y: (-101)\nend\n\nwhen I receive [stop v]\nhide\n\nwhen I receive [enemy2 v]\nstop [other scripts in sprite v]\nshow\ngo to x: (205) y: (-101)\nset size to (100) %\nset [speed v] to [2]\nforever\n    switch costume to (costume2 v)\n    glide (speed) secs to x: (-175) y: (-101)\n    switch costume to (costume1 v)\n    glide (speed) secs to x: (205) y: (-101)\nend\n\nwhen I receive [enemy3 v]\nshow\nstop [other scripts in sprite v]\nset [speed v] to [3]\nset size to (300) %\ngo to x: (190) y: (-51)\nforever\n    switch costume to (costume2 v)\n    glide (speed) secs to x: (-100) y: (-51)\n    switch costume to (costume1 v)\n    glide (speed) secs to x: (190) y: (-51)\nend\n\nwhen I receive [enemy4 v]\nshow\nset [speed v] to [2.25]\n\nwhen I receive [enemy5 v]\nshow\nset [speed v] to [1.5]\n\n@you won\n\nwhen I receive [you won v]\nshow\ngo to [front v] layer\nstop [other scripts in sprite v]\nshow variable [deaths v]\nshow variable [time v]\n\nwhen flag clicked\nhide\nhide variable [deaths v]\nhide variable [time v]\nset [deaths v] to [0]\nset [time v] to [0]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\n@Sprite1\n\nwhen this sprite clicked\nset size to (90) %\nwait (0.08) seconds\nnext costume\nwait (0.08) seconds\nset size to (100) %\nif <(costume [number v]) = [1]> then\n    set volume to (80) %\nelse\n    if <(costume [number v]) = [2]> then\n        set volume to (0) %\n    end\nend\n\nwhen flag clicked\ngo to x: (215) y: (155)\nshow\nswitch costume to (costume1 v)\nset volume to (80) %\nforever\n    play sound [memories v] until done\n    wait (2) seconds\nend\n\n