『拡散希望✨』5円玉 platformer

Instructions: @jinnrai2222 とのコラボ作品です！\njinnrai2222の作品⇓\n https://scratch.mit.edu/projects/937127518/\n皆さんあけましておめでとうございます！\n❤＆⭐をぜひ押してね！押したら何かが起こります！\n\n日本語は下\nー　ー　ー　ー　ー　ーEnglishー　ー　ー　ー　ー　ー\nThis is a collaboration work with @jinnrai2222!\njinnrai2222's work⇓\n  https://scratch.mit.edu/projects/937127518/\nHappy New Year everyone!\nBe sure to press ❤ & ⭐! Something happens when you press it!\n■Operate with arrow keys.\n■If you press the spacebar after hitting the offering box, something will happen!\nー　ー　ー　ー　ー　ー日本語ー　ー　ー　ー　ー　ー\n■矢印キーで操作します。\n■賽銭箱にあたったあとにスペースキーを押すと何かがが起きるよ！

@Stage\n\nwhen flag clicked\nforever\n    play sound [流水と松 v] until done\nend\n\n@軽量用\n\n@サムネ\n\nwhen flag clicked\ngo to x: (０) y: (０)\nhide\nset [pixelate v] effect to (100)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nhide variable [☁ ここにたどり着いた人数 v]\nhide variable [タイム v]\nstart sound [シーン切り替え2 v]\ngo to [front v] layer\nshow\nrepeat (10)\n    change [pixelate v] effect by (20)\n    wait (0.05) seconds\nend\nrepeat (10)\n    change [pixelate v] effect by (-20)\n    wait (0.05) seconds\nend\nwait (0.09) seconds\nclear graphic effects\nstop [all v]\n\n@最後の隠し用\n\nwhen flag clicked\nset [隠されたもの v] to [0]\ngo to x: (は) y: (は)\nforever\n    if <(隠されたもの) = [1]> then\n        show\n        go [forward v] (1) layers\n        if <touching (自分 v)?> then\n            set [ghost v] effect to (40)\n        else\n            set [ghost v] effect to (0)\n        end\n    else\n        hide\n        go to [back v] layer\n    end\nend\n\nwhen I receive [隠しステージスタート！ v]\nhide\ngo to [back v] layer\nstop [other scripts in sprite v]\n\nbroadcast (next v)\n\n@ネクスト\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [next v]\nswitch costume to (コスチューム2 v)\nstart sound [シーン切り替え1 v]\nstart sound [Rip v]\ngo to x: (０) y: (０)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-20)\nend\nbroadcast (リセット v)\nrepeat (10)\n    change [ghost v] effect by (5)\nend\ngo to [back v] layer\nhide\n\n@針\n\nwhen flag clicked\nswitch costume to (0 v)\nshow\n\nwhen I receive [next v]\nnext costume\n\n@自分\n\ndefine ﾀﾋるな！\nstart sound [crash v]\ngo to [front v] layer\nswitch costume to (ﾀﾋ！ v)\nset [変数 v] to [0]\npoint in direction (90)\nset rotation style [all around v]\nset [自分: わあ〜 v] to (pick random (15) to (18))\nrepeat until <[-180] > (y position)>\n    show\n    go to [front v] layer\n    turn right (自分: わあ〜) degrees\n    change y by (自分: わあ〜)\n    change [自分: わあ〜 v] by (-1)\nend\nhide\nswitch costume to (本体 v)\nwait (0.5) seconds\nset [自分: x v] to [0]\nset [自分: y v] to [0]\ngo to x: (-200) y: (-20)\npoint in direction (90)\nset [変数 v] to [9999]\nshow\nset rotation style [all around v]\n\nwhen I start as a clone\nrepeat (7)\n    if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < [-1]>>> then\n        switch costume to (しゃがむ v)\n    else\n        switch costume to (クローン v)\n    end\n    change [ghost v] effect by (7)\n    change size by (-10)\nend\ndelete this clone\n\ndefine しゃがめ！\nif <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < [-1]>>> then\n    switch costume to (しゃがむ v)\nelse\n    switch costume to (本体 v)\nend\n\nwhen flag clicked\nswitch backdrop to (背景3 v)\nset [color v] effect to (0)\nshow\nset rotation style [all around v]\nswitch costume to (本体 v)\nset size to (90) %\nset [ghost v] effect to (0)\ngo to x: (-182) y: (0)\ngo [backward v] (1) layers\nforever\n    if <(自分: 1234) = [0]> then\n        動け！\n        しゃがめ！\n        create clone of (_myself_ v)\n    end\nend\n\nwhen I receive [リセット v]\ngo to x: (-182) y: (0)\n\ndefine 動け！\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n    create clone of (_myself_ v)\n    change [自分: x v] by (-1)\n    turn left (10) degrees\nend\nif <<key (right arrow v) pressed?> or <<(x position) < (mouse x)> and <mouse down?>>> then\n    create clone of (_myself_ v)\n    change [自分: x v] by (1.1)\n    turn right (10) degrees\nend\nset [自分: x v] to ((自分: x) * (0.9))\nchange x by (自分: x)\nif <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                        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 x by ((自分: x) * (-1))\n                                    change y by (-8)\n                                    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n                                        start sound [壁キック v]\n                                        if <(自分: x) > [0]> then\n                                            set [自分: x v] to [-7]\n                                        else\n                                            set [自分: x v] to [7]\n                                        end\n                                        set [自分: y v] to [14]\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    end\nend\nchange y by (-1)\nif <touching (地面 v)?> then\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        start sound [ニュッ v]\n        set [自分: y v] to [14]\n    end\nend\nchange y by (1)\nchange [自分: y v] by (-1)\nchange y by (自分: y)\nif <touching (地面 v)?> then\n    change y by ((自分: y) * (-1))\n    set [自分: y v] to [0]\nend\nif <(x position) > [230]> then\n    broadcast (next v) and wait\nend\nif <touching (針 v)?> then\n    start sound [crash v]\n    ﾀﾋるな！\nend\nif <(y position) < [-180]> then\n    ﾀﾋるな！\nend\n\npoint in direction (-90)\n\npoint in direction (90)\n\nwhen [r v] key pressed\nbroadcast (リセット v)\n\nwhen flag clicked\nforever\n    if <touching (doyagaojyanken v)?> then\n        broadcast (おめでとう v)\n    end\nend\n\nwhen I receive [❤⭐ v]\nforever\n    change [color v] effect by (3)\nend\n\n@タイム\n\nwhen flag clicked\nset [タイム v] to [0]\nshow variable [タイム v]\nhide variable [☁ 世界タイム v]\nforever\n    change [タイム v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [終わり v]\nstop [other scripts in sprite v]\nshow variable [☁ 世界タイム v]\nif <(タイム) < (☁ 世界タイム)> then\n    set [☁ 世界タイム v] to (タイム)\nend\n\n@ターボだめ！\n\nwhen flag clicked\nforever\n    wait (0.01) seconds\n    set [ターボはだめ！ v] to [0]\nend\n\nwhen flag clicked\nforever\n    if <(ターボはだめ！) > [10000]> then\n        broadcast (最後 v)\n    end\nend\n\nwhen I receive [最後 v]\nstop [all v]\n\nwhen flag clicked\nset [ターボはだめ！ v] to [0]\nforever\n    change [ターボはだめ！ v] by (10)\nend\n\n@地面\n\nwhen I receive [next v]\ngo to [front v] layer\nnext costume\nif <(costume [number v]) = [15]> then\n    set [隠されたもの v] to [1]\nelse\n    set [隠されたもの v] to [0]\nend\nif <(costume [number v]) = [16]> then\n    broadcast (隠しステージスタート！ v)\nend\nif <(costume [number v]) = [15]> then\n    broadcast (終わり v)\nend\nif <(costume [number v]) = [16]> then\n    hide variable [☁ 世界タイム v]\n    hide variable [タイム v]\nend\nif <(costume [number v]) = [21]> then\n    change [☁ ここにたどり着いた人数 v] by (1)\n    show variable [☁ ここにたどり着いた人数 v]\nelse\n    hide variable [☁ ここにたどり着いた人数 v]\nend\n\nwhen flag clicked\nhide variable [☁ ここにたどり着いた人数 v]\nswitch costume to (0 v)\ngo to [front v] layer\n\nset [☁ 世界タイム v] to [200]\n\nhide variable [☁ ここにたどり着いた人数 v]\n\n@confetti\n\nwhen I start as a clone\ngo to x: (0) y: (180)\nset [sp v] to (pick random (-3.1) to (-9.1))\nset [i v] to (pick random (-200) to (200))\nshow\nrepeat until <(y position) < [-170]>\n    turn right (15) degrees\n    set x to ((i) + (([cos v] of ((timer) * (100)) ) * (30)))\n    change y by (sp)\n    change [ghost v] effect by (1)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen [space v] key pressed\n\nwhen I receive [おめでとう v]\nforever\n    if <key (space v) pressed?> then\n        repeat (pick random (10) to (20))\n            create clone of (_myself_ v)\n            wait (.01) seconds\n        end\n    end\nend\n\n@doyagaojyanken\n\nwhen flag clicked\nforever\n    if <touching (自分 v)?> then\n        broadcast (お年玉 v)\n    end\nend\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\n\nshow variable [お年玉を拾った回数/number of times i picked up a new year's gift v]\nset [お年玉を拾った回数/number of times i picked up a new year's gift v] to [0]\n\nwhen I receive [お年玉 v]\nchange [お年玉を拾った回数/number of times i picked up a new year's gift v] by (1)\nstart sound [Coin v]\nhide\n\nwhen I receive [next v]\nshow\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\nnext costume\n\n@スプライト2\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        broadcast (❤⭐ v)\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\n    wait (0) seconds\nend\n\n@スプライト1\n\nwhen flag clicked\nhide\nclear graphic effects\n\nwhen I receive [お年玉 v]\ngo to [front v] layer\nshow\nforever\n    go to (自分 v)\nend\n\n