hedgehog platformer! ハリネズミプラットフォーマー！
@Stage\n\nwhen I receive [メッセージ1 v]\nstop all sounds\nclear graphic effects\nswitch backdrop to (背景2 v)\n\n    play sound [Water v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (背景3 v)\nplay sound [ロウワー \(1\) v] until done\n\nwhen I receive [メッセージ1 v]\nforever\n    if <<(ステージ) = [8]> or <<(ステージ) = [9]> or <<(ステージ) = [10]> or <<(ステージ) = [11]> or <(ステージ) = [12]>>>>> then\n        switch backdrop to (背景1 v)\n    else\n        switch backdrop to (背景2 v)\n    end\nend\n\n@ステージ\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen I receive [メッセージ1 v]\nshow\n\n@スプライト1\n\ndefine 初期位置\nset [y v] to [0]\nset size to (50) %\nif <(ステージ) = [15]> then\n    go to x: (-216) y: (0)\nelse\n    go to x: (-216) y: (-50)\nend\nset [x v] to [0]\nset rotation style [all around v]\npoint in direction (90)\nshow\n\nwhen I start as a clone\nset [ghost v] effect to (30)\nset [x2 v] to (x position)\nset [y2 v] to (y position)\ngo to x: (x2) y: (y2)\nrepeat (10)\n    change [ghost v] effect by (7)\n    wait (0.0001) seconds\n    change size by (-7)\nend\ndelete this clone\n\nwhen flag clicked\nwait (1) seconds\nforever\n    if <(ステージ) = [18]> then\n        play sound [Win v] until done\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (right arrow v) pressed?> then\n        switch costume to (hedgehog-d v)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (left arrow v) pressed?> then\n        switch costume to (hedgehog-d v)\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or <key (space v) pressed?>> then\n        create clone of (_myself_ v)\n        wait (0.01) seconds\n    end\nend\n\nwhen flag clicked\nset [time v] to [0]\n\nwhen I receive [メッセージ1 v]\n初期位置\nset size to (50) %\nset [ステージ v] to [1]\nforever\n    if <<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> then\n        change [x v] by (1.75)\n        change [角度 v] by (15)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        change [x v] by (-1.75)\n        change [角度 v] by (-15)\n    end\n    set [x v] to ((x) * (0.8))\n    set [角度 v] to ((x) * (0.8))\n    change x by (x)\n    turn right (角度) degrees\n    switch costume to (hedgehog-d v)\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 (-5)\n                            if <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>> then\n                                start sound [Coin v]\n                                if <(x) > [0]> then\n                                    set [x v] to [-15]\n                                else\n                                    set [x v] to [15]\n                                end\n                                set [y v] to [14.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)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ステージ v)?> and <<key (up arrow v) pressed?> or <<key (space v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> then\n        start sound [Jump v]\n        set [y v] to [0]\n        change [y v] by (14)\n    end\n    change y by (1)\n    if <<touching (とげ、マグマ v)?> or <(y position) < [-175]>> then\n        wait (0.05) seconds\n        start sound [Oops v]\n        初期位置\n    end\n    if <not <(ステージ) = [18]>> then\n        if <(x position) > [230]> then\n            change [ステージ v] by (1)\n            wait (0.05) seconds\n            初期位置\n        end\n    end\n    if <touching (じゃんぷ v)?> then\n        set [y v] to [0]\n        start sound [Jump v]\n        change [y v] by (24)\n    end\nend\n\nwhen I receive [メッセージ1 v]\nshow variable [time v]\nshow variable [☁ world record v]\nrepeat until <(ステージ) = [18]>\n    change [time v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [メッセージ1 v]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen flag clicked\nhide variable [time v]\nhide variable [☁ world record v]\n\nwhen flag clicked\nforever\n    if <(ステージ) = [18]> then\n        if <(TIME) < (☁ World Record)> then\n            set [☁ world record v] to (TIME)\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nforever\n    set [x3 v] to (x position)\n    set [y3 v] to (y position)\nend\n\n@とげ、マグマ\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\n@スプライト2\n\n@スプライト4\n\nwhen I receive [メッセージ1 v]\nshow\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset size to (110) %\n\nwhen flag clicked\nforever\n    repeat (6)\n        change size by (5)\n        wait (0.1) seconds\n    end\n    repeat (6)\n        change size by (-5)\n        wait (0.1) seconds\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <<(ステージ) = [8]> or <<(ステージ) = [9]> or <<(ステージ) = [10]> or <<(ステージ) = [11]> or <(ステージ) = [12]>>>>> then\n        hide\n    else\n        show\n    end\nend\n\n@Tree1\n\nwhen I receive [メッセージ1 v]\nshow\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide\n\n@素材\n\ndefine 震\nset [c v] to [0]\npoint in direction (-90)\nrepeat (46)\n    set [c v] to (((c) * (0.75)) + (((90) - (direction)) * (0.3)))\n    turn right (c) degrees\nend\n\ndefine y (y)\nrepeat until <(round (y position)) = (y)>\n    change y by (((y) - (y position)) / (3))\nend\n\ndefine x (x)\nrepeat until <(round (x position)) = (x)>\n    change x by (((2) - (x position)) / (2))\nend\n\ndefine 大’’’’’ (大’’’’’)\nrepeat until <(round (size)) = (大’’’’’)>\n    switch costume to (コスチューム2 v)\n    change size by (((大’’’’’) - (size)) / (5))\n    switch costume to (コスチューム3 v)\nend\n\nwhen flag clicked\nset size to (100) %\nhide\nif <[イントロ v] contains (username)?> then\n    broadcast (メッセージ1 v)\nelse\n    wait (0.01) seconds\n    set [a v] to [0]\n    create clone of (_myself_ v)\n    set [a v] to [1]\n    create clone of (_myself_ v)\n    set [a v] to [2]\n    create clone of (_myself_ v)\n    set [a v] to [3]\n    create clone of (_myself_ v)\n    set [a v] to [4]\n    create clone of (_myself_ v)\n    set [a v] to [5]\n    create clone of (_myself_ v)\n    set [a v] to [6]\n    create clone of (_myself_ v)\n    set [a v] to [7]\n    create clone of (_myself_ v)\n    set [a v] to [8]\n    create clone of (_myself_ v)\n    set [a v] to [9]\n    create clone of (_myself_ v)\n    set [a v] to [10]\n    create clone of (_myself_ v)\n    set [a v] to [11]\n    create clone of (_myself_ v)\n    set [a v] to [12]\n    create clone of (_myself_ v)\n    set [a v] to [13]\n    create clone of (_myself_ v)\n    set [a v] to [14]\n    create clone of (_myself_ v)\n    set [a v] to [15]\n    create clone of (_myself_ v)\n    set [a v] to [16]\n    create clone of (_myself_ v)\n    set [a v] to [17]\n    create clone of (_myself_ v)\n    set [a v] to [18]\n    create clone of (_myself_ v)\n    set [a v] to [19]\n    create clone of (_myself_ v)\n    set [a v] to [20]\n    create clone of (_myself_ v)\n    set [a v] to [21]\n    create clone of (_myself_ v)\n    set [a v] to [22]\n    create clone of (_myself_ v)\n    set [a v] to [23]\n    create clone of (_myself_ v)\n    set [a v] to [24]\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(a) = [1]> then\n    switch costume to (コスチューム1 v)\n    go to x: (-130) y: (110)\n    set size to (4) %\n    show\n    大’ [250]\nend\nwait (0.1) seconds\nif <(a) = [2]> then\n    switch costume to (コスチューム1 v)\n    go to x: (130) y: (-110)\n    set size to (4) %\n    show\n    大’ [250]\nend\nwait (0.1) seconds\nif <(a) = [3]> then\n    go to x: (0) y: (0)\n    switch costume to (新アイコン v)\n    set size to (4) %\n    show\n    大’’ [250]\nend\nwait (1) seconds\nif <(a) = [4]> then\n    go to x: (0) y: (345)\n    switch costume to (コスチューム13 v)\n    clear graphic effects\n    set [ghost v] effect to (10)\n    show\n    -y [0]\n    wait (0.7) seconds\n    hide\nend\nwait (0.1) seconds\nif <(a) = [5]> then\n    go to x: (0) y: (345)\n    switch costume to (コスチューム14 v)\n    set [ghost v] effect to (10)\n    show\n    -y [0]\n    wait (0.6) seconds\n    hide\nend\nwait (0.1) seconds\nif <(a) = [6]> then\n    go to x: (0) y: (345)\n    switch costume to (コスチューム15 v)\n    set [ghost v] effect to (10)\n    show\n    -y [0]\n    wait (0.5) seconds\n    hide\nend\nwait (0.2) seconds\nwait (0.1) seconds\nif <(a) = [8]> then\n    wait (1.5) seconds\n    go to x: (0) y: (30)\n    switch costume to (コスチューム7 v)\n    set [ghost v] effect to (50)\n    show\n    -y [-255]\n    wait (0.25) seconds\n    -y [255]\n    hide\n    delete this clone\nend\nif <(a) = [9]> then\n    wait (1.5) seconds\n    go to x: (0) y: (-30)\n    switch costume to (コスチューム8 v)\n    set [ghost v] effect to (50)\n    show\n    -y [255]\n    wait (0.25) seconds\n    -y [-255]\n    hide\n    delete this clone\nend\nwait (1.5) seconds\nif <(a) = [10]> then\n    go to x: (0) y: (0)\n    switch costume to (コスチューム9 v)\n    set size to (13) %\n    show\n    set [ghost v] effect to (20)\n    大’’’’ [2500]\n    wait (0.01) seconds\n    大’’’’ [1700]\n    大’’’’ [2500]\n    wait (2) seconds\n    大’’’’ [1700]\n    大’’’’ [2500]\n    delete this clone\nend\nif <(a) = [11]> then\n    go to x: (0) y: (0)\n    go to [back v] layer\n    switch costume to (コスチューム10 v)\n    set size to (100) %\n    show\n    set [ghost v] effect to (50)\n    repeat (125)\n        turn right (2) degrees\n        wait (0.01) seconds\n    end\n    delete this clone\nend\nwait (1.5) seconds\nif <(a) = [12]> then\n    go to x: (0) y: (-258)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (コスチューム11 v)\n    set size to (100) %\n    show\n    set [ghost v] effect to (0)\n    -y [257]\n    wait (0.5) seconds\n    -y [-257]\n    hide\nend\nif <(a) = [13]> then\n    go to x: (0) y: (255)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (コスチューム12 v)\n    set size to (100) %\n    show\n    set [ghost v] effect to (0)\n    -y [-255]\n    wait (0.5) seconds\n    -y [255]\n    hide\nend\nwait (2.) seconds\nif <(a) = [18]> then\n    go to x: (0) y: (201)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (コスチューム16 v)\n    set size to (100) %\n    set [ghost v] effect to (30)\n    show\n    -y [0]\n    wait (0.5) seconds\n    -y [201]\n    hide\nend\nif <(a) = [19]> then\n    go to x: (0) y: (-201)\n    go to [back v] layer\n    go [forward v] (1) layers\n    switch costume to (コスチューム17 v)\n    set size to (100) %\n    show\n    set [ghost v] effect to (30)\n    -y [0]\n    wait (1.) seconds\n    -y [-215]\n    hide\nend\nwait (0.7) seconds\nif <(a) = [15]> then\n    go to x: (0) y: (0)\n    switch costume to (コスチューム3 v)\n    set size to (13) %\n    go to [back v] layer\n    show\n    set [ghost v] effect to (30)\n    大’’’’’ [3000]\n    set size to (13) %\n    set [ghost v] effect to (50)\n    大’’’’’ [3000]\n    set size to (13) %\n    set [ghost v] effect to (65)\n    大’’’’’ [3000]\nend\nwait (3.5) seconds\nif <(a) = [16]> then\n    go to x: (0) y: (0)\n    go to [front v] layer\n    switch costume to (コスチューム4 v)\n    set size to (10) %\n    show\n    終 [1250]\nend\ndelete this clone\n\ndefine 大’ (大’)\nrepeat until <(round (size)) = (大’)>\n    switch costume to (コスチューム2 v)\n    change size by (((大’) - (size)) / (5))\n    switch costume to (コスチューム1 v)\nend\n\ndefine 回\npoint in direction (90)\nturn right (1) degrees\nrepeat (30)\n    turn right ([abs v] of (((90) - (direction)) / (2)) ) degrees\nend\n\ndefine 大’’ (大’’)\nrepeat until <(round (size)) = (大’’)>\n    switch costume to (コスチューム2 v)\n    change size by (((大’’) - (size)) / (5))\n    switch costume to (新アイコン v)\nend\n\n震\nhide\n\ndefine 大’’’ (大’’’)\nrepeat until <(round (size)) = (大’’’)>\n    switch costume to (コスチューム2 v)\n    change size by (((大’’’) - (size)) / (5))\n    switch costume to (コスチューム6 v)\nend\n\ndefine 大’’’’ (大’’’’)\nrepeat until <(round (size)) = (大’’’’)>\n    switch costume to (コスチューム2 v)\n    change size by (((大’’’’) - (size)) / (5))\n    switch costume to (コスチューム9 v)\nend\n\ndefine a (a)\nrepeat until <(round (size)) = (a)>\n    switch costume to (コスチューム2 v)\n    change size by (((a) - (size)) / (5))\n    switch costume to (コスチューム6 v)\nend\n\nwhen I start as a clone\nif <(a) = [1]> then\n    set [ghost v] effect to (50)\n    forever\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\nif <(a) = [2]> then\n    set [ghost v] effect to (50)\n    forever\n        turn right (1) degrees\n        wait (0.01) seconds\n    end\nend\nif <(a) = [3]> then\n    wait (3.35) seconds\n    震\n    震\n    wait (0.25) seconds\n    震\n    wait (0.25) seconds\n    回\n    回\n    wait (0.1) seconds\n    震\nend\n\n大’’’ [100]\n\nwhen I start as a clone\nwait (8.5) seconds\nif <(a) = [1]> then\n    y [210]\n    y [10]\n    y [110]\nend\nif <(a) = [2]> then\n    y [-10]\n    y [-210]\n    y [-110]\nend\nif <(a) = [3]> then\n    y [100]\n    y [-100]\n    y [0]\nend\nif <(a) = [10]> then\n    wait (0.01) seconds\n    y [-30]\n    wait (0.01) seconds\n    y [30]\n    wait (0.1) seconds\n    y [0]\nend\nif <(a) = [11]> then\n    y [100]\n    y [-100]\n    y [0]\nend\n\ndefine -y (-y)\nrepeat until <(round (y position)) = (-y)>\n    change y by (((-y) - (y position)) / (7))\nend\n\ndefine 終 (終)\nrepeat until <(round (size)) = (終)>\n    switch costume to (コスチューム2 v)\n    change size by (((終) - (size)) / (6))\n    switch costume to (コスチューム4 v)\nend\n\nwait (0.5) seconds\n-y [258]\n\nwhen flag clicked\nwait (13) seconds\nadd (username) to [イントロ v]\nbroadcast (メッセージ1 v)\ndelete this clone\n\nwhen I receive [メッセージ1 v]\nstop [other scripts in sprite v]\n\ndelete all of [イントロ v]\n\n@スプライト3\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (0) y: (0)\nforever\n    change [turbo v] by (1)\nend\n\nwhen flag clicked\nforever\n    set [turbo v] to [0]\n    wait (0.001) seconds\n    if <[3] < (Turbo)> then\n        show\n        go to [front v] layer\n        stop [all v]\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\n@スプライト5\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nshow\n\n
English\nThanks for playing this game!\n\n↑→←key and space key or tap\n\ndon't hit the thorn.\n\ndon't fall…！\n日本語\nこのゲームをプレイしてくれてありがとぉ～！\n\n↑→←キースペースキー（ジャンプ）かタップ\n\n棘に当たっちゃダメ！\n\n落ちてもダメ!