☁ The Lab - Multiplayer Platformer ☁                         #Games #all

Instructions: =====Info=====\nThe Red Ninja: https://scratch.mit.edu/projects/401255085/\nThe Red Ninja 2: https://scratch.mit.edu/projects/402521703/\nThe Red Ninja 4: https://scratch.mit.edu/projects/404940060/\nThe Red Ninja 5: https://scratch.mit.edu/projects/406739724/\nAre you ready for another epic adventure? Grab your katana, ninja stars, arrows and axes, and let’s go!\nCan we keep the love-view ratio above 25 this time?\n=====Disclaimer=====\nIt might lag occasionally on slow devices because of too many clones, but still, enjoy! This is also mobile friendly.\nFor less lag go to Forkphorus.github.io/#402980379\n=====Controls=====\nMove and Swim || Arrow keys or mobile tap\nShoot || Space or “Use weapon” button\nSwitch Weapon || Z or “Switch weapon” button\nAll levels are possible!

@Stage\n\nwhen I receive [スタート v]\nset [pitch v] effect to (0)\nforever\n    if <key (m v) pressed?> then\n        forever\n            set [pitch v] effect to (50)\n        end\n    else\n        clear sound effects\n    end\nend\n\nwhen flag clicked\nforever\n    play sound [128_BPM124 v] until done\n    play sound [DL6YaC-OH8I_128 v] until done\n    play sound [CkDT4KgDtb8_128 v] until done\nend\n\nwhen I receive [hp1,2 v]\nset [pan left/right v] effect to (50)\n\n@サムネ\n\nwhen flag clicked\nswitch costume to (サムネ v)\ngo to x: (23) y: (-4)\nshow\nwait (1) seconds\nhide\nbroadcast (スタート v)\n\n@プレイヤー\n\nwhen flag clicked\nhide\npoint in direction (90)\ngo to x: (-104) y: (42)\n\nwhen I receive [プレイヤー登場 v]\nset [ふむ v] to [1]\nswitch costume to (コスチューム1  v)\nclear graphic effects\nset size to (100) %\nshow\ngo to x: (-104) y: (42)\ngo to [front v] layer\nwait (0.2) seconds\nset [y v] to [0]\nset [ふむ v] to [0]\nshow\nswitch costume to (コスチューム1  v)\nforever\n    repeat until <(HP) < [1]>\n        change [y v] by (-1)\n        change y by (y)\n        if <touching (地面 v)?> then\n            change y by ((0) - (y))\n            set [y v] to [0]\n        end\n        change y by (-2)\n        if <<<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<[1] < (mouse y)> and <mouse down?>>>> and <touching (地面 v)?>> then\n            start sound [Jump v]\n            switch costume to (コスチューム1  v)\n            set [y v] to [16]\n        end\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change y by (1)\n                            if <touching (地面 v)?> then\n                                change y by (1)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        if <<key (down arrow v) pressed?> or <<key (s v) pressed?> or <<(mouse y) < [0]> and <mouse down?>>>> then\n            switch costume to (コスチューム2 v)\n        else\n            switch costume to (コスチューム1  v)\n        end\n    end\n    if <(HP) < [1]> then\n        broadcast (停止 v)\n        set [消える v] to (y position)\n        repeat (30)\n            change [pixelate v] effect by (1)\n            change [ghost v] effect by (3)\n            change [whirl v] effect by (25)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\nwhen I receive [プレイヤー登場 v]\nswitch costume to (コスチュームの番号)\nhide variable [hp v]\nhide variable [y v]\nset [hp v] to [5]\nforever\n    repeat until <(HP) < [1]>\n        if <<touching (障害物 v)?> or <touching (_edge_ v)?>> then\n            if <(スコア) < [1]> then\n                set [スコア v] to [0]\n            else\n                change [スコア v] by (-1)\n            end\n        else\n            動き\n        end\n    end\n    stop [this script v]\nend\n\nwhen I receive [hp減 v]\nchange [hp v] by (-1)\nwait (1) seconds\n\nwhen I receive [hp回復 v]\nchange [hp v] by (1)\n\ndefine 動き\npoint in direction (90)\nturn right (15) degrees\nwait (0.05) seconds\nturn left (15) degrees\n\nwhen I receive [プレイヤー登場 v]\nforever\n    if <<touching (障害物 v)?> or <touching (_edge_ v)?>> then\n        broadcast (HP減 v)\n        start sound [Oops v]\n        set [brightness v] effect to (100)\n        wait (0.1) seconds\n        set [brightness v] effect to (0)\n        wait (0.7) seconds\n    end\nend\n\nwhen I receive [hp1,2 v]\nset [pan left/right v] effect to (50)\n\n@地面\n\nwhen I receive [スタート v]\nshow\ngo to x: (-18) y: (-65)\nrepeat (70)\n    change y by (0.9)\nend\ngo to x: (15) y: (-2)\nbroadcast (プレイヤー登場 v)\nforever\n    if <(x position) < [-31]> then\n        go to x: (15) y: (-2)\n    else\n        change x by ((x) + (-2))\n    end\nend\n\nwhen flag clicked\nhide\ngo to x: (-18) y: (-65)\ngo to [front v] layer\n\n@日光\n\nwhen flag clicked\nhide\nforever\n    go to [back v] layer\nend\n\nwhen I receive [プレイヤー登場 v]\nswitch costume to (コスチューム1 v)\nhide variable [太陽 v]\nset [太陽 v] to [0]\nshow\nforever\n    point in direction ((太陽) * (8))\n    change [太陽 v] by (0.1)\n    if <(costume [number v]) = [2]> then\n        set size to (50) %\n    else\n        set size to (100) %\n    end\nend\n\nwhen this sprite clicked\nnext costume\n\n@障害物\n\nwhen I receive [プレイヤー登場 v]\nhide variable [スコア v]\nset [スコア v] to [0]\nset [x v] to [-5]\nhide\nset size to (50) %\ngo to x: (350) y: (-76)\nforever\n    if <(HP) < [1]> then\n        hide\n        stop [this script v]\n    else\n        wait (pick random (1.51) to (2.6)) seconds\n        create clone of (_myself_ v)\n        if <(ミッション) = [1]> then\n            repeat (pick random (3) to (3))\n                create clone of (バネ v)\n                wait (pick random (1.51) to (3)) seconds\n                create clone of (コイン v)\n            end\n        end\n        wait (0.5) seconds\n    end\n    if <key (right arrow v) pressed?> then\n        change [x v] by (-0.05)\n    end\nend\n\nwhen I start as a clone\ngo to x: (350) y: (-76)\nswitch costume to (pick random (1) to (13))\nshow\npoint in direction (90)\nif <(costume [number v]) = [9]> then\n    repeat (20)\n        point in direction ((太陽) * (40))\n        change x by (x)\n    end\n    repeat until <touching (_edge_ v)?>\n        point in direction ((太陽) * (40))\n        change x by (x)\n    end\n    change [スコア v] by (1)\n    delete this clone\nend\nif <(costume [number v]) = [ 12]> then\n    go to x: (237) y: (-61)\n    go to [front v] layer\n    show\n    point in direction (90)\n    repeat (20)\n        change x by (x)\n        if <touching (プレイヤー v)?> then\n            wait (0.1) seconds\n            repeat (10)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        if <touching (地面 v)?> then\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change y by (1)\n                            if <touching (地面 v)?> then\n                                change y by (1)\n                                if <touching (地面 v)?> then\n                                    change y by (1)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        else\n            change y by (-2)\n        end\n    end\n    repeat until <touching (_edge_ v)?>\n        change x by (x)\n        if <touching (プレイヤー v)?> then\n            wait (0.1) seconds\n            repeat (10)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n        if <touching (地面 v)?> then\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change y by (1)\n                            if <touching (地面 v)?> then\n                                change y by (1)\n                                if <touching (地面 v)?> then\n                                    change y by (1)\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        else\n            change y by (-2)\n        end\n    end\n    delete this clone\nend\npoint in direction (90)\nrepeat (20)\n    change x by (x)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (x)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\nchange [スコア v] by (1)\ndelete this clone\n\nwhen flag clicked\nhide variable [x v]\nhide\nforever\n    change [x v] by (-0.005)\n    if <(x) < [-14]> then\n        set [x v] to [-14]\n    end\nend\n\nwhen I receive [停止 v]\nhide\nstop [this script v]\n\n@HP\n\nwhen I receive [プレイヤー登場 v]\ngo to x: (-153) y: (108)\nset size to (100) %\nshow\nforever\n    switch costume to (HP)\n    if <(HP) < [1]> then\n        hide\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\nset [hp v] to [5]\nhide variable [hp v]\nforever\n    if <<(costume [number v]) = [2]> or <(costume [number v]) = [1]>> then\n        broadcast (HP1,2 v)\n        set [pan left/right v] effect to (50)\n    else\n    end\nend\n\nwhen I receive [プレイヤー登場 v]\nforever\n    if <(HP) > [5]> then\n        set [hp v] to [5]\n    end\n    if <(HP) < [1]> then\n        hide\n        stop [this script v]\n    end\n    if <<(costume [number v]) = [2]> or <(costume [number v]) = [1]>> then\n        go to x: (-153) y: (108)\n        repeat (10)\n            change y by (pick random (-2) to (2))\n            change x by (pick random (-2) to (2))\n        end\n        go to x: (-153) y: (108)\n    end\nend\n\nwhen I receive [hp減 v]\nrepeat (pick random (2) to (3))\n    set [brightness v] effect to (100)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\n@植物\n\nwhen I receive [プレイヤー登場 v]\nhide\ngo to x: (241) y: (28)\ngo to [back v] layer\ngo [forward v] (1) layers\nforever\n    wait (pick random (2) to (7)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\nswitch costume to (pick random (1) to (4))\nforever\n    repeat (20)\n        change x by (-7)\n    end\n    if <touching (_edge_ v)?> then\n        hide\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\nset size to (80) %\n\nwhen I receive [停止 v]\nstop [this script v]\n\n@回復アイテム\n\nwhen I receive [プレイヤー登場 v]\nforever\n    hide\n    if <(HP) < [3]> then\n        wait (pick random (5) to (10)) seconds\n        create clone of (_myself_ v)\n        if <(HP) < [1]> then\n            hide\n            stop [this script v]\n        end\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\ngo to x: (204) y: (-11)\nset size to (50) %\nshow\nforever\n    change x by (-10)\n    if <<touching (_edge_ v)?> or <touching (障害物 v)?>> then\n        delete this clone\n    end\n    if <touching (プレイヤー v)?> then\n        broadcast (HP回復 v)\n        start sound [つぶれる v]\n        delete this clone\n    end\nend\n\nwhen I receive [停止 v]\nhide\nstop [this script v]\n\n@結果\n\nwhen I receive [停止 v]\ngo to x: (-15) y: (22)\ngo to [front v] layer\nshow\nshow variable [☁ ハイスコア v]\nshow variable [スコア v]\n\nwhen flag clicked\nhide\nhide variable [☁ ハイスコア v]\nhide variable [スコア v]\n\nwhen I receive [停止 v]\nif <(☁ ハイスコア) < (スコア)> then\n    set [☁ ハイスコア v] to (スコア)\n    show variable [☁ ハイスコア v]\nend\nstop [this script v]\n\nwhen flag clicked\nhide\nhide variable [☁ ハイスコア v]\n\nwhen I receive [スタート v]\nforever\n    if <(☁ ハイスコア) < (スコア)> then\n        broadcast (ハイスコア更新中 v)\n        set [☁ ハイスコア v] to (スコア)\n    end\nend\n\nadd [なにか] to [ランキング、ranking v]\n\n@宣伝\n\nwhen I receive [プレイヤー登場 v]\nhide\nset size to (50) %\nforever\n    wait (10) seconds\n    switch costume to (コスチューム1 v)\n    show\n    repeat (1)\n        go to x: (7) y: (107)\n        point in direction (90)\n        repeat (9)\n            change x by (((323) - (x position)) / (4))\n            start sound [文字表示の衝撃音1 v]\n        end\n        go to x: (-229) y: (113)\n        repeat (10)\n            change x by (((0) - (x position)) / (4))\n            start sound [文字表示の衝撃音1 v]\n        end\n    end\n    repeat (80)\n        change [ghost v] effect by (1)\n    end\n    clear graphic effects\n    hide\n    wait (20) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [星 v]\nswitch costume to (コスチューム2 v)\nshow\ngo to x: (0) y: (60)\nwait (1) seconds\nhide\nswitch costume to (コスチューム1 v)\n\n@星\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [back v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (星 v)\n    end\nend\n\nwhen I receive [星 v]\nwait (1) seconds\nchange [スコア v] by (1)\n\n@コイン\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\nforever\n    set [ミッション v] to [0]\n    wait (120) seconds\n    set [ミッション v] to [1]\n    wait (120) seconds\nend\n\nwhen I start as a clone\ngo to x: (230) y: (20)\nset size to (50) %\nswitch costume to (コイン v)\nshow\nrepeat (20)\n    change x by (-10)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (-10)\nend\nchange [スコア v] by (1)\ndelete this clone\n\nwhen I receive [スタート v]\nforever\n    if <(ミッション) > [1]> then\n        set [ミッション v] to [0]\n    end\nend\n\nchange [スコア v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        change [スコア v] by (10)\n        hide\n        delete this clone\n    end\nend\n\n@バネ\n\nwhen flag clicked\nhide\nset size to (30) %\ngo to x: (240) y: (-61)\n\nwhen I start as a clone\nswitch costume to (コスチューム2 v)\npoint in direction (90)\nshow\nrepeat (20)\n    change x by (x)\nend\nrepeat until <touching (_edge_ v)?>\n    change x by (x)\nend\nchange [スコア v] by (1)\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        switch costume to (コスチューム3 v)\n        set [y v] to [20]\n        wait (0.05) seconds\n    else\n        switch costume to (コスチューム2 v)\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\ngo to x: (111) y: (143)\n\nwhen I receive [ハイスコア更新中 v]\nshow\n\nwhen I receive [停止 v]\nhide\n\n@終わり\n\nwhen flag clicked\nhide\nwait (0.3) seconds\nforever\n    go to (プレイヤー v)\nend\n\nwhen I receive [停止 v]\ngo to [front v] layer\nrepeat (3)\n    wait (0.1) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\nset y to (消える)\nshow\npoint in direction (pick random (-190) to (200))\nrepeat (4)\n    turn right (1) degrees\nend\nrepeat (4)\n    change [ghost v] effect by (25)\nend\ndelete this clone\n\n