Platformer

Instructions: Original release date: August 2016\nUse w,a,s,d keys or arrow keys to move. Press r to restart the level. Good luck!!! PRESS THE SPACE KEY TO START. \nv1.1.8: made level 20 easier

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (backdrop11 v)\ngo to x: (-218) y: (-130)\nset size to (50) %\n\nwhen flag clicked\nforever\n    if <touching (_edge_ v)?> then\n        switch backdrop to (next backdrop v)\n        change [level v] by (1)\n        go to x: (-218) y: (-130)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-218) y: (-130)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(backdrop [name v]) = [backdrop11]> and <key (space v) pressed?>> then\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    wait (1) seconds\n    change [time v] by (1)\nend\n\nwhen backdrop switches to [backdrop1 v]\nshow\nshow variable [deaths v]\nshow variable [time v]\nshow variable [level v]\n\nwhen backdrop switches to [backdrop1 v]\nforever\n    change [y v] by (-0.5)\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x v] by (0.75)\n        switch costume to (ball-d v)\n        if <touching color (#ff9400)?> then\n            change [x v] by (2)\n        end\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by (-0.75)\n        switch costume to (ball-d2 v)\n        if <touching color (#ff9400)?> then\n            change [x v] by (-2)\n        end\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 (w v) pressed?> or <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 (w v) pressed?> or <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: (-218) y: (-130)\n        change [deaths v] by (1)\n        start sound [Hit_Hurt96 v]\n    end\n    if <touching color (#003fff)?> then\n        set [y v] to [15]\n    end\nend\n\nwhen flag clicked\nhide variable [deaths v]\nset [deaths v] to [0]\nset [time v] to [0]\nset [level v] to [1]\nhide variable [time v]\nhide variable [level v]\nswitch backdrop to (backdrop11 v)\nhide\n\nwhen flag clicked\nforever\n    play sound [Alan Walker - Spectre \[NCS Release\].mp3 v] until done\nend\n\n@Sprite2\n\nwhen backdrop switches to [backdrop1 v]\nhide\n\nwhen flag clicked\nforever\n    repeat (15)\n        change size by (1)\n    end\n    repeat (15)\n        change size by (-1)\n    end\nend\n\nwhen flag clicked\nshow\ngo to x: (10) y: (-130)\nset size to (100) %\n\n@Sprite3\n\nwhen flag clicked\nhide\ngo to x: (-195) y: (0)\n\nwhen backdrop switches to [backdrop17 v]\nshow\n\nwhen backdrop switches to [backdrop17 v]\nforever\n    glide (3) secs to x: (190) y: (0)\n    glide (3) secs to x: (-195) y: (0)\nend\n\nwhen backdrop switches to [backdrop18 v]\nhide\n\n@Sprite4\n\nwhen flag clicked\ngo to x: (190) y: (-125)\nhide\n\nwhen backdrop switches to [backdrop18 v]\nforever\n    glide (2) secs to x: (-195) y: (-125)\n    glide (2) secs to x: (190) y: (-125)\nend\n\nwhen backdrop switches to [backdrop19 v]\nhide\n\nwhen backdrop switches to [backdrop18 v]\nshow\n\n