Pixel Parkour

Instructions: Welcome To Pixel Parkour! \nInstructions: Wall Jump: Touch A Wall And Jump While Pressing The Button In the Direction Of The Wall.\n Left Key Moves Left.   Right Key Moves Right.  And Up Arrow Jumps\nThe Second Game Is Out!: https://scratch.mit.edu/projects/211614275\nThe Third Game is Out!: https://scratch.mit.edu/projects/211871807/\nThe Forth Game Is Out!: https://scratch.mit.edu/projects/214333558

@Stage\n\nwhen I receive [game complete! v]\nswitch backdrop to (backdrop11 v)\n\n@Player\n\nwhen flag clicked\nforever\n    if <(x position) = [253]> then\n        broadcast (level 2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 2 v]\nswitch backdrop to (backdrop2 v)\ngo to x: (-186) y: (-146)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> then\n        broadcast (level 3 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 3 v]\nswitch backdrop to (backdrop3 v)\ngo to x: (-186) y: (-146)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> then\n        broadcast (level 4 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 4 v]\ngo to x: (-186) y: (-146)\nswitch backdrop to (backdrop4 v)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> 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: (-186) y: (-146)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> then\n        broadcast (level 6 v)\n        stop [this script v]\n    end\n    if <touching color (#00ff55)?> then\n        go to x: (120) y: (-141)\n    end\nend\n\nwhen I receive [level 6 v]\nswitch backdrop to (backdrop6 v)\ngo to x: (-186) y: (-146)\nforever\n    if <(x position) = [253]> then\n        broadcast (level 7 v)\n        stop [this script v]\n    end\n    if <touching color (#00ff55)?> then\n        go to x: (-197) y: (95)\n    end\nend\n\nwhen I receive [level 7 v]\nswitch backdrop to (backdrop7 v)\ngo to x: (-186) y: (-146)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> then\n        broadcast (level 8 v)\n        stop [this script v]\n    end\n    if <touching color (#00ff55)?> then\n        go to x: (120) y: (-141)\n    end\nend\n\nwhen I receive [level 8 v]\nswitch backdrop to (backdrop8 v)\ngo to x: (-186) y: (-153)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [253]> then\n        broadcast (level 9 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [level 9 v]\nswitch backdrop to (backdrop9 v)\ngo to x: (-186) y: (-146)\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-186) y: (-146)\n    end\n    if <(x position) = [-228]> then\n        broadcast (level 10 v)\n        stop [this script v]\n    end\n    if <touching color (#00ff55)?> then\n        go to x: (120) y: (-141)\n    end\nend\n\nwhen I receive [level 10 v]\nswitch backdrop to (backdrop10 v)\nforever\n    if <(x position) = [-228]> then\n        broadcast (game complete! v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [game complete! v]\nhide\n\nwhen flag clicked\nswitch backdrop to (party v)\nshow\ngo to x: (-186) y: (91)\nswitch backdrop to (backdrop1 v)\nset [yv v] to [0]\nset [xv v] to [0]\nswitch costume to (costume1 v)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n        switch costume to (costume1 v)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\n        switch costume to (costume2 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\nhide\nwait (4) seconds\n\nchange x by ((Xv) * (-1))\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