2 player platformer

Instructions: This is my 2 player Platformer, first one to reach the key wins\nplayer 1- arrow keys\nplayer 2 - WASD\nyellow is your goal\nbeware there is water to make u float\nENJOY:)\nFavourite and Love \nshare this on your studio

@Stage\n\nwhen flag clicked\nswitch backdrop to (backdrop3 v)\nshow\n\nrepeat (1)\n\nforever\n\n@Sprite1\n\nwhen flag clicked\nforever\n    if <touching color (#00cccc)?> 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\nend\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        broadcast (player 1 wins v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        go to x: (-240) y: (20)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#21ff12)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nif <touching color (#02fded)?> then\n    if <(Level) = [12]> then\nend\n\nwhen flag clicked\nset [level v] to [0]\nhide\nswitch costume to (costume3 v)\nforever\n    if <key (right arrow v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv v] by (-1)\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)\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)\n    if <touching color (#ffff00)?> then\n        go to x: (-240) y: (20)\n        broadcast (yellow confirm v)\n        change [level v] by (1)\n    end\nend\n\nwhen I receive [play v]\nshow\ngo to x: (-240) y: (20)\n\nwhen flag clicked\nforever\n    if <touching color (#ff00bf)?> then\n        switch costume to (costume2 v)\n        wait (5) seconds\n        switch costume to (costume3 v)\n    end\nend\n\n@Sprite2\n\nwhen flag clicked\nforever\n    if <touching color (#21ff12)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff00bf)?> then\n        switch costume to (costume2 v)\n        wait (5) seconds\n        switch costume to (costume3 v)\n    end\nend\n\nwhen flag clicked\ngo to x: (-240) y: (-160)\n\nwhen flag clicked\nforever\n    if <touching color (#00ffff)?> then\n        go to x: (-240) y: (-160)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#ff0000)?> then\n        broadcast (player 2 wins v)\n        stop [all v]\n    end\nend\n\nwhen flag clicked\nbroadcast (player 2 go v)\n\nwhen flag clicked\nforever\n    if <touching color (#00cccc)?> then\n        if <key (w v) pressed?> then\n            set [yv v] to [5]\n        else\n            set [yv v] to [-1]\n        end\n    end\nend\n\nwhen I receive [play v]\nshow\ngo to x: (-240) y: (-160)\n\nwhen flag clicked\nhide\nset [level v] to [0]\nswitch costume to (costume3 v)\nforever\n    if <key (d v) pressed?> then\n        change [xv v] by (1)\n    end\n    if <key (a v) pressed?> then\n        change [xv v] by (-1)\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 (w 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)\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 (w v) pressed?> then\n            set [yv v] to [15]\n        end\n    end\n    change y by (1)\n    if <touching color (#ffff00)?> then\n        go to x: (-240) y: (-160)\n        broadcast (yellow cnfirm 2 v)\n        change [level v] by (1)\n    end\nend\n\n@Sprite3\n\nwhen I receive [yellow confirm v]\nnext costume\n\nwhen I receive [play v]\nshow\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-20)\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume4 v)\n\n@Sprite4\n\nwhen I receive [yellow cnfirm 2 v]\nnext costume\n\nwhen I receive [play v]\nshow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume4 v)\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-200)\nend\n\n@Sprite5\n\nwhen I receive [player 1 wins v]\nshow\nswitch costume to (costume1 v)\nshow\nstop [all v]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    go to x: (0) y: (0)\nend\n\nwhen I receive [player 2 wins v]\nshow\nswitch costume to (costume2 v)\nshow\nstop [all v]\n\n@Sprite7\n\nwhen flag clicked\nshow\nforever\n    go to x: (-20) y: (-98)\nend\n\nwhen I receive [play v]\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        hide\n        broadcast (PLAY v)\n        switch backdrop to (backdrop1 v)\n    end\nend\n\nwait (0.5) seconds\n\nwait (1) seconds\nswitch backdrop to (backdrop5 v)\nwait (1) seconds\nswitch backdrop to (backdrop6 v)\nwait (1) seconds\nswitch backdrop to (backdrop7 v)\nwait (0.5) seconds\nswitch backdrop to (backdrop4 v)\n\n@Sprite6\n\n