傾向1位!! Minecraft platformer / マインクラフト　プラットフォーマー
@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nset [brightness v] effect to (-20)\n\nwhen I receive [メッセージ1 v]\nforever\n    play sound (pick random (1) to (3)) until done\nend\n\nwhen I receive [夜 v]\nswitch backdrop to (背景2 v)\n\n@スプライト\n\nwhen flag clicked\nset [経験値 v] to [0]\n\n@キャラ\n\ndefine 動き\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <<<(x position) < (mouse x)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n    point in direction (90)\n    change [x v] by (1)\nend\nif <<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n    point in direction (-90)\n    change [x v] by (-1)\nend\nset [x v] to ((x) * (.92))\nchange x by (x)\nrepeat (6)\n    change y by ((1) * <touching (地面 v)?>)\nend\nif <touching (地面 v)?> then\n    change y by (-5)\n    地面x (([ceiling v] of ([abs v] of (x) ) ) + (1)) ((-1) * ((x) / ([abs v] of (x) )))\nend\nchange y by (y)\nif <touching (地面 v)?> then\n    地面y (([ceiling v] of ([abs v] of (y) ) ) + (1)) ((-1) * ((y) / ([abs v] of (y) )))\nend\nchange y by (-1)\nif <touching (地面 v)?> then\n    if <<<((y position) + (5)) < (mouse y)> and <mouse down?>> or <key (up arrow v) pressed?>> then\n        repeat (pick random (5) to (12))\n            create clone of (チラチラ2 v)\n        end\n        start sound [可愛いジャンプ v]\n        set [y v] to [15]\n    end\nend\nchange y by (1)\n\ndefine 地面x (回数) (力)\nset [k v] to [0]\nrepeat until <<not <touching (地面 v)?>> or <(k) = (回数)>>\n    change [k v] by (1)\n    change x by (力)\nend\nif <<<((y position) + (5)) < (mouse y)> and <mouse down?>> or <key (up arrow v) pressed?>> then\n    repeat (5)\n        create clone of (チラチラ3 v)\n    end\n    if <[0] < (x)> then\n        start sound [壁キック v]\n        set [x v] to [-7]\n        set [y v] to [10]\n    else\n        start sound [壁キック v]\n        set [x v] to [7]\n        set [y v] to [10]\n    end\nelse\n    set [x v] to [0]\nend\n\ndefine 地面y (回数) (力)\nset [k v] to [0]\nrepeat until <<not <touching (地面 v)?>> or <(k) = (回数)>>\n    change [k v] by (1)\n    change y by (力)\n    set [y v] to [0]\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\npoint in direction (90)\nswitch costume to (スティーブ1 v)\nset size to (320) %\ngo to x: (-199) y: (-27)\nshow\nset [y v] to [0]\nset [x v] to [0]\nforever\n    動き\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <[243] < (x position)> then\n        hide\n        broadcast (次 v)\n        repeat until <not <[243] < (x position)>>\n            set x to (244)\n            set [x v] to [0]\n            set [y v] to [0]\n        end\n    end\nend\n\nwhen I receive [初め v]\nswitch costume to (スティーブ1 v)\nset size to (320) %\ngo to x: (-199) y: (-27)\nshow\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (針 v)?> then\n        change [体力 v] by (-100)\n        ダメージ\n    end\nend\n\ndefine ダメージ\nchange [x v] by (pick random (-1.) to (1.))\nif <touching (爆発 v)?> then\n    if <[0] < (x)> then\n        set [x v] to [-50]\n    else\n        set [x v] to [50]\n    end\n    set [y v] to [30]\nelse\n    if <[0] < (x)> then\n        set [x v] to [-15]\n    else\n        set [x v] to [15]\n    end\n    set [y v] to [10]\nend\nif <touching (毒 v)?> then\n    start sound [j2 v]\n    switch costume to (スティーブ2 v)\n    wait () seconds\n    switch costume to (スティーブ1 v)\nelse\n    start sound [j v]\n    switch costume to (スティーブ2 v)\n    wait (.12) seconds\n    switch costume to (スティーブ1 v)\nend\n\nwhen I receive [メッセージ1 v]\nset [体力 v] to [100]\nforever\n    if <[1] > (体力)> then\n        start sound [High Whoosh v]\n        set [x v] to [0]\n        set [y v] to [0]\n        glide (.1) secs to x: (-199) y: (-27)\n        set [体力 v] to [100]\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <<<touching (敵3 v)?> or <touching (敵2 v)?>> or <touching (敵 v)?>> then\n        change [体力 v] by (-5)\n        ダメージ\n    end\nend\n\nwhen I receive [ダメージ v]\nchange [体力 v] by (-5)\nset [x v] to ((() - (x)) * (1.5))\nset [y v] to [7]\nダメージ\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵4 v)?> then\n        change [体力 v] by (-10)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵5 v)?> then\n        change [体力 v] by (-7)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵6 v)?> then\n        change [体力 v] by (-5)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵7 v)?> then\n        change [体力 v] by (-15)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (爆発 v)?> then\n        change [体力 v] by (-15)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (爆弾 v)?> then\n        change [体力 v] by (-15)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵9 v)?> then\n        change [体力 v] by (-5)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵10 v)?> then\n        change [体力 v] by (-15)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵11 v)?> then\n        change [体力 v] by (-10)\n        ダメージ\n        repeat (5)\n            wait (.5) seconds\n            start sound [j v]\n            change [体力 v] by (-10)\n            switch costume to (スティーブ2 v)\n            wait (.12) seconds\n            switch costume to (スティーブ1 v)\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵12 v)?> then\n        change [体力 v] by (-35)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (爆弾 v)?> then\n        change [体力 v] by (-10)\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵14 v)?> then\n        change [体力 v] by (-7)\n        ダメージ\n    end\nend\n\nwhen I receive [浮遊 v]\nchange [体力 v] by (-10)\nダメージ\nrepeat (15)\n    change [y v] by (1)\nend\nwait until <[-15] > (y)>\nchange [体力 v] by (-10)\nダメージ\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (顔 v)?> then\n        change [体力 v] by (-10)\n        ダメージ\n        repeat (10)\n            wait (1) seconds\n            change [体力 v] by (-15)\n            start sound [j v]\n            switch costume to (スティーブ2 v)\n            wait (.12) seconds\n            switch costume to (スティーブ1 v)\n        end\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (毒 v)?> then\n        change [体力 v] by (pick random (-5) to (-10))\n        ダメージ\n    end\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    if <touching (敵8 v)?> then\n        change [体力 v] by (-17)\n        ダメージ\n    end\nend\n\n@地面\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム2 v)\nshow\n\nwhen I receive [初め v]\nnext costume\nif <<[6] = (costume [number v])> or <[5] = (costume [number v])>> then\n    broadcast (ゾンビ1 v)\nend\nif <[6] = (costume [number v])> then\n    wait (.5) seconds\n    broadcast (ゾンビ1 v)\nend\nif <[8] = (costume [number v])> then\n    broadcast (スケ1 v)\nend\nif <[9] = (costume [number v])> then\n    repeat (2)\n        broadcast (スケ1 v)\n        wait (.3) seconds\n        broadcast (ゾンビ1 v)\n        wait (.3) seconds\n    end\nend\nif <[10] = (costume [number v])> then\n    broadcast (ウィンディケーター1 v)\n    wait (.5) seconds\n    broadcast (ピリジャー1 v)\nend\nif <[11] = (costume [number v])> then\n    repeat (3)\n        broadcast (ウェックス v)\n        wait (.5) seconds\n    end\nend\nif <[12] = (costume [number v])> then\n    repeat (3)\n        broadcast (ウェックス v)\n        broadcast (ウィンディケーター1 v)\n        wait (.5) seconds\n        broadcast (ピリジャー1 v)\n    end\nend\nif <[13] = (costume [number v])> then\n    broadcast (ラウェじゃー v)\n    repeat (3)\n        wait (.5) seconds\n        broadcast (クリーパー v)\n    end\nend\nif <[14] = (costume [number v])> then\n    repeat (2)\n        broadcast (ラウェじゃー v)\n        wait (.5) seconds\n    end\n    repeat (3)\n        wait (.5) seconds\n        broadcast (クリーパー v)\n        wait (.3) seconds\n        broadcast (ゾンビ1 v)\n    end\nend\nif <[15] = (costume [number v])> then\n    repeat (3)\n        broadcast (スケ1 v)\n        wait (.3) seconds\n    end\n    broadcast (ピリジャー1 v)\n    wait (.3) seconds\nend\nif <[16] = (costume [number v])> then\n    repeat (3)\n        broadcast (エンダー v)\n        wait (.2) seconds\n    end\nend\nif <[17] = (costume [number v])> then\n    broadcast (背景 v)\n    broadcast (ガスト v)\n    broadcast (エンダー v)\n    broadcast (ウィザースケルトン v)\n    broadcast (ピグりん v)\n    broadcast (ピグリンブルーと v)\nend\nif <[18] = (costume [number v])> then\n    repeat (2)\n        broadcast (ウィザースケルトン v)\n        wait (.5) seconds\n        broadcast (ピグりん v)\n        wait (.5) seconds\n        broadcast (ピグリンブルーと v)\n        wait (.5) seconds\n    end\nend\nif <[19] = (costume [number v])> then\n    repeat (2)\n        broadcast (エンダー v)\n    end\n    repeat (3)\n        broadcast (スケ2 v)\n        broadcast (ゾンビ2 v)\n    end\nend\nif <[20] = (costume [number v])> then\n    broadcast (夜 v)\n    repeat (7)\n        broadcast (エンダー v)\n    end\nend\nif <[21] = (costume [number v])> then\n    repeat (1)\n        broadcast (エンダー v)\n        wait (.1) seconds\n        broadcast (カプセル v)\n        wait (.1) seconds\n    end\nend\nif <[22] = (costume [number v])> then\n    repeat (4)\n        broadcast (カプセル v)\n        wait (.1) seconds\n    end\nend\nif <[24] = (costume [number v])> then\n    broadcast (ウィザー v)\nend\nif <[26] = (costume [number v])> then\n    repeat (2)\n        broadcast (カプセル v)\n    end\n    wait (.5) seconds\n    repeat (2)\n        broadcast (エンダー v)\n    end\n    wait (.5) seconds\n    repeat (2)\n        broadcast (ウィザースケルトン v)\n    end\n    wait (.5) seconds\nend\nif <[27] = (costume [number v])> then\n    repeat (2)\n        broadcast (エンダー v)\n    end\nend\nif <[29] = (costume [number v])> then\n    broadcast (エンドラ v)\nend\nif <[30] = (costume [number v])> then\n    repeat (2)\n        broadcast (カプセル v)\n    end\nend\nif <[31] = (costume [number v])> then\n    broadcast (背景 v)\n    broadcast (ピグリンブルーと v)\n    broadcast (ピグりん v)\n    broadcast (ガスト v)\nend\nif <[32] = (costume [number v])> then\n    broadcast (1 v)\n    broadcast (消え v)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@月\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (120)\nset size to (50) %\ngo to [back v] layer\nshow\n\nwhen I receive [メッセージ1 v]\nset [1 v] to [0]\nforever\n    change [1 v] by (7)\n    change size by ([sin v] of (1) )\nend\n\nwhen I receive [背景 v]\nswitch costume to (コスチューム2 v)\n\nwhen I receive [夜 v]\nswitch costume to (コスチューム3 v)\n\nwhen I receive [1 v]\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (120)\nset size to (50) %\ngo to [back v] layer\nshow\n\n@月影\n\nwhen I receive [メッセージ1 v]\nset [ghost v] effect to (70)\ngo to x: (0) y: (120)\nset size to (80) %\ngo to [back v] layer\nshow\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nhide\n\nwhen I receive [メッセージ1 v]\nset [1 v] to [0]\nforever\n    change [1 v] by (7)\n    change size by ([sin v] of (1) )\nend\n\nwhen I receive [背景 v]\nswitch costume to (コスチューム2 v)\n\nwhen I receive [夜 v]\nswitch costume to (コスチューム3 v)\n\nwhen I receive [1 v]\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (70)\ngo to x: (0) y: (120)\nset size to (80) %\ngo to [back v] layer\nshow\n\n@チラチラ\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nforever\n    wait (pick random () to (.15)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nshow\ngo to (random position v)\nchange y by (999999)\nset size to (pick random (0) to (130)) %\nset [ghost v] effect to (pick random (90) to (30))\nset [m v] to (pick random (-30) to (30))\nset [y v] to (pick random (-20) to (-5))\nrepeat until <<[0] > (y position)> and <touching (_edge_ v)?>>\n    turn right (m) degrees\n    change y by (y)\nend\ndelete this clone\n\n@次\n\nwhen flag clicked\nhide\n\nwhen I receive [99 v]\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\ngo to [front v] layer\ngo [backward v] (10) layers\nshow\nset [brightness v] effect to (100)\nrepeat (50)\n    change [brightness v] effect by (-2)\nend\nbroadcast (98 v)\n\nwhen I receive [初め v]\nhide\n\n@演出\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\nstart sound [High Whoosh v]\nset [color v] effect to (0)\nset size to (100) %\nrepeat (5)\n    ブロック名\n    change [color v] effect by (10)\nend\nwait (.5) seconds\nbroadcast (99 v)\n\ndefine ブロック名\nset rotation style [all around v]\nset x to (0)\npoint in direction (180)\nchange y by (99999)\ncreate clone of (_myself_ v)\npoint in direction (0)\nchange y by (-99999)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [brightness v] effect to (0)\nset size to (100) %\ngo to [front v] layer\nshow\nset [y v] to [19.3]\nrepeat (30)\n    set [y v] to ((y) * (.9))\n    move (y) steps\nend\nset [y v] to [-19.3]\nrepeat (30)\n    set [y v] to ((y) * (.9))\n    move (y) steps\n    change [brightness v] effect by (1)\nend\ndelete this clone\n\n@演\n\nwhen flag clicked\nhide\n\nwhen I receive [98 v]\nstart sound [Low Whoosh v]\nブロック名\nwait (.7) seconds\nbroadcast (初め v)\n\ndefine ブロック名\nchange x by (-9999)\nchange y by (99999)\ncreate clone of (_myself_ v)\nrepeat (13)\n    change y by (-30)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [brightness v] effect to (pick random (0) to (-70))\ngo to [front v] layer\nshow\nset [x v] to [60]\nrepeat (40)\n    set [x v] to ((x) * (.9))\n    change x by (x)\nend\ndelete this clone\n\n@針\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [メッセージ1 v]\ngo to [back v] layer\nswitch costume to (コスチューム2 v)\nshow\n\nwhen I receive [初め v]\nnext costume\nshow\nset [ghost v] effect to (0)\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen I receive [メッセージ1 v]\nset [1 v] to [0]\nforever\n    change [1 v] by (-10)\n    change size by (([sin v] of (1) ) / (2))\nend\n\nwhen I receive [鬼 v]\nstart sound [Collect v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\n@敵\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ゾンビ1 v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ゾンビ1 v)\nset [体 v] to [100]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (ゾンビ2 v)\n        wait (.12) seconds\n        switch costume to (ゾンビ1 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (ゾンビ2 v)\n        wait (.12) seconds\n        switch costume to (ゾンビ1 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [ゾンビ2 v]\nif <(1) = [0]> then\n    go to x: (-66) y: (-46)\n    create clone of (_myself_ v)\nend\n\n@幽霊\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nswitch costume to (コスチューム2 v)\nshow\nforever\n    wait until <touching (キャラ v)?>\n    repeat (8)\n        change [ghost v] effect by (10)\n    end\n    wait until <not <touching (キャラ v)?>>\n    repeat (8)\n        change [ghost v] effect by (-10)\n    end\nend\n\nwhen I receive [初め v]\nnext costume\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@敵2\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [スケ1 v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (スケルトン2 v)\nset [体 v] to [100]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    wait (pick random () to (3.)) seconds\n    set [xz v] to (x position)\n    set [yz v] to (y position)\n    create clone of (矢 v)\nend\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [skeleton1 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (スケルトン1 v)\n        wait (.12) seconds\n        switch costume to (スケルトン2 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [skeleton1 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (スケルトン1 v)\n        wait (.12) seconds\n        switch costume to (スケルトン2 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [スケ2 v]\nif <(1) = [0]> then\n    go to x: (-66) y: (-46)\n    create clone of (_myself_ v)\nend\n\n@矢\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nstart sound [High Whoosh v]\ngo to x: (xz) y: (yz)\npoint towards (キャラ v)\ngo to [front v] layer\nshow\nforever\n    move (20) steps\n    if <[0] < (direction)> then\n        turn right (1) degrees\n    else\n        turn left (1) degrees\n    end\n    if <touching (キャラ v)?> then\n        broadcast (ダメージ v)\n    end\n    if <<touching (地面 v)?> or <touching (キャラ v)?>> then\n        repeat (5)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\n@敵3\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (270) %\nhide\n\nwhen I receive [ピリジャー1 v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ピリジャー2 v)\nset [体 v] to [170]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    wait (pick random () to (2.)) seconds\n    set [xz v] to (x position)\n    set [yz v] to (y position)\n    create clone of (矢矢 v)\nend\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ピリジャー2 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ピリジャー2 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@矢矢\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nstart sound [High Whoosh v]\ngo to x: (xz) y: (yz)\npoint towards (キャラ v)\ngo to [front v] layer\nshow\nforever\n    move (40) steps\n    if <[0] < (direction)> then\n        turn right (1) degrees\n    else\n        turn left (1) degrees\n    end\n    if <touching (キャラ v)?> then\n        broadcast (ダメージ v)\n    end\n    if <<touching (地面 v)?> or <touching (キャラ v)?>> then\n        repeat (5)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\n@敵4\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ウィンディケーター1 v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ヴィンディケーター2 v)\nset [体 v] to [180]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (20))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (2)\nelse\n    change [x v] by (-2)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ヴィンディケーター2 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ヴィンディケーター2 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@敵5\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ウェックス v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ヴェックス1 v)\nset [体 v] to [150]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (1)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nif <(y position) < ([y position v] of [キャラ v])> then\n    change [y v] by (.5)\nelse\n    change [y v] by (-.5)\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ヴェックス1 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ヴェックス1 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@剣\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\npoint in direction (90)\ngo to [front v] layer\nshow\nset rotation style [all around v]\nforever\n    go to (キャラ v)\n    if <[0] < ([direction v] of [キャラ v])> then\n        switch costume to (コスチューム2 v)\n    else\n        switch costume to (コスチューム1 v)\n    end\nend\n\nwhen I receive [メッセージ1 v]\nset [攻撃 v] to [0]\nforever\n    wait until <<key (space v) pressed?> or <mouse down?>>\n    start sound [Low Whoosh v]\n    set [攻撃 v] to [1]\n    if <(costume [number v]) = [2]> then\n        repeat (5)\n            turn left (10) degrees\n        end\n    else\n        repeat (5)\n            turn left (-10) degrees\n        end\n    end\n    wait () seconds\n    if <(costume [number v]) = [2]> then\n        repeat (5)\n            turn left (-10) degrees\n        end\n    else\n        repeat (5)\n            turn left (10) degrees\n        end\n    end\n    point in direction (90)\n    set [攻撃 v] to [0]\n    wait () seconds\n    wait until <not <mouse down?>>\nend\n\n@敵6\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [クリーパー v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (クリーパー1 v)\nset [体 v] to [100]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (クリーパー5 v)\n        wait (.12) seconds\n        switch costume to (クリーパー1 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (クリーパー5 v)\n        wait (.12) seconds\n        switch costume to (クリーパー1 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        change [経験値 v] by (1)\n        start sound [Bonk v]\n        broadcast (爆発 v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@爆発\n\nwhen flag clicked\nhide\n\nwhen I receive [爆発 v]\ngo to (キャラ v)\ngo to [front v] layer\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to () %\nshow\nrepeat (10)\n    change size by (200)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@敵7\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ラウェじゃー v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ラヴェジャー2 v)\nset [体 v] to [300]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (10))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (2)\nelse\n    change [x v] by (-2)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ラヴェジャー2 v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ラヴェジャー2 v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nif <touching (_edge_ v)?> then\n    repeat until <not <touching (地面 v)?>>\n        change y by (1)\n    end\nend\n\n@ゴーレム\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (200) %\nhide\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ゴーレム1 v)\nset [体 v] to [800]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nset [¥ v] to (([abs v] of (y) ) + (2))\nset [q v] to [0]\nrepeat until <not <touching (地面 v)?>>\n    change [q v] by (1)\n    change y by (1)\nend\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.8))\ny\nif <[15] < ([abs v] of (x) )> then\n    set [x v] to ((15) * ((x) / ([abs v] of (x) )))\nend\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I receive [召喚 v]\nif <(1) = [0]> then\n    change [経験値 v] by (-10)\n    go to (キャラ v)\n    create clone of (_myself_ v)\nend\n\nwhen I receive [次 v]\nhide\n\nwhen I receive [初め v]\ngo to (キャラ v)\nshow\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I receive [ゴーレムむ v]\nstart sound [j v]\nset [x v] to ((() - (x)) * (pick random (2) to (5)))\nset [y v] to (pick random (1) to (10))\nchange [体 v] by (-20)\nswitch costume to (コスチューム1 v)\nwait (.12) seconds\nswitch costume to (ゴーレム1 v)\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    hide\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [goー v]\nstart sound [j v]\nset [x v] to ((() - (x)) * (pick random (2) to (5)))\nset [y v] to (pick random (1) to (10))\nchange [体 v] by (-40)\nswitch costume to (コスチューム1 v)\nwait (.12) seconds\nswitch costume to (ゴーレム1 v)\n\n@バグ\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (100) %\ngo to x: (218) y: (-158)\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nset size to (90) %\nwait (.12) seconds\nset size to (100) %\nbroadcast (リスタート v)\n\n@敵8\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (270) %\nhide\n\nwhen I receive [エンダー v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (エンダーマン v)\nset [体 v] to [200]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (エンダーマン v)\n        start sound [High Whoosh v]\n        glide (.1) secs to (random position v)\n        1\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (エンダーマン v)\n        start sound [High Whoosh v]\n        glide (.1) secs to (random position v)\n        1\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (1.5)) seconds\n    start sound [High Whoosh v]\n    glide (.1) secs to (キャラ v)\n    1\nend\n\ndefine 1\nrepeat until <not <touching (地面 v)?>>\n    start sound [High Whoosh v]\n    glide () secs to (random position v)\nend\n\n@敵9\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (270) %\nhide\n\nwhen I receive [ガスト v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ガスト v)\nset [体 v] to [50]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (1)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nif <(y position) < ([y position v] of [キャラ v])> then\n    change [y v] by (1)\nelse\n    change [y v] by (-1)\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (.5)\nelse\n    change [x v] by (-.5)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    wait (pick random () to (1.)) seconds\n    set [xx v] to (x position)\n    set [yy v] to (y position)\n    create clone of (爆弾 v)\nend\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ガスト v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to (ガスト v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@爆弾\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nstart sound [High Whoosh v]\ngo to x: (xx) y: (yy)\npoint towards (キャラ v)\ngo to [front v] layer\nshow\nforever\n    move (100) steps\n    if <[0] < (direction)> then\n        turn right (1) degrees\n    else\n        turn left (1) degrees\n    end\n    if <touching (キャラ v)?> then\n        broadcast (爆弾 v)\n    end\n    if <<touching (地面 v)?> or <touching (キャラ v)?>> then\n        start sound [get4 v]\n        repeat (10)\n            change size by (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [爆発 v]\ncreate clone of (_myself_ v)\n\n@敵10\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ピグりん v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to ( v)\nset [体 v] to [250]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@敵11\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ウィザースケルトン v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to ( v)\nset [体 v] to [200]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1)\nelse\n    change [x v] by (-1)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [skeleton1 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [skeleton1 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [ウィザースケ v]\nif <(1) = [0]> then\n    go to (random position v)\n    change y by (999)\n    create clone of (_myself_ v)\nend\n\n@ボタン\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\ngo to x: (-195) y: (-152)\nset size to (80) %\ngo to [front v] layer\nshow\nforever\n    if <[9] < (経験値)> then\n        set [brightness v] effect to (0)\n    else\n        set [brightness v] effect to (-70)\n    end\nend\n\nwhen this sprite clicked\nif <[9] < (経験値)> then\n    start sound [Coin v]\n    set size to (70) %\n    wait (.15) seconds\n    set size to (80) %\n    broadcast (召喚 v)\nend\n\n@敵12\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (320) %\nhide\n\nwhen I receive [ピグリンブルーと v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to ( v)\nset [体 v] to [350]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1.5)\nelse\n    change [x v] by (-1.5)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [zombiehurt2 v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\n@敵14\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (270) %\nhide\n\nwhen I receive [カプセル v]\nif <(1) = [0]> then\n    go to x: (208) y: (69)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to ( v)\nset [体 v] to [100]\nshow\nset [y v] to [0]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nchange [y v] by (-1)\nif <((y position) + (10)) < ([y position v] of [キャラ v])> then\n    change y by (-1)\n    if <touching (地面 v)?> then\n        set [y v] to (pick random (5) to (15))\n    end\nend\nchange y by (y)\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        start sound [High Whoosh v]\n        glide (.1) secs to (random position v)\n        1\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム1 v)\n        wait (.12) seconds\n        switch costume to ( v)\n        start sound [High Whoosh v]\n        glide (.1) secs to (random position v)\n        1\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (ゴーレムむ v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (3.)) seconds\n    start sound [High Whoosh v]\n    glide (.1) secs to (random position v)\n    1\nend\n\ndefine 1\nrepeat until <not <touching (地面 v)?>>\n    start sound [High Whoosh v]\n    glide () secs to (random position v)\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (3.)) seconds\n    set [xx v] to (x position)\n    set [yy v] to (y position)\n    create clone of (ふゆう v)\nend\n\n@ふゆう\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nstart sound [High Whoosh v]\ngo to x: (xx) y: (yy)\npoint in direction (pick random (-180) to (180))\ngo to [front v] layer\nshow\nforever\n    move (2) steps\n    if <touching (キャラ v)?> then\n        broadcast (浮遊 v)\n    end\n    if <<touching (剣 v)?> or <<<touching (_edge_ v)?> or <touching (地面 v)?>> or <touching (キャラ v)?>>> then\n        start sound [get4 v]\n        repeat (10)\n            change size by (5)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\n    turn right (pick random (-2.) to (2.)) degrees\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (2.)) seconds\n    point towards (キャラ v)\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (3.)) seconds\n    point in direction (pick random (-180) to (180))\nend\n\n@敵13\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (300) %\nhide\n\nwhen I receive [ウィザー v]\nif <(1) = [0]> then\n    go to x: (0) y: (-50)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to (ウィザー v)\nset [体 v] to [1000]\nshow\nset [y v] to [0]\nrepeat (5)\n    start sound [Coin v]\n    switch costume to (コスチューム2 v)\n    wait (.2) seconds\n    start sound [Coin v]\n    switch costume to (コスチューム1 v)\n    wait (.2) seconds\nend\nswitch costume to (ウィザー v)\nstart sound [get4 v]\nforever\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (1)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nif <(y position) < (([y position v] of [キャラ v]) + (100))> then\n    change [y v] by (1.2)\nelse\n    change [y v] by (-.5)\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (pick random (2) to (1))\nelse\n    change [x v] by (pick random (-2) to (-1))\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        set [!! v] to (pick random (1) to (3))\n        if <(!!) = [1]> then\n            broadcast (ウィザースケ v)\n        end\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        switch costume to (コスチューム3 v)\n        wait (.12) seconds\n        switch costume to (ウィザー v)\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (GOー v)\n        set [!! v] to (pick random (1) to (3))\n        if <(!!) = [1]> then\n            broadcast (ウィザースケ v)\n        end\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        switch costume to (コスチューム3 v)\n        wait (.12) seconds\n        switch costume to (ウィザー v)\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        broadcast (鬼 v)\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nwait (2) seconds\nrepeat (5)\n    wait (pick random (1) to (2.)) seconds\n    set [xz v] to (x position)\n    set [yz v] to (y position)\n    create clone of (顔 v)\nend\nrepeat (20)\n    wait (pick random () to (2.)) seconds\n    set [xz v] to (x position)\n    set [yz v] to (y position)\n    create clone of (顔 v)\nend\nforever\n    wait (pick random () to (1.5)) seconds\n    set [xz v] to (x position)\n    set [yz v] to (y position)\n    create clone of (顔 v)\nend\n\nwhen I start as a clone\nforever\n    set [w v] to (体)\nend\n\n@顔\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nset size to (200) %\nstart sound [High Whoosh v]\ngo to x: (xz) y: (yz)\npoint towards (キャラ v)\nturn right (pick random (-20) to (20)) degrees\ngo to [front v] layer\nshow\nset [1 v] to (pick random (1) to (50))\nforever\n    move (1) steps\n    if <touching (キャラ v)?> then\n        broadcast (顔 v)\n    end\n    if <<touching (_edge_ v)?> or <<touching (地面 v)?> or <touching (キャラ v)?>>> then\n        start sound [get4 v]\n        repeat (10)\n            change size by (5)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\n@whp\n\nwhen flag clicked\nhide\n\nwhen I receive [ウィザー v]\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (143)\ngo to [front v] layer\nshow\n\nwhen I receive [次 v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [エンドラ v]\nswitch costume to (コスチューム2 v)\ngo to x: (0) y: (143)\ngo to [front v] layer\nshow\n\n@whp2\n\nwhen flag clicked\nhide\n\nwhen I receive [ウィザー v]\ngo to [front v] layer\nshow\nforever\n    1\nend\n\ndefine 1\ngo to x: (-130) y: (143)\nset [ww v] to [.86]\nrepeat ((w) / (20))\n    create clone of (_myself_ v)\n    change x by ((ww) * (6))\nend\n\nwhen I start as a clone\ngo to [front v] layer\nshow\nwait () seconds\ndelete this clone\n\nwhen I receive [次 v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [エンドラ v]\ngo to [front v] layer\nshow\nforever\n    1\nend\n\n@チラチラ2\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to (キャラ v)\nset size to (pick random (0) to (120)) %\nset [ghost v] effect to (pick random (90) to (30))\nset [m v] to (pick random (-10) to (10))\nset [y v] to (pick random (1) to (5))\nrepeat until <touching (_edge_ v)?>\n    turn right (pick random (5) to (20)) degrees\n    change y by (y)\n    change x by (m)\n    set [m v] to ((m) * (.95))\n    change [y v] by (-.7)\nend\ndelete this clone\n\n@チラチラ3\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\ngo to (キャラ v)\nset size to (pick random (0) to (100)) %\nset [ghost v] effect to (pick random (90) to (30))\nset [m v] to (pick random (-10) to (10))\nset [y v] to (pick random (1) to (5))\nrepeat until <touching (_edge_ v)?>\n    turn right (pick random (5) to (20)) degrees\n    change y by (y)\n    change x by (m)\n    set [m v] to ((m) * (.95))\n    change [y v] by (-.7)\nend\ndelete this clone\n\n@敵15\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (80) %\nhide\n\nwhen I receive [エンドラ v]\nif <(1) = [0]> then\n    go to x: (0) y: (100)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [1 v] to [1]\nswitch costume to ( v)\nset [体 v] to [1200]\nshow\nset [y v] to [0]\nforever\n    set [w v] to (体)\n    動き\nend\n\ndefine y\nif <not <(y) = [0]>> then\n    set [! v] to (() - ((y) / ([abs v] of (y) )))\n    set [¥ v] to (([abs v] of (y) ) + (5))\n    set [q v] to [0]\n    repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n        change [q v] by (1)\n        change y by (!)\n        set [y v] to [0]\n    end\nend\nif <not <(x) = [0]>> then\n    set [¥ v] to (([abs v] of (x) ) + (2))\n    set [@ v] to ((-1) * ((x) / ([abs v] of (x) )))\n    set [q v] to [0]\n    if <touching (地面 v)?> then\n        repeat until <<(q) = (¥)> or <not <touching (地面 v)?>>>\n            change [q v] by (1)\n            change x by (@)\n            if <touching (_edge_ v)?> then\n                repeat until <not <touching (地面 v)?>>\n                    change y by (1)\n                end\n            end\n        end\n        set [x v] to [0]\n    end\nend\nrepeat until <not <touching (地面 v)?>>\n    change y by (1)\nend\n\nwhen I receive [次 v]\ndelete this clone\n\ndefine 動き\npoint towards (キャラ v)\nset rotation style [left-right v]\nif <([y position v] of [キャラ v]) < ((y position) + (-200))> then\n    change [y v] by (-.3)\nelse\n    change [y v] by (.1)\nend\nchange y by (y)\nif <(x position) < ([x position v] of [キャラ v])> then\n    change [x v] by (1.5)\nelse\n    change [x v] by (-1.5)\nend\nchange x by (x)\nset [x v] to ((x) * (.7))\ny\n\nwhen flag clicked\nset [1 v] to [0]\n\nwhen I start as a clone\nforever\n    if <<(攻撃) = [1]> and <touching (剣 v)?>> then\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-20)\n        repeat (20)\n            switch costume to (コスチューム3 \(1\) v)\n        end\n        wait until <not <touching (剣 v)?>>\n    end\nend\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nwait until <[1] > (体)>\nchange [経験値 v] by (1)\n\nwhen I start as a clone\nforever\n    if <touching (ゴーレム v)?> then\n        broadcast (GOー v)\n        start sound [j v]\n        set [x v] to ((() - (x)) * (pick random (2) to (5)))\n        set [y v] to (pick random (1) to (10))\n        change [体 v] by (-30)\n        repeat (20)\n            switch costume to (コスチューム3 \(1\) v)\n        end\n        wait until <not <touching (ゴーレム v)?>>\n    end\nend\n\nwhen I receive [リスタート v]\nrepeat until <not <touching (地面 v)?>>\n    go to (random position v)\nend\n\nwhen I start as a clone\nforever\n    if <[1] > (体)> then\n        broadcast (鬼 v)\n        repeat (5)\n            change [ghost v] effect by (20)\n        end\n        delete this clone\n    end\nend\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム5 v)\n    wait () seconds\n    repeat (12)\n        if <not <touching (剣 v)?>> then\n            next costume\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (pick random (3) to (7)) seconds\n    repeat (5)\n        change [y v] by (-.5)\n    end\nend\n\nwhen I start as a clone\nforever\n    wait (pick random () to (3.)) seconds\n    set [x v] to (x position)\n    set [y v] to (y position)\n    create clone of (顔2 v)\nend\n\nwhen I start as a clone\nforever\n    if <[-47] > (y position)> then\n        set y to (-47)\n    end\nend\n\n@顔2\n\nwhen flag clicked\nhide\n\nwhen I receive [次 v]\ndelete this clone\n\nwhen I start as a clone\nset size to (100) %\nstart sound [High Whoosh v]\ngo to x: (X) y: (Y)\npoint towards (キャラ v)\nturn right (pick random (-20) to (20)) degrees\ngo to [front v] layer\nshow\nset [1 v] to (pick random (5) to (20))\nforever\n    move (1) steps\n    if <<touching (_edge_ v)?> or <<touching (地面 v)?> or <touching (キャラ v)?>>> then\n        1\n        start sound [get4 v]\n        repeat (10)\n            change size by (2)\n            change [ghost v] effect by (10)\n        end\n        stop [this script v]\n    end\nend\n\ndefine 1\nset [x v] to (x position)\nset [y v] to (y position)\nrepeat (pick random (10) to (30))\n    create clone of (毒 v)\nend\n\n@毒\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\ngo to x: (X) y: (Y)\nchange x by (pick random (-30) to (30))\nchange y by (pick random (-5) to (5))\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (pick random (.1) to (1.5)) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nset size to (pick random (0) to (100)) %\nforever\n    point in direction (pick random (-180) to (180.))\n    change x by (pick random (.1) to (-.1))\n    change y by (pick random (.1) to (-.1))\nend\n\n@次2\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\ngo to x: (216) y: (154)\nset size to (150) %\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nset size to (140) %\nwait (.12) seconds\nset size to (150) %\nbroadcast (次 v)\n\nwhen I receive [消え v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\n@サムネ\n\nwhen flag clicked\nwait (1) seconds\nstart sound [Low Whoosh v]\nrepeat (22)\n    change [ghost v] effect by (5)\nend\nbroadcast (メッセージ1 v)\n\nwhen [timer v] > (0)\nhide variable [時間 v]\ngo to x: (0) y: (0)\nset [brightness v] effect to (100)\ngo to [front v] layer\nshow\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\nend\n\nwhen I receive [メッセージ1 v]\nforever\n    reset timer\n    hide\nend\n\n@コイン\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (100) %\ngo to x: (-223) y: (162)\ngo to [front v] layer\nshow\n\n@数\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\n1\n\ndefine 1\ngo to x: (-202) y: (160)\nset [@ v] to [0]\nrepeat (length of (経験値))\n    change [@ v] by (1)\n    if <[0] = (letter (@) of (経験値))> then\n        switch costume to (コスチューム10 v)\n    else\n        switch costume to (letter (@) of (経験値))\n    end\n    create clone of (_myself_ v)\n    change x by (15)\nend\n\nwhen I start as a clone\nshow\nwait () seconds\nbroadcast (0 v)\ndelete this clone\n\nwhen I receive [0 v]\n1\n\n@時間\n\nwhen flag clicked\nhide variable [時間 v]\nset [1 v] to [1]\nset [時間 v] to [0]\nhide\n\nwhen I receive [メッセージ1 v]\ngo to x: (-224) y: (123)\nset size to (80) %\ngo to [front v] layer\nshow\nforever\n    wait (.05) seconds\n    change [時間 v] by (.1)\nend\n\nwhen this sprite clicked\nset [brightness v] effect to (-50)\nwait (.12) seconds\nset [brightness v] effect to (0)\nif <(1) = [1]> then\n    show variable [時間 v]\nelse\n    hide variable [時間 v]\nend\nset [1 v] to (() - (1))\n\nwhen I receive [消え v]\nstop [other scripts in sprite v]\n\n@hp\n\nwhen flag clicked\nhide\n\nwhen I receive [メッセージ1 v]\nset size to (150) %\n1\n\ndefine 1\nset [1 v] to [0]\ngo to x: (-140) y: (-160)\nrepeat (10)\n    change [1 v] by (10)\n    change x by (28)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [@ v] to (1)\ngo to [front v] layer\nshow\nforever\n    if <(1) > (体力)> then\n        if <((1) - (5)) > (体力)> then\n            switch costume to (コスチューム2 v)\n        else\n            switch costume to (コスチューム1 v)\n        end\n    else\n        switch costume to (02 v)\n    end\nend\n\n
[投稿日]5月6日　　初傾向&コミュ好き!＆リミックス!\n　　　　　　　　　　　　　嬉すぎ(^^)\n新作！ https://scratch.mit.edu/projects/930562438\n❤️⭐️押して！！\n↑押したら宣伝ok!\n【使い方】\n・タップ、矢印キーで操作\n・タップ、スペースキーで攻撃\n・難しかったら右上のボタンを押してください\n （やりすぎ禁止）\n・bgmは3種類あります！\n・敵を倒すとコインがもらえます\n・もらえたコイン10枚でゴーレムを召喚しよう！\n・モブがバグった場合は右下の[⚠︎]を押しましょう\n[モブ説明] 1部のもの\n・クリーパーを倒すと、プレイヤーに向けて爆発します\n・ウィザースケルトン、ウィザーに攻撃されると継続ダメージが入ります\n・ウィザー攻撃すると確率でウィザスケが召喚されます\n・シェルカーに攻撃されると浮かび、空中でさらにダメージを受けます。\n[[10個以上拡散してくれた人]]  10人まで\n・@tatudragon\n・@abcdefghstuvwxyz\n・@telipopo\n・@innpu\n・@okakimaru\n・@hq3356tyu\n・@iyashikeiakaunto\n・＠KANKAN_DAYO2\n・@pikapikapong\n・@shshshunsuke\n\n\nマイクラ素材\nhttps://scratch.mit.edu/projects/699459713\nhttps://scratch.mit.edu/projects/697426555\nhttps://scratch.mit.edu/projects/726298734\nhttps://scratch.mit.edu/projects/720256956\nhttps://scratch.mit.edu/projects/679036204\nhttps://scratch.mit.edu/projects/775012944\nhttps://scratch.mit.edu/projects/841750153\nhttps://scratch.mit.edu/projects/728286315\nhttps://scratch.mit.edu/projects/809928833\nhttps://scratch.mit.edu/projects/723602518\n音楽\nhttps://scratch.mit.edu/projects/875544067\nhttps://scratch.mit.edu/projects/901589248\nhttps://scratch.mit.edu/projects/742822322 