Fun Platformer! 1

Instructions: --------------This is my first platformer!-----------------------\nUse arrow keys to move, dont touch the spikes!\nS: skip a level if your stuck on it! :) \nC: change color.\nE: To stop all.\nJust a warning this game can glitch.\nDont touch lava!!! :) \nLove, fav, and follow, Please!\n\n\n

@Stage\n\nwhen flag clicked\nwait (2) seconds\nrepeat (5)\n    repeat (10)\n        change [whirl v] effect by (25)\n    end\n    repeat (10)\n        change [whirl v] effect by (-25)\n    end\n    repeat (10)\n        change [whirl v] effect by (100)\n    end\n    repeat (10)\n        change [whirl v] effect by (-100)\n    end\nend\n\nwhen backdrop switches to [intro v]\nset [color v] effect to (0)\n\nwhen flag clicked\nwait (2) seconds\nplay sound [Dubstep v] until done\nswitch backdrop to (play v) and wait\n\nwhen backdrop switches to [play v]\nforever\n    play sound [Masked Heroes - Vexento v] until done\nend\n\n@player\n\nwhen backdrop switches to [play v]\nswitch costume to (costume1 v)\nset size to (30) %\nshow\npoint in direction (90)\ngo to x: (-188) y: (13)\nset [yv v] to [0]\nset [xv v] to [0]\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (2 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (1 v)\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\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 x by ((Xv) * (-1))\n                                change y by (-5)\n                                if <key (up arrow v) pressed?> then\n                                    if <(Xv) > [0]> then\n                                        start sound [Jump v]\n                                        set [xv v] to [-15]\n                                    else\n                                        set [xv v] to [15]\n                                    end\n                                    set [yv v] to [15]\n                                else\n                                    set [yv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yv v] by (-1)\n    change y by ((Yv) * (1))\n    if <touching color (#000000)?> then\n        change y by ((Yv) * (-1))\n        set [yv 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            start sound [Jump2 v]\n            change [yv v] by (15)\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-177) y: (-149)\n    end\nend\n\nchange [yv v] by (-15)\n\nwhen flag clicked\nforever\n    if <touching color (#a7a7a7)?> then\nend\n\nwhen [c v] key pressed\nchange [color v] effect by (25)\n\nwhen [e v] key pressed\nstop [all v]\n\nwhen backdrop switches to [play v]\nforever\n    if <touching (ball v)?> then\n        go to x: (-177) y: (-149)\n        broadcast (Next level v) and wait\n    end\nend\n\nwhen [r v] key pressed\ngo to x: (-188) y: (13)\n\nwhen flag clicked\nswitch backdrop to (intro v)\n\n@Sprite1\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [play v]\nshow\n\nwhen I receive [next level v]\nnext costume\n\nwhen backdrop switches to [play v]\nswitch costume to (costume1 v)\n\nwhen [s v] key pressed\nnext costume\n\n@Thumbnail\n\nwhen flag clicked\nshow\nwait (1) seconds\nhide\n\n@ball\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [play v]\nshow\n\n@Sprite2\n\nwhen flag clicked\nhide\nwait (2) seconds\nshow\n\nwhen flag clicked\nwait (2) seconds\nrepeat (10)\n    repeat (5)\n    repeat (5)\n    end\n    repeat (5)\n    repeat (5)\nend\n\nwhen backdrop switches to [play v]\nhide\n\n