Duos : A Platformer - v2.4

Instructions: Arrows to move for blue. WAD to move for red. Get to the green portal to win. Propose this to be featured here https://scratch.mit.edu/studios/4228481/projects/\nPRESS FLAG AGIAN FOR NEW MAP!!!!\n\n--> Blue can walljump but red can jump higher than blue.\n\npleez pleez PLEEZ can we get this on trending?\n\nI know it's ez. If we hit 50 likes or favs I'll make a part 2 that's hard. The part 2 will be on my second account; @voicedosprey250_TEST , but I'll put the link here.\n\nWell! More than 25 likes! Thanks so much guys! Part 2 coming soon! Remix to add your own levels! \n\nADVERTISING IS OKAY

@Stage\n\n@P1\n\nwhen flag clicked\nshow\ngo to x: (-221) y: (-40)\nset [xv 2 v] to [0]\nset [yv 2 v] to [0]\nforever\n    if <<(y position) < [-175]> or <touching color (#ff0000)?>> then\n        go to x: (-184) y: (-40)\n        set [xv 2 v] to [0]\n        set [yv 2 v] to [0]\n    end\n    if <key (left arrow v) pressed?> then\n        change [xv 2 v] by (-1)\n    end\n    if <key (right arrow v) pressed?> then\n        change [xv 2 v] by (1)\n    end\n    set [xv 2 v] to ((xv 2) * (0.85))\n    change x by (xv 2)\n    if <touching color (#000008)?> then\n        change y by (-2)\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 y by (-5)\n                                change x by ((-1) * (xv 2))\n                                if <<key (up arrow v) pressed?> and <not <(xv 2) = [0]>>> then\n                                    set [mode v] to [walljump]\n                                    set [yv 2 v] to [8]\n                                    set [xv 2 v] to (((xv 2) / ([abs v] of (xv 2) )) * (-10))\n                                else\n                                    set [mode v] to [wallslide]\n                                    set [xv 2 v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#000008)?> then\n        if <(yv 2) = [-3]> then\n            if <<key (left arrow v) pressed?> or <key (right arrow v) pressed?>> then\n                set [mode v] to [run]\n            else\n                if <([abs v] of (xv 2) ) > [.1]> then\n                    set [mode v] to [skid]\n                else\n                    set [mode v] to [stand]\n                end\n            end\n        end\n        if <key (up arrow v) pressed?> then\n            set [mode v] to [jump]\n            set [yv 2 v] to [9]\n        end\n    end\n    if <<<<(mode) = [jump]> or <(mode) = [walljump]>> and <(yv 2) < [0]>> or <<<(mode) = [run]> or <(mode) = [skid]>> and <(yv 2) < [-3]>>> then\n        set [mode v] to [fall]\n    end\n    change y by (3)\n    if <(yv 2) > [-15]> then\n        change [yv 2 v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#000008)?>> then\n        change y by (-1)\n        if <not <touching color (#000008)?>> then\n            change y by (-1)\n            if <not <touching color (#000008)?>> then\n                change y by (-1)\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (yv 2)\n    if <touching color (#000008)?> then\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by ((-1) * (yv 2))\n            set [yv 2 v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen flag clicked\nbroadcast (pick random (1) to (10))\nif <(pick random (1) to (10)) = [1]> then\n    broadcast (costume 1 v)\nend\nif <(pick random (1) to (10)) = [2]> then\n    broadcast (costume 2 v)\nend\nif <(pick random (1) to (10)) = [3]> then\n    broadcast (costume 3 v)\nend\nif <(pick random (1) to (10)) = [4]> then\n    broadcast (costume 4 v)\nend\nif <(pick random (1) to (10)) = [5]> then\n    broadcast (costume 5 v)\nend\nif <(pick random (1) to (10)) = [6]> then\n    broadcast (costume 6 v)\nend\nif <(pick random (1) to (10)) = [7]> then\n    broadcast (costume 7 v)\nend\nif <(pick random (1) to (10)) = [8]> then\n    broadcast (costume 8 v)\nend\nif <(pick random (1) to (10)) = [9]> then\n    broadcast (costume 9 v)\nend\nif <(pick random (1) to (10)) = [10]> then\n    broadcast (costume 10 v)\nend\n\nwhen flag clicked\nset [blue score v] to [0]\nset [red score v] to [0]\nforever\n    if <touching color (#2aff00)?> then\n        broadcast (blue win v)\n        change [blue score v] by (1)\n    end\nend\n\n@P2\n\nwhen flag clicked\nshow\ngo to x: (-221) y: (-40)\nset [xv v] to [0]\nset [yv v] to [0]\nforever\n    if <<(y position) < [-175]> or <touching color (#ff0000)?>> then\n        go to x: (-184) y: (-40)\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <key (a v) pressed?> then\n        change [xv v] by (-1)\n    end\n    if <key (d v) pressed?> then\n        change [xv v] by (1)\n    end\n    set [xv v] to ((xv) * (0.85))\n    change x by (xv)\n    if <touching color (#000008)?> then\n        change y by (-2)\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 y by (-5)\n                                change x by ((-1) * (xv))\n                                if <<key (up arrow v) pressed?> and <not <(xv) = [0]>>> then\n                                    set [mode2 v] to [walljump]\n                                    set [yv v] to [6]\n                                    set [xv v] to (((xv) / ([abs v] of (xv) )) * (-10))\n                                else\n                                    set [mode2 v] to [wallslide]\n                                    set [xv v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (2)\n    end\n    change y by (-3)\n    if <touching color (#000008)?> then\n        if <(yv) = [-3]> then\n            if <<key (a v) pressed?> or <key (d v) pressed?>> then\n                set [mode2 v] to [run]\n            else\n                if <([abs v] of (xv) ) > [.1]> then\n                    set [mode2 v] to [skid]\n                else\n                    set [mode2 v] to [stand]\n                end\n            end\n        end\n        if <key (w v) pressed?> then\n            set [mode2 v] to [jump]\n            set [yv v] to [12]\n        end\n    end\n    if <<<<(mode2) = [jump]> or <(mode2) = [walljump]>> and <(yv) < [0]>> or <<<(mode2) = [run]> or <(mode2) = [skid]>> and <(yv) < [-3]>>> then\n        set [mode2 v] to [fall]\n    end\n    change y by (3)\n    if <(yv) > [-15]> then\n        change [yv v] by (-0.5)\n    end\n    change y by (-2)\n    if <not <touching color (#000008)?>> then\n        change y by (-1)\n        if <not <touching color (#000008)?>> then\n            change y by (-1)\n            if <not <touching color (#000008)?>> then\n                change y by (-1)\n                if <not <touching color (#000008)?>> then\n                    change y by (-1)\n                    if <not <touching color (#000008)?>> then\n                        change y by (-1)\n                        if <not <touching color (#000008)?>> then\n                            change y by (5)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (2)\n    change y by (yv)\n    if <touching color (#000008)?> then\n        change y by (-2)\n        if <touching color (#000008)?> then\n            change y by ((-1) * (yv))\n            set [yv v] to [-3]\n        end\n        change y by (2)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (a v) pressed?> then\n        switch costume to (costume2 v)\n    end\n    if <key (d v) pressed?> then\n        switch costume to (costume1 v)\n    end\n    if <key (r v) pressed?> then\n        go to x: (-184) y: (-5)\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching color (#2aff00)?> then\n        broadcast (red win v)\n        change [red score v] by (1)\n    end\nend\n\n@ground\n\nwhen I receive [costume 2 v]\nswitch costume to (costume2 v)\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [costume 1 v]\nswitch costume to (costume1 v)\n\nwhen I receive [costume 3 v]\nswitch costume to (costume2 v)\n\nwhen I receive [costume 4 v]\nswitch costume to (costume4 v)\n\nwhen I receive [costume 5 v]\nswitch costume to (costume5 v)\n\nwhen I receive [costume 6 v]\nswitch costume to (costume6 v)\n\nwhen I receive [costume 7 v]\nswitch costume to (costume7 v)\n\nwhen I receive [costume 8 v]\nswitch costume to (costume8 v)\n\nwhen I receive [costume 9 v]\nswitch costume to (costume9 v)\n\nwhen I receive [costume 10 v]\nswitch costume to (costume10 v)\n\n@blue wins\n\nwhen flag clicked\nhide\n\nwhen I receive [blue win v]\nshow\nplay sound [Win v] until done\nhide\nbroadcast (pick random (1) to (10))\nif <(pick random (1) to (10)) = [1]> then\n    broadcast (costume 1 v)\nend\nif <(pick random (1) to (10)) = [2]> then\n    broadcast (costume 2 v)\nend\nif <(pick random (1) to (10)) = [3]> then\n    broadcast (costume 3 v)\nend\nif <(pick random (1) to (10)) = [4]> then\n    broadcast (costume 4 v)\nend\nif <(pick random (1) to (10)) = [5]> then\n    broadcast (costume 5 v)\nend\nif <(pick random (1) to (10)) = [6]> then\n    broadcast (costume 6 v)\nend\nif <(pick random (1) to (10)) = [7]> then\n    broadcast (costume 7 v)\nend\nif <(pick random (1) to (10)) = [8]> then\n    broadcast (costume 8 v)\nend\nif <(pick random (1) to (10)) = [9]> then\n    broadcast (costume 9 v)\nend\nif <(pick random (1) to (10)) = [10]> then\n    broadcast (costume 10 v)\nend\n\nwhen I receive [intro over v]\nforever\n    play sound [Movie 2 v] until done\nend\n\nwhen flag clicked\nforever\n    if <(BLUE SCORE) = [10]> then\nend\n\n@red wins\n\nwhen flag clicked\nhide\n\nwhen I receive [red win v]\nshow\nplay sound [Win v] until done\nbroadcast (pick random (1) to (10))\nif <(pick random (1) to (10)) = [1]> then\n    broadcast (costume 1 v)\nend\nif <(pick random (1) to (10)) = [2]> then\n    broadcast (costume 2 v)\nend\nif <(pick random (1) to (10)) = [3]> then\n    broadcast (costume 3 v)\nend\nif <(pick random (1) to (10)) = [4]> then\n    broadcast (costume 4 v)\nend\nif <(pick random (1) to (10)) = [5]> then\n    broadcast (costume 5 v)\nend\nif <(pick random (1) to (10)) = [6]> then\n    broadcast (costume 6 v)\nend\nif <(pick random (1) to (10)) = [7]> then\n    broadcast (costume 7 v)\nend\nif <(pick random (1) to (10)) = [8]> then\n    broadcast (costume 8 v)\nend\nif <(pick random (1) to (10)) = [9]> then\n    broadcast (costume 9 v)\nend\nif <(pick random (1) to (10)) = [10]> then\n    broadcast (costume 10 v)\nend\nhide\n\n@thumbnail\n\nwhen flag clicked\nhide\n\nshow\n\ngo to [front v] layer\n\n@v2\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (v v)\ngo to x: (28) y: (-285)\nglide (2) secs to x: (2) y: (1)\nwait (2) seconds\nhide\nbroadcast (intro over v)\n\nwhen flag clicked\nplay sound [Boom Cloud v] until done\n\n@o who cares\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [intro over v]\nhide\n\n@Sprite1\n\nwhen I receive [intro over v]\nshow\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nbroadcast (pick random (1) to (10))\nif <(pick random (1) to (10)) = [1]> then\n    broadcast (costume 1 v)\nend\nif <(pick random (1) to (10)) = [2]> then\n    broadcast (costume 2 v)\nend\nif <(pick random (1) to (10)) = [3]> then\n    broadcast (costume 3 v)\nend\nif <(pick random (1) to (10)) = [4]> then\n    broadcast (costume 4 v)\nend\nif <(pick random (1) to (10)) = [5]> then\n    broadcast (costume 5 v)\nend\nif <(pick random (1) to (10)) = [6]> then\n    broadcast (costume 6 v)\nend\nif <(pick random (1) to (10)) = [7]> then\n    broadcast (costume 7 v)\nend\nif <(pick random (1) to (10)) = [8]> then\n    broadcast (costume 8 v)\nend\nif <(pick random (1) to (10)) = [9]> then\n    broadcast (costume 9 v)\nend\nif <(pick random (1) to (10)) = [10]> then\n    broadcast (costume 10 v)\nend\n\n