MINECRAFT  PLATFORMER

Instructions: \n https://scratch.mit.edu/projects/1015064546\n荒らしのやつについて\n\n1p感謝\n\n宣伝やめてください。\nPlease stop advertising.\n\nハートと星よろしくお願いします。\n木の剣が最強すぎる件は無視して下さい\n\n               ▶MINECRAFT PLATFORMER◀\n\n   ⇩⇩⇩⇩※最後まで読まないと損します⇩⇩⇩⇩\n　　　　　（日本語は下だよ!!!!!!）\n\nEnglish\n ▶ How to play\nUse the arrow keys to operate.\nIf you are on mobile, tap the direction you want to go to proceed\n\nHearts and stars\n\n日本語\n ▶ 遊び方\n矢印キーで操作します。\nモバイルの方は行きたい方向をタップすると進めます\n\nハートと星よろしくお願いします\n\nこの作品はみらーの垢で投稿したものの\n再利用です!((((\nこれが多分最後の量産型になります\nこの後はミニゲームやアニメを@-Mirano-で投稿します

@Stage\n\nwhen flag clicked\nforever\n    play sound [音楽 v] until done\nend\n\n@1\n\ndefine 初期化\nswitch costume to (すてぃぶ v)\nset [yy v] to [0]\nset [xx v] to [0]\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nhide\nwait (0) seconds\nswitch costume to (すてぃぶ v)\nset rotation style [left-right v]\nshow\nset [xx v] to [0]\nset [yy v] to [0]\n初期化\nforever\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > [0]>>> then\n        if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n            point in direction (90)\n            change [xx v] by (0.5)\n        else\n            point in direction (90)\n            change [xx v] by (0.5)\n        end\n    end\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <[0] > (mouse x)>>> then\n        if <<touching (14 v)?> or <touching (ソウルサンド v)?>> then\n            point in direction (-90)\n            change [xx v] by (-0.5)\n        else\n            point in direction (-90)\n            change [xx v] by (-0.5)\n        end\n    end\n    set [xx v] to ((xx) * (0.9))\n    change x by (xx)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (xx))\n    end\n    if <not <touching (14 v)?>> then\n        change [yy v] by (-1)\n    end\n    change y by (yy)\n    if <touching (2 v)?> then\n        change y by ((-1) * (yy))\n        set [yy v] to [0]\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n            set [yy v] to [10]\n        end\n    end\n    if <touching (3 v)?> then\n        broadcast (itai v)\n        start sound [ようがかんｎ v]\n        switch costume to (コスチューム3 v)\n        初期化\n    end\n    if <<<(x position) > [230]> or <touching (17 v)?>> or <[-185] > (y position)>> then\n        if <not <(ステージ) = [16]>> then\n            broadcast (next v)\n            change [ステージ v] by (1)\n            初期化\n        end\n    end\nend\n\nまつ [0.15]\n\nchange [yy v] by (-1)\n\nif <(y position) > [180]> then\n    if <(ステージ) = [1]> then\nend\n\nwhen I receive [終わり v]\n\n\n    if <not <<<(x position) > [230]> or <touching (17 v)?>> = [16]>> then\n        broadcast (next v)\n        change [ステージ v] by (1)\n        初期化\n    end\nend\n\ngo to (random position v)\n\nchange [ステージ v] by (1)\n\n\n    if <(ステージ) = [6]> then\nend\n\nwhen flag clicked\nforever\n    wait until <touching (14 v)?>\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        set [yy v] to [5]\n    else\n        change [yy v] by (-0.25)\n    end\nend\n\ngo to x: (0) y: (0)\n\nwhen I receive [a v]\nshow\ngo to x: (-200) y: (0)\n\nwhen flag clicked\nforever\n\nset [yy v] to [5]\n\nchange [yy v] by (-0.25)\n\nwhen flag clicked\nforever\n    if <<touching (2 v)?> and <<<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> or <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>>> then\n        play sound (pick random (2) to (3)) until done\n    end\nend\n\nwhen flag clicked\nforever\n    if <[0] < (ステージ)> then\n        switch costume to (すてぃぶ v)\n    end\nend\n\nwhen flag clicked\n\nwait until <touching (ソウルサンド v)?>\n\n\nchange [yy v] by (-1)\n\nwhen flag clicked\n\nwhen I receive [弓当たる v]\nset [yy v] to [5]\nchange [xx v] by (-10)\n\nwhen I receive [攻撃された v]\nset [yy v] to [5]\nchange [xx v] by (-5)\n\ndefine まつ (何秒？？？)\nwait (何秒？？？) seconds\n\ngo to (random position v)\n\n@2\n\nwhen flag clicked\nset [ステージ v] to [1]\nhide\nwait (0) seconds\nshow\nhide variable [☁ world records v]\nhide variable [time v]\ngo to [front v] layer\nforever\n    switch costume to (ステージ)\nend\n\nset [ステージ v] to [18]\n\nwhen flag clicked\nset [time v] to [0]\nforever\n    if <(ステージ) = [16]> then\n        show variable [time v]\n        if <(time) < (☁ World Records)> then\n            set [☁ world records v] to (time)\n        end\n    else\n        wait (1) seconds\n        change [time v] by (1)\n    end\nend\n\nshow variable [☁ world records v]\n\nset [☁ world records v] to [300]\n\n@3\n\nwhen flag clicked\nhide\nwait (0) seconds\nshow\nset [ステージ v] to [1]\nforever\n    switch costume to (ステージ)\nend\n\n@4\n\nwhen flag clicked\ngo to x: (0) y: (0)\nclear graphic effects\nset size to (100) %\nset rotation style [all around v]\npoint in direction (180)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    if <(costume [number v]) = [2]> then\n        if <<key (space v) pressed?> or <key (1 v) pressed?>> then\n            repeat (3)\n                turn right (15) degrees\n            end\n            broadcast (攻撃 v)\n            repeat (3)\n                turn right (-15) degrees\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [1]> then\n        if <<key (space v) pressed?> or <mouse down?>> then\n            repeat (3)\n                turn right (-15) degrees\n            end\n            broadcast (攻撃 v)\n            repeat (3)\n                turn right (15) degrees\n            end\n        end\n    end\nend\n\nwhen I receive [攻撃準備 v]\nif <(costume [number v]) = [1]> then\n    repeat (3)\n        turn right (-15) degrees\n    end\n    broadcast (攻撃 v)\n    repeat (3)\n        turn right (15) degrees\n    end\n    point in direction (180)\nend\n\nwhen I receive [攻撃準備 v]\nif <(costume [number v]) = [2]> then\n    repeat (3)\n        turn right (-15) degrees\n    end\n    broadcast (攻撃 v)\n    repeat (3)\n        turn right (15) degrees\n    end\n    point in direction (180)\nend\n\nwhen flag clicked\n\nif <touching (1 v)?> then\n\nwhen flag clicked\n\nwhen flag clicked\nset [何の兼？ v] to [-1]\nshow\nbroadcast (おく v)\nswitch costume to (剣　キ v)\nforever\n    go to (1 v)\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        switch costume to (剣　キ v)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        switch costume to (建機２ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) < [50]> then\nend\n\n@7\n\nwhen flag clicked\nhide\ngo to [back v] layer\ngo [forward v] (1) layers\nset size to (100) %\nset [brightness v] effect to (0)\ngo to x: (50) y: (-35)\nwait (0) seconds\nforever\n    switch costume to (ステージ)\n    show\nend\n\ngo to [back v] layer\n\nset [brightness v] effect to (-18)\n\nswitch costume to (ステージ1 v)\nset [brightness v] effect to (0)\nshow\n\nset [ステージ v] to [9]\n\nif <(ステージ) = [11]> then\n\nbroadcast (次元は違う v)\n\nswitch costume to (ステージ5 v)\n\nwhen flag clicked\nforever\n\nset size to (100) %\n\n@8\n\nwhen flag clicked\nset [hp v] to [20]\nhide\nwait (0) seconds\ngo to [front v] layer\nshow\ngo to x: (0) y: (-150)\nset size to (150) %\nswitch costume to (health20 v)\n\nwhen I receive [攻撃された v]\nstart sound [ダメージ v]\nchange [hp v] by (-3)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (3))\n\nwhen I receive [終わり v]\nbroadcast (a v)\nset [hp v] to [20]\n\nwhen I receive [ゲーム終了です v]\n\nhide\n\nwhen flag clicked\nforever\n    if <touching (すてぃいいいいいぶ v)?> then\n        set [ghost v] effect to (80)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [次元は違う v]\nhide\n\nwhen flag clicked\n\nwhen I receive [終わり v]\n\nstop [all v]\n\nwhen I receive [弓当たる v]\nstart sound [ダメージ v]\nchange [hp v] by (-2)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (4))\n\nrepeat (2)\n    next costume\nend\n\nwhen flag clicked\nforever\n    if <[0] > (HP)> then\nend\n\nstop [all v]\n\nbroadcast (終わり v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nswitch costume to (health20 v)\n\nwhen I receive [itai v]\nstart sound [ダメージ v]\nchange [hp v] by (-5)\nswitch costume to ((costume [number v]) + (5))\n\nwhen I receive [うぉーでんざぱわー v]\nstart sound [ダメージ v]\nchange [hp v] by (-5)\nif <[0] > (HP)> then\n    broadcast (終わり v)\nend\nswitch costume to ((costume [number v]) + (6))\n\nwhen I receive [攻撃された v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [弓当たる v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [itai v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen I receive [うぉーでんざぱわー v]\nrepeat (2)\n    set [brightness v] effect to (40)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\n    wait (0.1) seconds\nend\n\nwhen flag clicked\nforever\n    if <not <(HP) = [20]>> then\n        wait (pick random (3) to (5)) seconds\n        repeat (2)\n            set [brightness v] effect to (40)\n            wait (0.1) seconds\n            set [brightness v] effect to (0)\n            wait (0.1) seconds\n        end\n        change [hp v] by (1)\n        switch costume to ((costume [number v]) - (1))\n    end\nend\n\nswitch costume to (health20 v)\n\nwhen flag clicked\nforever\n    if <[0] > (HP)> then\n        switch costume to (health20 v)\n        broadcast (終わり v)\n    end\nend\n\n@Oxygen\n\nwhen I receive [next v]\ngo to [front v] layer\n\nwhen I receive [リスポーン v]\ngo to [front v] layer\n\nwhen I receive [スタート v]\nforever\n    go to [front v] layer\n    switch costume to ((酸素ゲージ) + (1))\nend\n\n@爆発3\n\nwhen I start as a clone\ngo to x: (-93) y: (-29)\nshow\nstart sound [get4 v]\nswitch costume to (explosion_0 v)\nrepeat (7)\n    wait () seconds\n    next costume\nend\nhide\ndelete this clone\n\n@Clouds\n\nwhen I start as a clone\nwait until <[7] < (item (1) of [情報 v])>\ndelete this clone\n\nwhen I start as a clone\nif <[4] < (item (1) of [情報 v])> then\n    hide\n    delete this clone\nelse\n    go to [back v] layer\n    go [forward v] (1) layers\n    repeat until <[5] < (backdrop [number v])>\n        set [cloud y v] to (pick random (100) to (170))\n        if <(#Biome) = [2]> then\n            go [forward v] (5) layers\n            set [cloud y v] to (pick random (-80) to (0))\n            set [ghost v] effect to (50)\n        end\n        switch costume to ((1) + (pick random (1) to (10)))\n        set y to (cloud y)\n        repeat until <(cloud x) < [-400]>\n            show\n            set x to (cloud x)\n            change [cloud x v] by (-0.4)\n            set [ghost v] effect to (20)\n        end\n        change [cloud_num v] by (-1)\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nhide\ngo to [back v] layer\nset [cloud_num v] to [0]\nset [cloud x v] to [-100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nset [cloud x v] to [100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nforever\n    if <(Cloud_Num) < [10]> then\n        if <(pick random (1) to (5)) = [1]> then\n            set [cloud x v] to [300]\n            change [cloud_num v] by (1)\n            create clone of (_myself_ v)\n        end\n        wait (3) seconds\n    end\nend\n\n@太陽\n\nwhen flag clicked\nset size to (100) %\nshow\nforever\n    change [d v] by (10)\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    change size by ([cos v] of (d) )\nend\n\nwhen I receive [スタート v]\nwait (1) seconds\nwait until <[] = [8]>\nhide\n\n@5\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound (pick random (1) to (2))\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (何の兼？)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        start sound [ぞんん v]\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (50)\nswitch costume to (ゾンビ v)\nset size to (65) %\nforever\n    if <(ステージ) = [1]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [2]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (0.4)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-0.4)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [10]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [y v] to [5]\n    change [x2 v] by (4)\nend\n\n@文字\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    switch costume to (ステージ)\nend\n\n@6\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound (pick random (1) to (2))\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (何の兼？)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        start sound [あああ v]\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (50)\nswitch costume to (ゾンビ v)\nset size to (65) %\nforever\n    if <(ステージ) = [3]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [4]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (0.4)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-0.4)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [10]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [y v] to [5]\n    change [x2 v] by (4)\nend\n\n@9\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound (pick random (1) to (2))\n    repeat (5)\n        change x by (10)\n    end\n    change [俺のhp v] by (何の兼？)\n    wait () seconds\n    if <(俺のhp) = [0]> then\n        start sound [死んじまった v]\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (50)\nswitch costume to (ゾンビ v)\nset size to (65) %\nforever\n    if <(ステージ) = [3]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [4]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [俺のhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [ゾ日y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [ゾ日x v] by (0.4)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [ゾ日x v] by (-0.4)\n    end\n    set [ゾ日x v] to ((ゾ日x) * (0.9))\n    change x by (ゾ日x)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (ゾ日x))\n    end\n    change y by (ゾ日y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (ゾ日y))\n        set [ゾ日y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [ゾ日y v] to [10]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [ゾ日y v] to [5]\n    change [ゾ日x v] by (4)\nend\n\n@光\n\nwhen flag clicked\ngo to [back v] layer\nforever\n    turn right (0.2) degrees\n    go to (建物 v)\nend\n\n@10\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound (pick random (1) to (2))\n    repeat (5)\n        change x by (10)\n    end\n    change [俺のhp v] by (何の兼？)\n    wait () seconds\n    if <(俺のhp) = [0]> then\n        start sound [死んじまった v]\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (0)\nswitch costume to (ゾンビ v)\nset size to (65) %\nforever\n    if <(ステージ) = [7]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [4]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [俺のhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [ゾ日y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [ゾ日x v] by (0.4)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [ゾ日x v] by (-0.4)\n    end\n    set [ゾ日x v] to ((ゾ日x) * (0.9))\n    change x by (ゾ日x)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (ゾ日x))\n    end\n    change y by (ゾ日y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (ゾ日y))\n        set [ゾ日y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [ゾ日y v] to [10]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [ゾ日y v] to [5]\n    change [ゾ日x v] by (4)\nend\n\n@11\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    start sound (pick random (1) to (2))\n    repeat (5)\n        change x by (10)\n    end\n    change [ゾンビhp v] by (何の兼？)\n    wait () seconds\n    if <(ゾンビHP) = [0]> then\n        start sound [Skeleton_death v]\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset rotation style [left-right v]\nhide\ngo to x: (200) y: (0)\nswitch costume to (ゾンビ v)\nset size to (70) %\nforever\n    if <(ステージ) = [7]> then\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [4]>\n    end\nend\n\nwhen I receive [メッセージ1 v]\nstop [all v]\n\nwhen I start as a clone\nforever\n    if <touching (1 v)?> then\n        broadcast (攻撃された v)\n        wait (1) seconds\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [10]\nshow\nset rotation style [left-right v]\nforever\n    change [y v] by (-1)\n    if <([x position v] of [1 v]) > (x position)> then\n        point in direction (90)\n        change [x2 v] by (0.5)\n    end\n    if <([x position v] of [1 v]) < (x position)> then\n        point in direction (-90)\n        change [x2 v] by (-0.5)\n    end\n    set [x2 v] to ((X2) * (0.9))\n    change x by (X2)\n    if <touching (2 v)?> then\n        change y by (6)\n    end\n    if <touching (2 v)?> then\n        change y by (-6)\n        change x by (() - (X2))\n    end\n    change y by (y)\n    if <touching (2 v)?> then\n        change y by ((-1) * (y))\n        set [y v] to [0]\n        if <([y position v] of [1 v]) > (y position)> then\n            set [y v] to [10]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwhen I start as a clone\nif <(y position) = (pick random (-185) to (-103))> then\n    go to x: (245) y: (-66)\nend\n\nwait (pick random (5) to (15)) seconds\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [next v]\ndelete this clone\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    set [y v] to [5]\n    change [x2 v] by (5)\nend\n\n@17\n\nwhen flag clicked\nforever\n    switch costume to (ステージ)\nend\n\n@エンダードラゴン\n\nwhen flag clicked\nset [エンダードラゴン v] to [0]\nhide\nforever\n    if <(ステージ) = [15]> then\n        show\n        broadcast (エンダードラゴン1 v)\n        wait until <(ステージ) = [41]>\n    end\nend\n\nwhen I receive [エンダードラゴン1 v]\nforever\n    set [エンダードラゴン v] to [1]\n    repeat (9)\n        change [エンダードラゴン v] by (1)\n        wait (0.001) seconds\n    end\n    repeat (9)\n        change [エンダードラゴン v] by (-1)\n        wait (0.001) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (エンダードラゴン)\nend\n\nwhen I receive [攻撃 v]\nwait (0.15) seconds\nif <touching (4 v)?> then\n    start sound (pick random (1) to (3))\n    change [ｈp v] by (-1)\n    if <(Ｈp) < [1]> then\n        set [enndeorの判定 v] to [撃破]\n        hide\n    end\n    if <(ステージ) = [41]> then\n        change [エンダードラゴン v] by (10)\n        wait (0.2) seconds\n        change [エンダードラゴン v] by (-10)\n    end\nend\n\nwhen flag clicked\nset [enndeorの判定 v] to [No]\nhide variable [ｈp v]\nset [ｈp v] to [30]\nset [エンダードラゴン v] to [0]\nset rotation style [left-right v]\nset size to (80) %\nhide\nforever\n    if <(ステージ) = [15]> then\n        go to x: (-13) y: (-35)\n        show\n        repeat until <(ステージ) = [16]>\n            wait (1) seconds\n            point in direction (90)\n            repeat (50)\n                change x by (1)\n                change y by (1)\n            end\n            point in direction (-90)\n            repeat (50)\n                change x by (-1)\n                change y by (-1)\n            end\n            point in direction (-90)\n            repeat (50)\n                change x by (-1)\n                change y by (-1)\n            end\n            point in direction (90)\n            repeat (50)\n                change x by (1)\n                change y by (1)\n            end\n            wait (4) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (1 v)?> then\n    end\nend\n\nbroadcast (攻撃された v)\nwait (1) seconds\n\nwhen flag clicked\nforever\n    if <(ステージ) = [41]> then\n        hide\n    end\nend\n\nwhen I receive [next v]\nif <(ステージ) = [16]> then\n    if <not <(enndeorの判定) = [撃破]>> then\n        change [ステージ v] by (-1)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<(ステージ) = [15]> and <not <(enndeorの判定) = [撃破]>>> then\n        wait (pick random (1) to (5)) seconds\n        broadcast (発射 v)\n    end\nend\n\n@うぇざー\n\nwhen flag clicked\nforever\n    if <(ステージ) = [15]> then\n        show\n        forever\n            switch costume to (Ｈp)\n        end\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [16]> then\n        hide\n    end\nend\n\n@佐宗\n\nwhen [timer v] > (0)\nstart sound [TheFatRat - Fly Away feat v]\ngo to x: (0) y: (555)\nrepeat (50)\n    go to [front v] layer\n    switch costume to (べく v)\n    change y by (((0) - (y position)) / (10))\nend\ngo to x: (0) y: (0)\nwait (0.1) seconds\nforever\n    go to [front v] layer\n    set size to (100) %\n    show\n    if <<(costume [number v]) = [2]> or <(costume [number v]) = [3]>> then\n        go to x: (-40) y: (0)\n        set [brightness v] effect to (100)\n        set [縦 v] to [35]\n        set [横 v] to [20]\n        repeat (10)\n            change [brightness v] effect by (-10)\n            change size by (((130) - (size)) / (5))\n            set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n            set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (7)))\n            change x by (縦)\n            change y by (横)\n        end\n        repeat (20)\n            change size by (((100) - (size)) / (5))\n            set [縦 v] to (((縦) * (0.75)) + (((0) - (x position)) / (8.5)))\n            set [横 v] to (((横) * (0.75)) + (((0) - (y position)) / (5)))\n            change x by (縦)\n            change y by (横)\n        end\n    end\n    wait (2) seconds\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nforever\n    change [ghost v] effect by (10)\nend\n\nturn right (15) degrees\n\n@頭\n\nwhen flag clicked\ngo to x: (-160) y: (-90)\nset size to (600) %\nhide\n\nwhen I receive [発射 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nswitch costume to (ウィザー v)\nshow\ngo to (エンダードラゴン v)\npoint towards (1 v)\nforever\n    move (10) steps\n    if <<touching (_edge_ v)?> or <touching (地面 v)?>> then\n        repeat (6)\n            wait (0.000000001) seconds\n            next costume\n        end\n        start sound [get4 v]\n        delete this clone\n    end\n    if <touching (1 v)?> then\n        broadcast (弓当たる v)\n        repeat (6)\n            wait (0.000000001) seconds\n            next costume\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [攻撃 v]\nif <touching (4 v)?> then\n    repeat (6)\n        wait (0.000000001) seconds\n        next costume\n    end\n    start sound [get4 v]\n    hide\n    wait (1) seconds\n    delete this clone\nend\n\nwhen I receive [攻撃準備 v]\nif <touching (4 v)?> then\n    repeat (6)\n        wait (0.000000001) seconds\n        next costume\n    end\n    start sound [get4 v]\n    hide\n    wait (1) seconds\n    delete this clone\nend\n\n