A Platformer

Instructions: my first platformer!!!! all levels possible. if u get stuck in a wall push the arrow keys a couple of times.\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~      r to restart rest of instructions in game  \n                                   shared 10/10/2015\n                   I really appreciate likes and/or favorites  \n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

@Stage\n\nwhen flag clicked\nforever\n    if <color (#003fff) is touching (#ffff00)?> then\n        next backdrop\n    end\nend\n\nwhen I receive [start v]\n\nswitch backdrop to (backdrop1 v)\nbroadcast (level change v)\n\nwhen flag clicked\n\nwhen I receive [click v]\nwait (5) seconds\nswitch backdrop to (backdrop1 v)\nforever\n    play sound [Alan Walker - Spectre \[NCS Release\].mp3 v] until done\nend\n\n@Sprite1\n\nwhen flag clicked\n\nwhen flag clicked\nset pen size to (5)\nerase all\npen up\nset pen color to (#666666)\nswitch backdrop to (backdrop1 v)\nset [ghost v] effect to (0)\nset [level v] to [1]\nset [deaths v] to [0]\nset [clircles: v] to [0]\nset [volume: v] to [100]\nset [game v] to [1]\nset [xv v] to [0]\nset [yv v] to [0]\nhide variable [sho v]\ngo to x: (-223) y: (-166)\npoint in direction (90)\nwait (2) seconds\nshow variable [sho v]\nshow\nforever\n    if <(game) = [1]> then\n        change [yv v] by (-0.5)\n        if <key (right arrow v) pressed?> then\n            change [xv v] by (0.7)\n            point in direction (90)\n        end\n        if <key (left arrow v) pressed?> then\n            change [xv v] by (-0.7)\n            point in direction (90)\n        end\n        set [xv v] to ((Xv) * (0.9))\n        change x by (Xv)\n        if <touching color (#000008)?> then\n            change y by (1)\n            if <touching color (#000008)?> then\n                change y by (1)\n                if <touching color (#000008)?> then\n                    change y by (1)\n                    if <touching color (#000008)?> then\n                        change y by (1)\n                        if <touching color (#000008)?> then\n                            change y by (1)\n                            if <touching color (#000008)?> then\n                                change x by ((Xv) * (-1))\n                                change x by (-1)\n                                change y by (-5)\n                                change x by (1)\n                                if <key (up arrow v) pressed?> then\n                                    start sound [jump v]\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-8]\n                                    else\n                                        set [xv v] to [8]\n                                    end\n                                    set [yv v] to [10]\n                                else\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (Yv)\n        if <touching color (#000008)?> then\n            change y by ((Yv) * (-1))\n            set [yv v] to [0]\n        end\n        change y by (-1)\n        if <touching color (#000008)?> then\n            if <key (up arrow v) pressed?> then\n                start sound [jump v]\n                set [yv v] to [10]\n            end\n        end\n        change y by (1)\n        if <touching color (#ffff00)?> then\n            start sound [next lvl v]\n            set [yv v] to [0]\n            go to x: (-223) y: (-167)\n            switch backdrop to (next backdrop v)\n            change [level v] by (1)\n        end\n        if <touching color (#003fff)?> then\n            start sound [jump v]\n            set [yv v] to [15]\n        end\n        if <touching color (#00ffff)?> then\n            if <key (up arrow v) pressed?> then\n                set [yv v] to [5]\n            else\n                set [yv v] to [-1]\n            end\n        end\n        if <touching color (#ff0000)?> then\n            start sound [bxsb v]\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            set [yv v] to [0]\n            set [xv v] to [0]\n            go to x: (-223) y: (-167)\n            set [ghost v] effect to (0)\n            change [deaths v] by (1)\n        end\n        if <(level) = [101]> then\n            set [sho v] to [The end!]\n        end\n        if <(level) < [101]> then\n            set [sho v] to (join [Level ] (join (level) [/100]))\n        end\n        if <(backdrop [name v]) = [backdrop101]> then\n            set [sho v] to [¯\_\(ツ\)_/¯]\n        end\n        if <(backdrop [name v]) = [backdrop103]> then\n            set [sho v] to [♪~ ᕕ\(ᐛ\)ᕗ]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen I receive [level change v]\nshow\ngo to x: (-216) y: (-153)\n\nwhen flag clicked\nforever\n    if <touching color (#7f7f7f)?> then\n        switch costume to (costume3 v)\n    else\n        switch costume to (costume4 v)\n    end\nend\n\nwhen backdrop switches to [backdrop20 v]\nswitch costume to (costume3 v)\n\nwhen backdrop switches to [backdrop1 v]\nshow\n\nwhen flag clicked\nforever\n    hide\nend\n\nwhen backdrop switches to [start screen2 v]\nhide\n\nwhen flag clicked\nforever\n    if <key (r v) pressed?> then\n        go to x: (-219) y: (-148)\n    end\nend\n\nwhen I receive [sprite 1 show v]\nforever\n    show\nend\n\nwhen I receive [start v]\ngo to x: (-225) y: (-162)\nforever\n    show\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        wait (1) seconds\n        go to x: (-216) y: (-153)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume4 v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume4 v)\n    end\nend\n\nwhen backdrop switches to [backdrop29 v]\nswitch costume to (costume4 v)\n\nwhen flag clicked\nwait (7) seconds\nbroadcast (start v)\ngo to x: (-225) y: (-162)\n\nforever\n    if <touching color (#666666)?> then\n        switch costume to (costume4 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\n\nwhen flag clicked\nhide\n\nwhen I receive [click v]\nshow\npoint in direction (90)\nswitch costume to (costume1 v)\nshow\nset size to (100) %\ngo to x: (0) y: (0)\nforever\n    go to x: (([sin v] of ((timer) * (100)) ) * (15)) y: (([sin v] of ((timer) * (100)) ) * (15))\n    set size to ((([cos v] of ((timer) * (100)) ) * (25)) + (100)) %\n    point in direction ((([cos v] of ((timer) * (100)) ) * (10)) + (90))\nend\n\nwhen I receive [click v]\nwait (5) seconds\nbroadcast (sprite 1 show v)\nforever\n    hide\nend\n\nwhen I receive [level change v]\n\n@Sprite3\n\nwhen this sprite clicked\nswitch backdrop to (start screen v)\nbroadcast (click v)\n\nwhen flag clicked\nshow\ngo to x: (0) y: (0)\ngo to [front v] layer\n\nwhen I receive [click v]\nforever\n    hide\nend\n\n