[Platformer]Scratch!

Instructions: 日本語の説明は下へ\n\nnazokoubou's first platformer!\nMove with arrow keys and taps to aim for the goal!\nBig jump in the spring. Don't hit magma or tosses.\n第2弾→ https://scratch.mit.edu/projects/467611275/\n\nnazokoubou初のプラットフォーマー！\n矢印キー・タップ操作で動かしてゴールを目指せ！\nばねで大ジャンプ。マグマやトゲに当たってはいけない

@Stage\n\nwhen flag clicked\nforever\n    play sound [bgm v] until done\nend\n\n@ばね\n\nwhen backdrop switches to [背景1 v]\nhide\n\nwhen backdrop switches to [背景5 v]\nswitch costume to (コスチューム2 v)\ngo to x: (0) y: (-112)\nshow\n\nwhen backdrop switches to [背景6 v]\nhide\n\nwhen backdrop switches to [背景7 v]\nswitch costume to (コスチューム1 v)\ngo to x: (-109) y: (-112)\nshow\n\nwhen I receive [次へ v]\nhide\n\nwhen backdrop switches to [背景10 v]\nswitch costume to (コスチューム1 v)\ngo to x: (-110) y: (-112)\nshow\n\nwhen backdrop switches to [背景11 v]\nswitch costume to (コスチューム1 v)\ngo to x: (-140) y: (-112)\nshow\n\n@とげ\n\nwhen backdrop switches to [背景1 v]\nhide\n\nwhen backdrop switches to [背景3 v]\nhide\n\nwhen backdrop switches to [背景4 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム4 v)\nshow\n\nwhen backdrop switches to [背景5 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム5 v)\nshow\n\nwhen I receive [効果 v]\nif <(backdrop [number v]) = [5]> then\n    hide\nend\n\nwhen I receive [棘を v]\ngo to x: (110) y: (-20)\nswitch costume to (コスチューム3 v)\nshow\ngo to x: (110) y: (-20)\n\nwhen backdrop switches to [背景6 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム6 v)\nshow\n\nwhen backdrop switches to [背景7 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム7 v)\nshow\n\nwhen backdrop switches to [背景8 v]\nhide\n\nwhen backdrop switches to [背景9 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム1 v)\nshow\n\nwhen backdrop switches to [背景10 v]\ngo to x: (0) y: (-10)\nswitch costume to (コスチューム8 v)\nshow\n\nwhen backdrop switches to [背景11 v]\ngo to x: (0) y: (-110)\nswitch costume to (コスチューム9 v)\nshow\nhide list [進め/advanced v]\ndelete all of [進め/advanced v]\nadd [＼＿／　＼＿／　＼＿／] to [進め/advanced v]\nadd [　　　　＼＿／　＼＿／] to [進め/advanced v]\nadd [　　　　　　　　＼＿／] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [] to [進め/advanced v]\nadd [　　　　　　　　／￣＼] to [進め/advanced v]\nadd [　　　　／￣＼　／￣＼] to [進め/advanced v]\nadd [／￣＼　／￣＼　／￣＼] to [進め/advanced v]\n\nwhen flag clicked\nshow list [進め/advanced v]\n\nwhen I receive [次へ v]\nshow list [進め/advanced v]\n\nwhen backdrop switches to [背景12 v]\ngo to x: (0) y: (-10)\nswitch costume to (コスチューム10 v)\nshow\n\nwhen backdrop switches to [背景13 v]\nhide\n\n@主人公\n\nwhen flag clicked\nset size to (40) %\nset [止まる？ v] to [0]\nset rotation style [left-right v]\nswitch costume to (コスチューム1 v)\ngo to x: (-225) y: (-56)\npoint in direction (90)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<mouse down?> and <(mouse x) > (x position)>> or <key (right arrow v) pressed?>> then\n        point in direction (90)\n        change [x v] by (1)\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        point in direction (-90)\n        change [x v] by (-1)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n        change y by (1)\n        if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n            change y by (1)\n            if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n                change y by (1)\n                if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n                    change y by (1)\n                    if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n                        change y by (1)\n                        if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n                            change x by ((x) * (-1))\n                            change y by (-3)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                if <(x) > [0]> then\n                                    set [x v] to [-5]\n                                else\n                                    set [x v] to [5]\n                                end\n                                set [y v] to [12.5]\n                            else\n                                set [x v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [y v] by (-1)\n    change y by (y)\n    if <<touching (地面 v)?> or <touching (地面2 v)?>> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>> then\n            set [y v] to [12.5]\n        end\n    end\n    if <(x position) > [238]> then\n        broadcast (次へ v)\n        go to x: (-225) y: (-56)\n        set [y v] to [0]\n        set [x v] to [0]\n    end\n    if <<[-179] > (y position)> or <touching (とげ v)?>> then\n        go to x: (-225) y: (-56)\n        set [とげ？ v] to [1]\n        broadcast (戻される v)\n        set [とげ？ v] to [0]\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nforever\n    if <touching (ばね v)?> then\n        set [y v] to [20]\n    end\nend\n\nwhen flag clicked\nclear graphic effects\ngo to [front v] layer\nswitch backdrop to (背景1 v)\ngo [backward v] (0) layers\nhide variable [x v]\nhide variable [y v]\nhide variable [止まる？ v]\nhide variable [めも v]\nhide variable [ステージ v]\nhide variable [変数 v]\n\nwhen I receive [次へ v]\nhide\nset [ghost v] effect to (100)\nshow\nwait (1.5) seconds\nmove (-120) steps\nclear graphic effects\n\nwhen I receive [効果 v]\nif <(backdrop [number v]) = [2]> then\n    go to x: (150) y: (-36)\nend\nif <(backdrop [number v]) = [3]> then\n    set size to (20) %\nend\nif <(backdrop [number v]) = [4]> then\n    start sound [ニャー v]\nend\n\nwhen backdrop switches to [背景4 v]\nset size to (40) %\n\nwhen I receive [戻される v]\ngo to x: (-225) y: (-56)\n\nwhen backdrop switches to [背景10 v]\nshow variable [数字1 v]\nshow variable [数字2 v]\nshow variable [ステージ v]\nshow variable [止まる？ v]\nshow variable [めも v]\nshow variable [へんすー v]\nshow variable [へんすー？ v]\nset [数字1 v] to [変数だけの世界だ。トゲとかが見えなくなってもあきらめないで!!]\nset [数字2 v] to [It's just a world of variables.Don't give up even if you can't see the top]\nset [ステージ v] to [！！]\nset [めも v] to [！！]\nset [止まる？ v] to [ここはマグマ。当たらないように。／This is magma. Don't hit me]\nset [へんすー v] to [jump!]\nset [へんすー？ v] to [jump!]\n\nwhen flag clicked\nhide variable [数字1 v]\nhide variable [数字2 v]\nhide variable [ステージ v]\nhide variable [止まる？ v]\nhide variable [へんすー v]\nhide variable [へんすー？ v]\n\nwhen I receive [次へ v]\nhide variable [数字1 v]\nhide variable [数字2 v]\nhide variable [ステージ v]\nhide variable [止まる？ v]\nhide variable [めも v]\nhide variable [へんすー v]\nhide variable [へんすー？ v]\n\nwhen flag clicked\nshow variable [タイマー v]\nhide variable [☁ 世界記録 v]\nreset timer\nset [タイマー v] to [0]\nset [次へ？ v] to [0]\nforever\n    if <(次へ？) = [0]> then\n        if <not <(backdrop [number v]) = [9]>> then\n            change [タイマー v] by (0.05)\n            wait (0.05) seconds\n        end\n    end\nend\n\nwhen backdrop switches to [背景13 v]\nshow variable [☁ 世界記録 v]\nset [次へ？ v] to [2]\nif <(タイマー) < (☁ 世界記録)> then\n    set [☁ 世界記録 v] to (タイマー)\n    set [タイマー v] to [世界記録更新！]\nend\nif <not <(タイマー) = [世界記録更新！]>> then\n    set [タイマー v] to []\nend\n\n@地面\n\nwhen flag clicked\nforever\n    switch costume to (backdrop [number v])\nend\n\n@次へ\n\nwhen I receive [次へ v]\nset [次へ？ v] to [1]\nshow\nswitch costume to (backdrop [number v])\ngo to x: (-600) y: (0)\nglide (0.1) secs to x: (0) y: (0)\nglide (1) secs to x: (10) y: (0)\nglide (0.1) secs to x: (600) y: (0)\nhide\nnext backdrop\nif <(backdrop [number v]) = [2]> then\n    broadcast (棘を v)\nend\nset [次へ？ v] to [0]\n\nwhen flag clicked\nhide\n\n@ブロック\n\nwhen backdrop switches to [背景2 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (150歩動かす v)\nelse\n    switch costume to (move 150 steps v)\nend\ngo to x: (50) y: (-35)\nwait until <touching (主人公 v)?>\nbroadcast (効果 v)\nhide\n\nwhen flag clicked\nset size to (110) %\nhide\n\nwhen backdrop switches to [背景3 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (大きさを20%にする v)\nelse\n    switch costume to (set size to 20% v)\nend\ngo to x: (-160) y: (-15)\nwait until <touching (主人公 v)?>\nbroadcast (効果 v)\nhide\n\nwhen backdrop switches to [背景4 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (音を鳴らす v)\nelse\n    switch costume to (start sound v)\nend\ngo to x: (0) y: (-30)\nwait until <touching (主人公 v)?>\nbroadcast (効果 v)\nhide\n\nwhen backdrop switches to [背景5 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (このスプライトが v)\nelse\n    switch costume to (when this sprite clicked v)\nend\ngo to x: (95) y: (147)\nwait until <touching (主人公 v)?>\nbroadcast (効果 v)\nhide\n\nwhen backdrop switches to [背景6 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (1秒待つ v)\nelse\n    switch costume to (wait 1 seconds v)\nend\ngo to x: (0) y: (0)\nset size to (150) %\n\nwhen I receive [次へ v]\nhide\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [背景7 v]\nshow\nif <(language::translate) = [日本語]> then\n    switch costume to (タイマー v)\nelse\n    switch costume to (timer v)\nend\ngo to x: (-211) y: (11)\nset size to (150) %\nforever\n    set [カウント v] to [5]\n    repeat (5)\n        say (カウント) for (1) seconds\n        change [カウント v] by (-1)\n    end\n    broadcast (戻される v)\nend\n\nwhen backdrop switches to [背景8 v]\nshow\ngo to [back v] layer\nswitch costume to (○+○ v)\ngo to x: (0) y: (43)\nset size to (350) %\n\nwhen I receive [戻される v]\nif <(とげ？) = [0]> then\n    if <<(costume [number v]) = [11]> or <(costume [number v]) = [12]>> then\n        stop [other scripts in sprite v]\n        forever\n            set [カウント v] to [5]\n            repeat (5)\n                say (カウント) for (1) seconds\n                change [カウント v] by (-1)\n            end\n            broadcast (戻される v)\n        end\n    else\n        if <(backdrop [number v]) = [2]> then\n            show\n            wait until <touching (主人公 v)?>\n            broadcast (効果 v)\n            hide\n        end\n    end\nend\n\n@地面2\n\nwhen backdrop switches to [背景6 v]\nhide\nswitch costume to (コスチューム1 v)\ngo to x: (-150) y: (100)\npoint in direction (90)\nrepeat (3)\n    create clone of (_myself_ v)\n    move (125) steps\n    wait (0.2) seconds\nend\n\nwhen flag clicked\nhide\nbroadcast (削除 v)\n\nwhen I receive [削除 v]\ndelete this clone\n\nwhen I start as a clone\nif <(backdrop [number v]) = [6]> then\n    show\n    forever\n        repeat (40)\n            change y by (-5)\n            if <touching (ブロック v)?> then\n                wait (1) seconds\n                repeat (12)\n                    change y by (-5)\n                end\n            end\n        end\n        repeat (40)\n            change y by (5)\n            if <touching (ブロック v)?> then\n                wait (1) seconds\n                repeat (12)\n                    change y by (5)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [次へ v]\nbroadcast (削除 v)\nhide\nstop [other scripts in sprite v]\n\nwhen backdrop switches to [背景12 v]\nbroadcast (削除 v)\nwait (1) seconds\nhide\nswitch costume to (コスチューム2 v)\ngo to x: (-120) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム3 v)\ngo to x: (-50) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム4 v)\ngo to x: (8) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム5 v)\ngo to x: (40) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム6 v)\ngo to x: (70) y: (240)\ncreate clone of (_myself_ v)\nwait (1) seconds\nhide\nswitch costume to (コスチューム7 v)\ngo to x: (120) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム8 v)\ngo to x: (160) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\nwait (1) seconds\nhide\nswitch costume to (コスチューム9 v)\ngo to x: (200) y: (240)\ncreate clone of (_myself_ v)\npoint in direction (70)\n\nwhen I start as a clone\nif <(backdrop [number v]) = [12]> then\n    show\n    repeat until <touching (とげ v)?>\n        change y by (-5)\n        if <touching (地面2 v)?> then\n            repeat until <not <touching (地面2 v)?>>\n                turn right (2) degrees\n            end\n        end\n    end\nend\n\n@すーじ\n\nwhen backdrop switches to [背景8 v]\nshow\ngo to x: (-40) y: (43)\nforever\n    set [数字1 v] to (pick random (1) to (9))\n    switch costume to (数字1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [次へ v]\nhide\n\nwhen I receive [効果 v]\nstop [other scripts in sprite v]\n\n@すーじ2\n\nwhen backdrop switches to [背景8 v]\nshow\ngo to x: (46) y: (43)\nforever\n    set [数字2 v] to (pick random (1) to (9))\n    switch costume to (数字2)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [次へ v]\nhide\n\nwhen I receive [効果 v]\nstop [other scripts in sprite v]\n\n@通れる壁\n\nwhen I receive [次へ v]\nhide\n\nwhen backdrop switches to [背景8 v]\ngo to x: (0) y: (-20)\nshow\nswitch costume to (コスチューム1 v)\nwait until <touching (主人公 v)?>\nbroadcast (効果 v)\nhide\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [背景9 v]\ngo to x: (200) y: (-20)\nshow\nswitch costume to (コスチューム2 v)\nforever\n    wait until <touching (主人公 v)?>\n    if <(([costume name v] of [すーじ v]) + ([costume name v] of [すーじ2 v])) = (join ([costume name v] of [ボタン v]) ([costume name v] of [ボタン2 v]))> then\n        hide\n        stop [this script v]\n    else\n        broadcast (戻される v)\n    end\nend\n\n@ボタン\n\nwhen backdrop switches to [背景9 v]\ngo to x: (-75) y: (75)\nswitch costume to (0 v)\nshow\nforever\n    if <touching (主人公 v)?> then\n        next costume\n        wait until <not <touching (主人公 v)?>>\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [次へ v]\nhide\nstop [other scripts in sprite v]\n\n@ボタン2\n\nwhen backdrop switches to [背景9 v]\ngo to x: (90) y: (75)\nswitch costume to (0 v)\nshow\nforever\n    if <touching (主人公 v)?> then\n        next costume\n        wait until <not <touching (主人公 v)?>>\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [次へ v]\nhide\nstop [other scripts in sprite v]\n\n@サムネ\n\nwhen flag clicked\nhide\n\n