Cloud Platformer Multiplayer Fun v1.42 #2
@Stage\n\nstop all sounds\n\nwhen I receive [startgame v]\nswitch backdrop to (backdrop2 v)\n\n@chracter\n\nwhen I start as a clone\ngo to x: (-209) y: (-58)\nchange [clone counter v] by (1)\nshow\nset [falling y v] to (pick random (-0.2) to (-0.8))\nset [random x v] to (pick random (0.4) to (1))\nset [random y v] to (pick random (8) to (10))\nset [x v] to [0]\nset [y v] to [0]\nclear graphic effects\nset volume to (100) %\npoint in direction (90)\nset size to (100) %\ngo [forward v] (pick random (1) to (-1)) layers\nrepeat until <<not <([costume # v] of [level v]) = [7]>> and <[239] < (x position)>>\n    if <(set destroy) = [1]> then\n        change [clone counter v] by (-1)\n        delete this clone\n    end\n    change [y v] by (falling y)\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        change [x v] by ((random x) * (-1))\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        change [x v] by (random x)\n    end\n    set [x v] to ((X) * (0.9))\n    change x by (X)\n    if <touching (level v)?> then\n        change y by (1)\n        if <touching (level v)?> then\n            change y by (1)\n            if <touching (level v)?> then\n                change y by (1)\n                if <touching (level v)?> then\n                    change y by (1)\n                    if <touching (level v)?> then\n                        change y by (1)\n                        if <touching (level v)?> then\n                            change y by (1)\n                            if <touching (level v)?> then\n                                change y by (-6)\n                                change x by ((X) * (-1))\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n                                    set [y v] to [10]\n                                    if <(X) > [0]> then\n                                        set [x v] to [-5]\n                                    else\n                                        set [x v] to [5]\n                                    end\n                                else\n                                    set [x v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (Y)\n    if <touching (level v)?> then\n        change y by ((Y) * (-0.2))\n        set [y v] to [0]\n    end\n    change y by (-0.5)\n    if <<<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> and <touching (level v)?>> then\n        set [y v] to (random y)\n    end\n    change y by (0.5)\n    if <touching (death v)?> then\n        set [set destroy v] to [1]\n        change [clone counter v] by (-1)\n        delete this clone\n    end\n    if <touching (bounce pad v)?> then\n        set [y v] to [20]\n    end\n    Tick\nend\nchange [clone counter v] by (-1)\nchange [ninjas that got across v] by (1)\ndelete this clone\n\nwhen I start as a clone\nset [walk v] to [0]\nforever\n    if <<<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> and <(walk) = [0]>> and <not <touching (level v)?>>> then\n        set [walk v] to [1]\n        switch costume to (costume2 v)\n        repeat (8)\n            next costume\n        end\n        switch costume to (costume1 v)\n        set [walk v] to [0]\n    end\n    if <(set destroy) = [1]> then\n        go to x: (-209) y: (-58)\n        change [clone counter v] by (-1)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<not <<<key (right arrow v) pressed?> and <key (left arrow v) pressed?>> and <key (up arrow v) pressed?>>> and <<(Jump) = [0]> and <(Walk) = [0]>>> then\n        switch costume to (costume1 v)\n        wait (pick random (1) to (0.5)) seconds\n        switch costume to (costume2 v)\n        wait (pick random (1) to (0.5)) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <key (right arrow v) pressed?> then\n        point in direction (90)\n    end\n    if <key (left arrow v) pressed?> then\n        point in direction (-90)\n    end\nend\n\ndefine ninja creator (ninja #)\nset [goal v] to (ninja #)\nrepeat (ninja #)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [startgame v]\nset [clone counter v] to [0]\nset volume to (100) %\nset [ninjas that got across v] to [0]\nhide\nninja creator [10]\n\nwhen flag clicked\nhide\nset [ninjas that got across v] to [0]\nforever\n    if <(goal) = (ninjas that got across)> then\n        set [clone counter v] to [0]\n        broadcast (TRANSITION v)\n        broadcast (nextlevel v)\n        set [ninjas that got across v] to [0]\n        ninja creator [10]\n    end\n    if <(set destroy) = [1]> then\n        set [ninjas that got across v] to [0]\n        wait (0.1) seconds\n        ninja creator [10]\n        set [set destroy v] to [0]\n    end\nend\n\nwhen I receive [nextlevel v]\nset [set destroy v] to [0]\n\nwhen I receive [startgame v]\nforever\n    play sound [thefatrat music v] until done\nend\n\nset [clone counter v] to [0]\nbroadcast (TRANSITION v)\nbroadcast (nextlevel v)\nset [ninjas that got across v] to [0]\nninja creator [10]\n\nset [set destroy v] to [1]\nset [ninjas that got across v] to [0]\nbroadcast (TRANSITION v)\nwait (0.1) seconds\nset [set destroy v] to [0]\nset [clone counter v] to [0]\nbroadcast (nextlevel v)\nset [ninjas that got across v] to [0]\n\nwhen I receive [next button pressed v]\nset [set destroy v] to [1]\nset [ninjas that got across v] to [0]\nwait (0.1) seconds\nset [set destroy v] to [0]\nset [clone counter v] to [0]\nbroadcast (TRANSITION v)\nbroadcast (nextlevel v)\nset [ninjas that got across v] to [0]\n\ndefine Tick\n\n@level\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\n\nwhen I receive [nextlevel v]\nnext costume\n\nwhen I receive [startgame v]\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\n\n@transition\n\nwhen flag clicked\ngo to x: (0) y: (348)\nhide\n\nwhen I receive [transition v]\nif <(intro) = [1]> then\n    clear graphic effects\n    show\n    go to x: (0) y: (348)\n    repeat until <(y position) = [10]>\n        set y to ((y position) + (((10) - (y position)) / (2)))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\nend\n\n@particle effect intro \n\nwhen flag clicked\nclear graphic effects\nhide\n\nwhen I receive [particles v]\nclone explode\n\ndefine clone explode\ngo to [front v] layer\nrepeat (20)\n    create clone of (_myself_ v)\n    turn right (18) degrees\nend\n\nwhen I start as a clone\ngo to (intro part 2 v)\nmove (15) steps\nset [steps v] to [5]\nshow\nswitch costume to (pick random (1) to (2))\nrepeat (20)\n    change [ghost v] effect by (5)\n    move (steps) steps\n    change [steps v] by (-0.3)\nend\ndelete this clone\n\n@intro part 1\n\nwhen flag clicked\nset volume to (100) %\nerase all\nhide\nclear graphic effects\nrepeat (16)\n    change [color v] effect by (-2.5)\n    create clone of (_myself_ v)\n    wait (0.2) seconds\nend\nwait (1.4) seconds\nbroadcast (show v)\n\nwhen I start as a clone\nshow\nswitch costume to (costume1 v)\ngo to x: (-470) y: (0)\nrepeat until <(x position) = [0]>\n    set x to ((x position) + (((0) - (x position)) / (10)))\nend\ndelete this clone\n\nwhen flag clicked\nplay sound [intro music v] until done\n\nwhen I receive [startgame v]\nhide\n\n@intro part 2\n\nwhen flag clicked\nset [intro v] to [1]\nswitch backdrop to (backdrop1 v)\nhide\ngo to x: (0) y: (0)\n\ndefine size: (size) Speed: (speed)\nset [bouncy v] to ((((size) - (size)) * (speed)) + ((bouncy) * (0.7)))\nchange size by (bouncy)\n\nwhen I receive [show v]\nset volume to (100) %\nbroadcast (particles v)\nset size to (0) %\nshow\nrepeat (25)\n    size: [100] Speed: ((1) / (4))\nend\nwait (0.3) seconds\nbroadcast (particles v)\nrepeat (25)\n    size: [50] Speed: ((1) / (4))\nend\nwait (1) seconds\nbroadcast (particles v)\nrepeat (25)\n    size: [100] Speed: ((1) / (4))\nend\nbroadcast (transition v)\nwait (0.4) seconds\nhide\nbroadcast (sound v)\n\nwhen I receive [sound v]\nrepeat (20)\n    change volume by (-5)\nend\nstop all sounds\nset volume to (100) %\nbroadcast (startgame v)\nset [intro v] to [0]\n\n@nextlevel transition\n\nset x to (0)\n\nwhen flag clicked\nset [transition on? v] to [off]\ngo to [front v] layer\ngo to x: (0) y: (348)\nhide\n\nwhen I receive [transition v]\nset [transition on? v] to [on]\nstart sound [Low Whoosh v]\nclear graphic effects\ngo to [front v] layer\nshow\ngo to x: (0) y: (348)\nrepeat until <(y position) = [10]>\n    set y to ((y position) + (((10) - (y position)) / (2)))\nend\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nset [transition on? v] to [off]\n\n@when stop flag clicked\n\nwhen flag clicked\nreset timer\nhide\ngo to x: (-480) y: (0)\nforever\n    set [timer v] to ((timer) + (0.1))\nend\n\nwhen [timer v] > (timer)\nset size to (100) %\nshow\ngo to [front v] layer\nrepeat until <(round (x position)) = [0]>\n    change x by (((0) - (x position)) / (5))\nend\nset x to (0)\n\n@death\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nclear graphic effects\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\nforever\n    if <(costume [number v]) = [4]> then\n        set [ghost v] effect to (100)\n    else\n        clear graphic effects\n    end\nend\n\nwhen I receive [nextlevel v]\nnext costume\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nwait (1) seconds\nshow\ngo to x: (0) y: (50)\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\n@text\n\nwhen flag clicked\nhide\n\nwhen I receive [nextlevel v]\nnext costume\n\nwhen I receive [startgame v]\nswitch costume to (costume1 v)\nshow\ngo to x: (0) y: (0)\n\n@bounce pad\n\nwhen flag clicked\nset size to (100) %\nhide\nswitch costume to (costume1 v)\nforever\n    if <([costume # v] of [level v]) = [1]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [2]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [3]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [4]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [5]> then\n        show\n        go to x: (0) y: (-129)\n        if <<touching (chracter v)?> and <(bouncelock) = [0]>> then\n            set [bouncelock v] to [1]\n            switch costume to (costume1 v)\n            repeat (4)\n                next costume\n            end\n            switch costume to (costume1 v)\n            set [bouncelock v] to [0]\n        end\n    end\n    if <([costume # v] of [level v]) = [6]> then\n        set size to (60) %\n        show\n        go to x: (0) y: (-129)\n        if <<touching (chracter v)?> and <(bouncelock) = [0]>> then\n            set [bouncelock v] to [1]\n            switch costume to (costume1 v)\n            repeat (4)\n                next costume\n            end\n            switch costume to (costume1 v)\n            set [bouncelock v] to [0]\n        end\n    end\n    if <([costume # v] of [level v]) = [7]> then\n        hide\n    end\n    if <([costume # v] of [level v]) = [8]> then\n        hide\n    end\nend\n\nwhen I receive [nextlevel v]\n\n@clouds\n\nwhen flag clicked\nhide\n\nwhen I receive [startgame v]\nforever\n    wait (pick random (1) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [back v] layer\nshow\nswitch costume to (pick random (1) to (5))\ngo to x: (137) y: (pick random (126) to (54))\nset [ghost v] effect to (pick random (20) to (50))\nchange size by (pick random (-10) to (-20))\nrepeat until <touching (_edge_ v)?>\n    change x by (pick random (-3) to (-1))\nend\ndelete this clone\n\n@birds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (209) y: (pick random (149) to (47))\nshow\nswitch costume to (costume1 v)\nset size to (50) %\nrepeat until <touching (_edge_ v)?>\n    wait (0.05) seconds\n    next costume\n    change x by (-20)\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\ndelete this clone\n\nwhen I receive [startgame v]\nforever\n    wait (pick random (2) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\n@nextlevel button\n\ndefine fade\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen flag clicked\nhide\nforever\n    set [distance v] to (distance to [mouse-pointer v])\nend\n\nwhen I receive [nextlevel v]\nbroadcast (button v)\n\nwhen I receive [button v]\nclear graphic effects\nset size to (100) %\nshow\ngo to x: (256) y: (160)\nforever\n    set x to ((x position) + (((-200) - (x position)) / (10)))\n    if <[30] > (distance)> then\n        change size by (((130) - (size)) / (5))\n        if <<mouse down?> and <<(transition on?) = [off]> and <not <([costume # v] of [level v]) = [8]>>>> then\n            fade\n            broadcast (next button pressed v)\n            stop [this script v]\n        end\n    else\n        change size by (((100) - (size)) / (5))\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [level v]) = [8]> then\n        hide\n    end\nend\n\nwhen I receive [startgame v]\nbroadcast (button v)\n\n
❤️と⭐️、フォローお願いします！\n❤️ and ⭐️, please follow me!\n@Shibatan_Gamesの次回作のお知らせ\nhttps://scratch.mit.edu/projects/742715169\nおすすめの作品！見てあげて！\nhttps://scratch.mit.edu/projects/735766430\n旗を2,3回おしてください！\nPress the flag two or three times!\nintroはクリックでスキップできます！\nYou can skip intro with a click!\n＜操作方法/How to operate＞\n≪PC≫\n矢印キー/Arrow key\n≪モバイル/Mobile≫\n行きたい方にタップ/Tap for those who want to go\n＜遊び方/How to play＞\n針に当たらないように進みましょう！\nLet's proceed so as not to hit the needle!\n＜メモ＞\n❤️&⭐️&フォローよろしくお願いします！してくれると作者が泣いて喜びます！\n❤️&⭐️&Follow me! If you do it, the author will cry and be happy.\n世界記録を目指して頑張ろう！\n※New Scratcherの方は記録されません。\nLet's do our best aiming for the world record!\n※New Scratcher will not be recorded.\n＜クレジット/credit＞\nintro @kako-ken様\nプレイヤーのプログラム　@takuno3様\n背景　@l_____Scratch_____l様\nnext @harukun19様\nBGM @-xaf-様\n地面 @colpafu様\nイントロのロゴ　@46491cat様\n＜タグ＞\n#all #Shibatan_Games #Game #game #Games #PLATFORMER #platformer #ordinary 