Gray lll - A Platformer

Instructions: Arrow Keys to move.\n\nITS HERE!\nPART 1 - https://scratch.mit.edu/projects/396127671\nPART 2 - https://scratch.mit.edu/projects/396341103/\n\nGo to https://scratch.mit.edu/studios/26665891/projects/ to see all my projects!!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\nforever\n    play sound [Summer - Bensound Royalty Free Music - No Copyright Music v] until done\nend\n\n@Player\n\nwhen flag clicked\n\nhide\n\nwhen flag clicked\nhide\nshow variable [deaths v]\nset [deaths v] to [0]\nforever\n    if <touching color (#b15252)?> then\n        go to x: (-221) y: (-90)\n        change [deaths v] by (1)\n    end\n    if <touching (sprite1 v)?> then\n        go to x: (-221) y: (-90)\n        change [level v] by (1)\n    end\nend\n\nwhen I receive [go v]\ngo to x: (-221) y: (-90)\ngo to [front v] layer\nshow\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 (#2873cf)?> then\n        change y by (1)\n        if <touching color (#2873cf)?> then\n            change y by (1)\n            if <touching color (#2873cf)?> then\n                change y by (1)\n                if <touching color (#2873cf)?> then\n                    change y by (1)\n                    if <touching color (#2873cf)?> then\n                        change y by (1)\n                        if <touching color (#2873cf)?> 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 [yv v] to [-10]\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)\n    if <touching color (#2873cf)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    change y by (-1)\n    if <touching color (#2873cf)?> then\n        if <key (up arrow v) pressed?> then\n            set [yv v] to [13]\n        end\n    end\n    change y by (1)\n    hide variable [yv v]\n    hide variable [xv v]\nend\n\n@Level\n\nwhen flag clicked\nhide\nwait (6) seconds\nshow\nset [level v] to [1]\nforever\n    switch costume to (level)\n    go to x: (0) y: (0)\nend\n\n@Sprite1\n\nwhen flag clicked\ngo to x: (0) y: (0)\nshow\n\n@thumbnail2\n\nwhen flag clicked\nshow\nwait (1) seconds\nset [brightness v] effect to (-100)\nset [ghost v] effect to (0)\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nwait (1) seconds\nrepeat (50)\n    change [brightness v] effect by (2)\nend\nbroadcast (go v)\n\n