let's go!platformer
@Stage\n\nwhen flag clicked\nforever\n    play sound [Tobu - Infectious \[NCS Release\] v] until done\nend\n\nwhen I receive [始める v]\nstop [other scripts in sprite v]\nbroadcast (uuu v)\nforever\n    play sound [Radiant \(1\) v] until done\nend\n\nif <(音) = [1]> then\n    stop all sounds\nend\n\nwhen flag clicked\nset [音 v] to [0]\nforever\n    if <(音) = [1]> then\n        stop all sounds\n    end\nend\n\nwhen I receive [uuu v]\nforever\n    if <(音) = [1]> then\n        stop all sounds\n    end\nend\n\n@軽量化\n\n@プラットフォーマー\n\nwhen I start as a clone\nset [brightness v] effect to ()\nrepeat (20)\n    change [ghost v] effect by (25)\n    change size by (-3)\nend\ndelete this clone\n\nwhen flag clicked\npoint in direction (90)\ngo to x: (71) y: (-11)\nswitch costume to (1プラットフォーマー v)\nset size to (130) %\nshow\nset rotation style [all around v]\nforever\n    change [滑らか変数 v] by (-10)\n    point in direction (([cos v] of (滑らか変数) ) * (25))\n    turn right (90) degrees\n    set y to ((([abs v] of ([sin v] of (滑らか変数) ) ) * (25)) - (10))\nend\n\nwhen I receive [始める v]\nstop [other scripts in sprite v]\nset [動く v] to [1]\ngo to [front v] layer\nshow\nset size to (85) %\nset drag mode [not draggable v]\nswitch costume to (join (コスチューム) [プラットフォーマー])\nbroadcast (クローン v)\ngo to x: (-200) y: (35)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nset [now v] to [1]\nforever\n    if <<(動く) = [1]> and <(音) = [0]>> then\n        set rotation style [left-right v]\n        if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n            change [ｘ座標 v] by (-1)\n            point in direction (-90)\n        end\n        if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n            change [ｘ座標 v] by (1)\n            point in direction (90)\n        end\n        if <<<mouse down?> and <(mouse y) < (y position)>> or <key (down arrow v) pressed?>> then\n            set [ｘ座標 v] to ((ｘ座標) * (1.02))\n            switch costume to (join (コスチューム) [しゃがみ])\n        else\n            switch costume to (join (コスチューム) [プラットフォーマー])\n        end\n        set [ｘ座標 v] to ((ｘ座標) * (0.9))\n        change x by (ｘ座標)\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 ((ｘ座標) * (-1))\n                                change y by (-5)\n                                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                    if <(ｘ座標) > [0]> then\n                                        set [ｘ座標 v] to [-7]\n                                    else\n                                        set [ｘ座標 v] to [7]\n                                    end\n                                    start sound [ジャンプの着地 \(1\) v]\n                                    set [ｙ座標 v] to [10]\n                                else\n                                    set [ｘ座標 v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <touching (地形 v)?> then\n            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                set [ｙ座標 v] to [15]\n                point in direction ((ｙ座標) * (0.5))\n                start sound [Jump v]\n            end\n        end\n        change y by (1)\n        change [ｙ座標 v] by (-1)\n        change y by (ｙ座標)\n        if <touching (地形 v)?> then\n            change y by ((ｙ座標) * (-1))\n            set [ｙ座標 v] to [0]\n        end\n        hide variable [ｘ座標 v]\n        if <(x position) > [230]> then\n            set [動く v] to [0]\n            broadcast (next level v)\n            change [now v] by (1)\n            set [ｙ座標 v] to [0]\n            set [ｘ座標 v] to [0]\n            go to x: (-201) y: (40)\n        end\n        if <(y position) < [-170]> then\n            broadcast (死 v)\n            go to x: (-201) y: (40)\n        end\n        if <touching (針 v)?> then\n            set [ｙ座標 v] to [0]\n            change [player hp v] by (-20)\n            broadcast (死 v)\n            start sound [ oof v]\n            switch costume to (コスチューム12 v)\n            set rotation style [all around v]\n            set [y v] to [20]\n            change y by (20)\n            repeat until <(y position) < [-178]>\n                turn right (15) degrees\n                create clone of (_myself_ v)\n                change y by (y)\n                change [y v] by (-2)\n            end\n            set rotation style [left-right v]\n            switch costume to (コスチューム3 v)\n        end\n    end\n    if <<(動く) = [1]> and <(音) = [1]>> then\n        set rotation style [left-right v]\n        if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n            change [ｘ座標 v] by (-1)\n            point in direction (-90)\n        end\n        if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n            change [ｘ座標 v] by (1)\n            point in direction (90)\n        end\n        if <<<mouse down?> and <(mouse y) < (y position)>> or <key (down arrow v) pressed?>> then\n            set [ｘ座標 v] to ((ｘ座標) * (1.02))\n            switch costume to (join (コスチューム) [しゃがみ])\n        else\n            switch costume to (join (コスチューム) [プラットフォーマー])\n        end\n        set [ｘ座標 v] to ((ｘ座標) * (0.9))\n        change x by (ｘ座標)\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 ((ｘ座標) * (-1))\n                                change y by (-5)\n                                if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                    if <(ｘ座標) > [0]> then\n                                        set [ｘ座標 v] to [-7]\n                                    else\n                                        set [ｘ座標 v] to [7]\n                                    end\n                                    set [ｙ座標 v] to [10]\n                                else\n                                    set [ｘ座標 v] to [0]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change y by (-1)\n        if <touching (地形 v)?> then\n            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                set [ｙ座標 v] to [15]\n                point in direction ((ｙ座標) * (0.5))\n            end\n        end\n        change y by (1)\n        change [ｙ座標 v] by (-1)\n        change y by (ｙ座標)\n        if <touching (地形 v)?> then\n            change y by ((ｙ座標) * (-1))\n            set [ｙ座標 v] to [0]\n        end\n        hide variable [ｘ座標 v]\n        if <(x position) > [230]> then\n            set [動く v] to [0]\n            broadcast (next level v)\n            change [now v] by (1)\n            set [ｙ座標 v] to [0]\n            set [ｘ座標 v] to [0]\n            go to x: (-201) y: (40)\n        end\n        if <(y position) < [-170]> then\n            broadcast (死 v)\n            go to x: (-201) y: (40)\n        end\n        if <touching (針 v)?> then\n            set [ｙ座標 v] to [0]\n            change [player hp v] by (-20)\n            broadcast (死 v)\n            switch costume to (コスチューム12 v)\n            set rotation style [all around v]\n            set [y v] to [20]\n            change y by (20)\n            repeat until <(y position) < [-178]>\n                turn right (15) degrees\n                create clone of (_myself_ v)\n                change y by (y)\n                change [y v] by (-2)\n            end\n            set rotation style [left-right v]\n            switch costume to (コスチューム3 v)\n        end\n    end\nend\n\nwhen I receive [クローン v]\nforever\n    create clone of (_myself_ v)\nend\n\nwhen I receive [コスチューム v]\nswitch costume to (join (コスチューム) [プラットフォーマー])\n\nswitch costume to (1プラットフォーマー v)\n\nswitch costume to (1しゃがみ v)\n\nset volume to (100) %\n\nwhen I receive [スプレー v]\nhide\nstop [other scripts in sprite v]\n\n@地形\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen flag clicked\n\nwhen I receive [始める v]\nshow\n\nwhen I receive [next level v]\nbroadcast (幕 v)\n\nwhen I receive [ステージ切り替え v]\nset [変数 v] to [0]\nnext costume\n\n@針\n\nwhen I receive [始める v]\nshow\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (50) y: (4)\nhide\ngo to [back v] layer\n\nwhen I receive [next level v]\nbroadcast (幕 v)\n\nwhen I receive [ステージ切り替え v]\nset [変数 v] to [0]\nnext costume\n\n@サムネ\n\nwhen flag clicked\nswitch costume to (cat-a v)\nforever\n    reset timer\n    wait () seconds\n    go to x: (0) y: (0)\n    set [ghost v] effect to (100)\n    go to [front v] layer\n    show\n    go [forward v] (pick random (100000000000000) to (1000000000000000000000)) layers\n    if <(timer) = [0]> then\n        stop [all v]\n    end\nend\n\nwhen I receive [ﾀﾋぬ v]\nswitch costume to (cat-a2 v)\nhide variable [タイム v]\nhide variable [☁ 世界記録（タイム） v]\nstop [all v]\n\n@next\n\ndefine 明るさ ()\nset [brightness v] effect to ()\n\ndefine クローン ()\nset [クローン v] to ()\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(クローン) = [1]> then\n    switch costume to (コスチューム2 v)\n    show\n    go to x: (0) y: (410)\n    repeat (40)\n        change y by (((0) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat (40)\n        change y by (((424) - (y position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [2]> then\n    switch costume to (コスチューム2 v)\n    show\n    go to x: (0) y: (410)\n    repeat (40)\n        change y by (((0) - (y position)) / (6))\n    end\n    wait (3) seconds\n    repeat (40)\n        change y by (((424) - (y position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [3]> then\n    switch costume to (コスチューム3 v)\n    show\n    go to x: (491) y: (0)\n    repeat (40)\n        change x by (((0) - (x position)) / (6))\n    end\n    wait (2.5) seconds\n    repeat (40)\n        change x by (((571) - (x position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [4]> then\n    switch costume to (コスチューム3 v)\n    show\n    go to x: (491) y: (0)\n    repeat (40)\n        change x by (((0) - (x position)) / (6))\n    end\n    wait (2) seconds\n    repeat (40)\n        change x by (((571) - (x position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [5]> then\n    switch costume to (コスチューム4 v)\n    show\n    go to x: (-491) y: (0)\n    repeat (40)\n        change x by (((0) - (x position)) / (6))\n    end\n    wait (1.5) seconds\n    repeat (40)\n        change x by (((-571) - (x position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [6]> then\n    switch costume to (コスチューム4 v)\n    show\n    go to x: (-491) y: (0)\n    repeat (40)\n        change x by (((0) - (x position)) / (6))\n    end\n    wait (1) seconds\n    repeat (40)\n        change x by (((-571) - (x position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(クローン) = [7]> then\n    switch costume to (コスチューム1 v)\n    show\n    go to x: (0) y: (-410)\n    repeat (40)\n        change y by (((0) - (y position)) / (6))\n    end\n    wait (0.2) seconds\n    repeat (40)\n        change y by (((-182) - (y position)) / (6))\n    end\n    delete this clone\nend\n\nwhen I receive [幕 v]\ngo to [front v] layer\ngo [forward v] (1) layers\n明るさ [-100]\nクローン [1]\nwait (0.2) seconds\n明るさ [-70]\nクローン [2]\nwait (0.3) seconds\n明るさ [-50]\nクローン [3]\nwait (0.2) seconds\n明るさ [-20]\nクローン [4]\nwait (0.3) seconds\n明るさ [-10]\nクローン [5]\nwait (0.2) seconds\n明るさ [0]\nクローン [6]\nwait (0.2) seconds\nbroadcast (ステージ切り替え v)\n明るさ [0]\nクローン [7]\nwait (4) seconds\nset [動く v] to [1]\n\n@雲\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nchange [ghost v] effect by (25)\nforever\n    show\n    set size to (pick random (50) to (100)) %\n    set [雲の高さ v] to (pick random (60) to (200))\n    go to x: (288) y: (雲の高さ)\n    glide (pick random (5) to (15)) secs to x: (-348) y: (雲の高さ)\n    delete this clone\nend\n\nwhen I start as a clone\nif <touching (player v)?> then\n    set [brightness v] effect to (-30)\nelse\n    set [brightness v] effect to (0)\nend\n\nwhen I receive [始める v]\ngo to x: (288) y: ()\nforever\n    go to [back v] layer\n    set [ghost v] effect to (20)\n    create clone of (_myself_ v)\n    wait (pick random (2) to (10)) seconds\nend\n\n@←\n\nwhen flag clicked\ngo to x: (-25) y: (-8)\nshow\nset size to (200) %\nswitch costume to (コスチューム1 v)\nset [コスチューム v] to [1]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (コスチューム2 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        change [コスチューム v] by (-1)\n        switch costume to (コスチューム1 v)\n        clear graphic effects\n        if <(コスチューム) = [0]> then\n            set [コスチューム v] to [15]\n        end\n        broadcast (コスチューム v)\n    end\nend\n\nwhen I receive [始める v]\nhide\nstop [other scripts in sprite v]\n\n@→\n\nwhen flag clicked\ngo to x: (170) y: (-8)\nshow\nset size to (200) %\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        switch costume to (コスチューム2 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        change [コスチューム v] by (1)\n        switch costume to (コスチューム1 v)\n        clear graphic effects\n        if <(コスチューム) = [16]> then\n            set [コスチューム v] to [1]\n        end\n        broadcast (コスチューム v)\n    end\nend\n\nwhen I receive [始める v]\nhide\nstop [other scripts in sprite v]\n\n@START\n\nwhen flag clicked\nforever\n    \nend\n\nwhen flag clicked\ngo to x: (-141) y: (104)\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        start sound [ポップ v]\n        repeat (5)\n            change size by (-1)\n        end\n        broadcast (始める v)\n        hide\n        stop [this script v]\n    end\nend\n\n@collar\n\nwhen flag clicked\nshow\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        repeat (5)\n            change size by (-1)\n        end\n        set [音 v] to [1]\n        start sound [ポップ v]\n        broadcast (collar2 v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [始める v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [collar2 v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        repeat (5)\n            change size by (-1)\n        end\n        start sound [ポップ v]\n        set [音 v] to [0]\n        broadcast (あ v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [あ v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        repeat (5)\n            change size by (-1)\n        end\n        set [音 v] to [1]\n        start sound [ポップ v]\n        broadcast (collar2 v)\n        stop [this script v]\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nset [player hp v] to [100]\ngo to x: (-165) y: (-80)\nshow\nswitch costume to (コスチューム1 v)\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        start sound [ポップ v]\n        repeat (5)\n            change size by (-1)\n        end\n        broadcast (あ v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [い v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        start sound [ポップ v]\n        broadcast (あ v)\n        repeat (5)\n            change size by (-1)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [あ v]\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set size to (105) %\n        switch costume to (コスチューム1 v)\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        start sound [ポップ v]\n        repeat (5)\n            change size by (-1)\n        end\n        broadcast (い v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [始める v]\nhide\nstop [other scripts in sprite v]\n\n@タイマー\n\nwhen flag clicked\nhide variable [☁ 世界記録（タイム） v]\nhide variable [タイム v]\n\nwhen I receive [始める v]\nshow variable [☁ 世界記録（タイム） v]\nshow variable [タイム v]\nset [タイム v] to [0]\nforever\n    if <<[31] > ([costume name v] of [地形 v])> or <[31] = ([costume name v] of [地形 v])>> then\n        if <(動く) = [0]> then\n            hide variable [☁ 世界記録（タイム） v]\n            hide variable [タイム v]\n        else\n            change [タイム v] by (1)\n            show variable [☁ 世界記録（タイム） v]\n            show variable [タイム v]\n            wait (1) seconds\n        end\n    end\n    if <([costume name v] of [地形 v]) = [31]> then\n        show\n        if <(☁ 世界記録（タイム）) > (タイム)> then\n            set [☁ 世界記録（タイム） v] to (タイム)\n        end\n    end\nend\n\nhide\n\nhide variable [☁ 世界記録（タイム） v]\n\n@HPバー\n\nwhen flag clicked\nhide\n\nwhen I receive [あ v]\nshow\nforever\n    if <(Player HP) = [100]> then\n        switch costume to (100 v)\n    end\n    if <(Player HP) = [80]> then\n        switch costume to (80 v)\n    end\n    if <(Player HP) = [60]> then\n        switch costume to (60 v)\n    end\n    if <(Player HP) = [40]> then\n        switch costume to (40 v)\n    end\n    if <(Player HP) = [20]> then\n        switch costume to (20 v)\n    end\n    if <(Player HP) = [0]> then\n        switch costume to (100 v)\n        broadcast (ﾀﾋぬ v)\n    end\nend\n\nbroadcast (Start v)\n\nwhen I receive [あ v]\nforever\n    go to x: ([x position v] of [プラットフォーマー v]) y: (([y position v] of [プラットフォーマー v]) - (-40))\nend\n\nwhen I receive [い v]\nhide\nstop [other scripts in sprite v]\n\n@スプライト2\n\nwhen flag clicked\nshow\n\nwhen I receive [始める v]\nhide\nstop [other scripts in sprite v]\n\n
さいきょーゆー\n日本語は↓\nEnglishーーーーーーーーーーーーーーーーーーーー\nnew platformer\nhttps://scratch.mit.edu/projects/758063959/\nprevious platformer\nhttps://scratch.mit.edu/projects/750225322/\nUsage\nsurgery\n・Arrow keys\n・Mouse pointer and click\n・Touch (mobile)\n≪How to proceed≫\ngo right\n≪Needle, magma≫\nIf you touch it, it will turn ○.\n日本語ーーーーーーーーーーーーーーーーーーーー\n新作プラットフォーマー↓\nhttps://scratch.mit.edu/projects/758063959/\n前回のプラットフォーマー↓\nhttps://scratch.mit.edu/projects/750225322/\n操作\n・矢印キー\n・マウスポインター＆クリック\n・タッチ（モバイル）\n≪進み方≫\n右に進んでいきます\n≪針,マグマ≫\n触れると〇にます