Dubstep Platformer

Instructions:  - Move with arrow keys\n - Complete all levels\n - Enjoy\n\nHi guys. Dupstep Platformer 2 is here so go check it out: https://scratch.mit.edu/projects/33528102/

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nforever\n    play sound [ToolBox2 v] until done\nend\n\nwhen I receive [message1 v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.1) seconds\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (35) y: (-186)\nchange y by (-5)\nset [ghost v] effect to (100)\nshow\n\nwhen I receive [message1 v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.1) seconds\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n@Player1\n\nwhen flag clicked\npoint in direction (90)\nshow\ngo to x: (-210) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    change [y v] by (-0.5)\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <key (d 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?> or <<key (w v) pressed?> or <key (space 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?> or <<key (w v) pressed?> or <key (space v) pressed?>>>> then\n        set [y v] to [10]\n    end\n    change y by (0.5)\n    if <touching (sprite1 v)?> then\n        broadcast (message1 v)\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-210) y: (0)\n        wait (0.1) seconds\n        repeat (10)\n            change [brightness v] effect by (-10)\n        end\n    end\n    if <touching (checkpoint v)?> then\n        broadcast (message1 v)\n        repeat (10)\n            change [brightness v] effect by (10)\n        end\n        set [x v] to [0]\n        set [y v] to [0]\n        switch backdrop to (next backdrop v)\n        go to x: (-210) y: (0)\n        wait (0.1) seconds\n        repeat (10)\n            change [brightness v] effect by (-10)\n        end\n    end\nend\n\n@Checkpoint\n\nwhen flag clicked\nforever\n    go to x: (221) y: (0)\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [message1 v]\nrepeat (10)\n    change [brightness v] effect by (10)\nend\nwait (0.1) seconds\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\n