Pixel Parkour 2

Instructions: Welcome To Pixel Parkour 2! \nInstructions: Wall Jump: Touch A Wall And Jump While Pressing The Button In the Direction Of The Wall.\nLeft Key Moves Left.   Right Key Moves Right.  And Up Arrow Jumps\n

@Stage\n\n@Sprite1\n\nwhen flag clicked\nswitch backdrop to (party v)\nhide\nwait (4) seconds\nswitch backdrop to (backdrop1 v)\ngo to x: (-197) y: (-131)\nshow\nset [xv v] to [0]\nset [yv v] to [0]\nswitch costume to (r v)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (r v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (l 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 x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <key (up arrow v) pressed?> then\n                                if <(Xv) < [0]> then\n                                    set [xv v] to [-5]\n                                else\n                                    set [xv v] to [5]\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 [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            set [yv v] to [15]\n        end\n    end\n    change y by (1)\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-197) y: (96)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 3 v]\ngo to x: (-218) y: (-134)\nswitch backdrop to (backdrop3 v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-218) y: (-134)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 4 v]\ngo to x: (-218) y: (-134)\nswitch backdrop to (backdrop4 v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-218) y: (-134)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 5 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 5 v]\nswitch backdrop to (backdrop5 v)\ngo to x: (-206) y: (-186)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-206) y: (-186)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 6 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 6 v]\nswitch backdrop to (backdrop6 v)\ngo to x: (-219) y: (-142)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-219) y: (-142)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 7 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 8 v]\nswitch backdrop to (backdrop8 v)\ngo to x: (-206) y: (-156)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-206) y: (-156)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 9 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 7 v]\nswitch backdrop to (backdrop7 v)\ngo to x: (-210) y: (-143)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-210) y: (-143)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 8 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 9 v]\nswitch backdrop to (backdrop9 v)\ngo to x: (-223) y: (-120)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-223) y: (-120)\n    end\n    if <(x position) = [235]> then\n        broadcast (game complete! v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game complete! v]\nswitch backdrop to (backdrop10 v)\nhide\n\nwhen I receive [level 2 v]\ngo to x: (-197) y: (-150)\nswitch backdrop to (backdrop2 v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-197) y: (-150)\n    end\n    if <(x position) = [235]> then\n        broadcast (level 3 v)\n        stop [this script v]\n    end\nend\n\n@ThumbNail\n\nwhen flag clicked\nforever\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    go to x: (0) y: (0)\nend\n\n