Scratch - Scrolling Platformer #Games #All
@Stage\n\nwhen flag clicked\nforever\n    play sound [Dj CUTMAN - Super Mario 3D World Hiphop Remix - GameChops v] until done\nend\n\n@Player\n\nwhen flag clicked\nforever\n    if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [20]>>>> then\n        switch costume to (1a v)\n        if <<<mouse down?> and <(mouse y) > ((y position) + (20))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (5a v)\n        end\n    else\n        if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-20]>>>> then\n            switch costume to (2a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (4a v)\n            end\n        else\n            switch costume to (3a v)\n            if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n                switch costume to (6a v)\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [color v] effect to (0)\ngo to [front v] layer\nshow\nset [player2: xv v] to [0]\nset [player2: yv v] to [0]\nswitch costume to (center v)\nforever\n    broadcast (tick v)\nend\n\ndefine Tick\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    change [player2: xv v] by (4.5)\nend\nif <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>>> then\n    change [player2: xv v] by (-4.5)\nend\nset [player2: xv v] to ((Player2: Xv) * (0.650))\nchange x by (Player2: Xv)\nif <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n    change y by (1)\n    if <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n        change y by (1)\n        if <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n            change y by (1)\n            if <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n                change y by (1)\n                if <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n                    change y by (1)\n                    if <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n                        change x by ((Player2: Xv) * (-1))\n                        change y by (-5)\n                        if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                            if <(Player2: Xv) > [0]> then\n                                set [player2: xv v] to [-10]\n                            else\n                                set [player2: xv v] to [10]\n                            end\n                            set [player2: yv v] to [18]\n                        else\n                            set [player2: xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [player2: yv v] by (-1)\nchange y by (Player2: Yv)\nif <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n    change y by ((Player2: Yv) * (-1))\n    set [player2: yv v] to [0]\nend\nchange y by (-1)\nif <<touching (platforms v)?> or <<touching (platforms2 v)?> or <<touching (platforms3 v)?> or >>> then\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        start sound [Jump2 v]\n        set [player2: yv v] to [18]\n    end\nend\nif <<([y position v] of [platforms v]) > [830]> or > then\n    set [scrollx v] to [810]\n    set [scrolly v] to [400]\n    start sound [AAAA v]\nend\nchange [scrollx v] by ((x position) * (-1))\nchange [scrolly v] by ((y position) * (-1))\ngo to x: (0) y: (0)\nif <touching (portals v)?> then\n    set [player2: xv v] to [0]\n    set [scrollx v] to [810]\n    set [scrolly v] to [400]\n    broadcast (Next Level v)\nend\nif  then\n    set [player2: yv v] to [21]\nend\nchange y by (1)\nif <<touching (spikes v)?> or <<touching (spikes2 v)?> or >> then\n    set [scrollx v] to [810]\n    set [scrolly v] to [400]\n    start sound [Rip v]\nend\nif <(ScrollX) > [893]> then\n    set [scrollx v] to [893]\nend\n\nwhen I receive [tick v]\nTick\n\nwhen flag clicked\nforever\n    if <not <<key (up arrow v) pressed?> or <<key (right arrow v) pressed?> or <<key (left arrow v) pressed?> or <<key (w v) pressed?> or <<key (a v) pressed?> or <key (d v) pressed?>>>>>>> then\n        switch costume to (center v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (up v)\n    end\nend\n\nwhen I receive [next level v]\nstart sound [Collect v]\n\n@asssets\n\n@Platforms\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Platforms2\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Platforms3\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Platforms4\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@letters\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Spikes\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Spikes2\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Spikes3\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Trampoline\n\nwhen flag clicked\ngo to [back v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Portals\n\nwhen flag clicked\ngo to [front v] layer\nshow\nswitch costume to (blank v)\nset size to (400) %\nswitch costume to (kostüm 1 v)\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nforever\n    go to x: (ScrollX) y: (ScrollY)\nend\n\nwhen I receive [next level v]\nset [scrollx v] to [810]\nset [scrolly v] to [400]\nnext costume\n\ndefine Get Position to x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    Get Position to x: ((ScrollX) - (SCROLL X)) y: (ScrollY)\nend\n\n@Kukla 1\n\nwhen flag clicked\nforever\n    change [ghost v] effect by (100)\n    go to [front v] layer\n    show\nend\n\n
Scratch - Scrolling Platformer\n\nIf its lagging play it here:\nhttps://turbowarp.org/490926576\n\nArrow keys or W,A,D to move or else (Have mobile control)\nCollect the coin to go to the next level\nDon't touch spikes\nDon't fall\nHave 3 levels\nAll levels are possible\nIts easy (or hard?)\nNo ads!\n\n#Games #All #Platformer #Scrolling #Scratch\n\nCredits:\nScratch 3.0 for most of the art\n@griffpatch for spikes and background\n@INorth for some codes\n@Supercube_123 for player art\n@StratfordJames for coin art\n@DincProductions for the contest\nand you for playing\nand yeah