Minecraft Platformer/マインクラフトプラットフォーマー!!

Instructions: Part 2 https://scratch.mit.edu/projects/973124322/\nPlease read all すべて読んでください\n・操作　control　モバイル操作性△　ｺﾞﾒﾝ(_ _;)\nArrow or point control Space or Attack button to attack\nTo change weapon, press 1 or 2 key or sword or axe button\nz or ❤ button to recover\n矢印・ポイント操作　スペースまたは攻撃ボタンで攻撃\n斧・剣ボタンを押すまたは1・2キまたは剣や斧のボタンを押して武器を変える\nzまたは❤ボタンで回復\n・武器 attack\n敵を倒すと武器がアップグレードされます。\nWeapons are upgraded when enemies are defeated.\n剣　石 stone　ATK2　KB10\n鉄 iron　　ATK3　KB10\nダイヤ diamond　ATK4　KB10\n果てのロッド end rod　ATK5　KB10\nネザライト netherite　ATK6　KB10\n斧　石 stone　ATK7　KB20\n鉄 iron　ATK8　KB20\nダイヤ diamond　ATK10　KB20\n果てのロッド end rod　ATK12　KB20\nネザライト netherite　ATK17　KB20\n(クリティカルヒットで2倍ATKを発揮)\n(クリティカルヒットはジャンプして攻撃すると発生)\n(Critical hit gives 2x ATK)\n(Critical hit occurs when you jump and attack)

@Stage\n\nwhen flag clicked\nstop all sounds\nforever\n    play sound (pick random (1) to (7)) until done\nend\n\nwhen I receive [goal v]\nwait (0.2) seconds\nif <(ステージ) = [0]> then\n    create clone of (プラットフォーマー2 v)\nend\nif <(ステージ) = [1]> then\n    create clone of (プラットフォーマー v)\n    create clone of (プラットフォーマー2 v)\nend\nif <(ステージ) = [2]> then\n    create clone of (プラットフォーマー3 v)\n    create clone of (プラットフォーマー2 v)\n    create clone of (プラットフォーマー3 v)\nend\nif <(ステージ) = [3]> then\n    create clone of (プラットフォーマー3 v)\n    repeat (3)\n        create clone of (プラットフォーマー2 v)\n    end\nend\nif <(ステージ) = [4]> then\n    create clone of (プラットフォーマー4 v)\nend\nif <[5] = (ステージ)> then\n    create clone of (プラットフォーマー4 v)\n    create clone of (プラットフォーマー3 v)\nend\nif <(ステージ) = [6]> then\n    create clone of (プラットフォーマー5 v)\n    create clone of (プラットフォーマー6 v)\n    create clone of (プラットフォーマー8 v)\nend\nif <(ステージ) = [7]> then\n    repeat (2)\n        create clone of (プラットフォーマー5 v)\n        create clone of (プラットフォーマー8 v)\n    end\n    repeat (1)\n        create clone of (プラットフォーマー2 v)\n    end\n    repeat (2)\n        create clone of (プラットフォーマー v)\n    end\nend\nif <(ステージ) = [8]> then\n    create clone of (プラットフォーマー v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [10]\n    set [スポーン v] to [プラットフォーマー]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [9]> then\n    create clone of (プラットフォーマー6 v)\n    create clone of (プラットフォーマー v)\n    repeat (2)\n        create clone of (プラットフォーマー2 v)\n    end\nend\nif <(ステージ) = [10]> then\n    create clone of (プラットフォーマー5 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー5]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [11]> then\n    create clone of (プラットフォーマー6 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー6]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [12]> then\n    create clone of (プラットフォーマー5 v)\n    create clone of (プラットフォーマー4 v)\n    create clone of (プラットフォーマー6 v)\n    repeat (2)\n        create clone of (プラットフォーマー7 v)\n    end\nend\nif <(ステージ) = [13]> then\n    create clone of (プラットフォーマー7 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー7]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [14]> then\n    create clone of (プラットフォーマー8 v)\n    create clone of (プラットフォーマー8 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー8]\n    broadcast (スポナー v)\nend\n\nrepeat (１)\n\nwhen I receive [あ v]\nif <(ステージ) = [0]> then\n    create clone of (プラットフォーマー3 v)\n    create clone of (プラットフォーマー2 v)\nend\nif <(ステージ) = [1]> then\n    create clone of (プラットフォーマー2 v)\n    create clone of (プラットフォーマー v)\nend\nif <(ステージ) = [2]> then\n    create clone of (プラットフォーマー3 v)\n    create clone of (プラットフォーマー3 v)\n    create clone of (プラットフォーマー2 v)\nend\nif <(ステージ) = [3]> then\n    create clone of (プラットフォーマー3 v)\n    repeat (3)\n        create clone of (プラットフォーマー2 v)\n    end\nend\nif <(ステージ) = [4]> then\n    create clone of (プラットフォーマー4 v)\nend\nif <(ステージ) = [5]> then\n    repeat (1)\n        create clone of (プラットフォーマー4 v)\n        create clone of (プラットフォーマー3 v)\n    end\nend\nif <(ステージ) = [6]> then\n    create clone of (プラットフォーマー5 v)\n    create clone of (プラットフォーマー6 v)\n    create clone of (プラットフォーマー8 v)\nend\nif <(ステージ) = [7]> then\n    repeat (2)\n        create clone of (プラットフォーマー5 v)\n        create clone of (プラットフォーマー8 v)\n    end\n    repeat (1)\n        create clone of (プラットフォーマー2 v)\n    end\n    repeat (2)\n        create clone of (プラットフォーマー v)\n    end\nend\nif <(ステージ) = [8]> then\n    create clone of (プラットフォーマー v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [10]\n    set [スポーン v] to [プラットフォーマー]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [9]> then\n    create clone of (プラットフォーマー6 v)\n    create clone of (プラットフォーマー v)\n    repeat (2)\n        create clone of (プラットフォーマー2 v)\n    end\nend\nif <(ステージ) = [10]> then\n    create clone of (プラットフォーマー5 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー5]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [11]> then\n    create clone of (プラットフォーマー6 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー6]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [12]> then\n    create clone of (プラットフォーマー5 v)\n    create clone of (プラットフォーマー4 v)\n    create clone of (プラットフォーマー6 v)\n    repeat (2)\n        create clone of (プラットフォーマー7 v)\n    end\nend\nif <(ステージ) = [13]> then\n    create clone of (プラットフォーマー7 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー7]\n    broadcast (スポナー v)\nend\nif <(ステージ) = [14]> then\n    create clone of (プラットフォーマー8 v)\n    create clone of (プラットフォーマー8 v)\n    replace item (1) of [スポナーの位置 v] with [190]\n    replace item (2) of [スポナーの位置 v] with [-55]\n    set [スポーン v] to [プラットフォーマー8]\n    broadcast (スポナー v)\nend\n\nrepeat (3)\n\nwhen flag clicked\n\nwhen I receive [クリティカル v]\nstart sound [SWORD2 v]\nrepeat (8)\n    create clone of (スプライト6 v)\nend\n\ncreate clone of (プラットフォーマー v)\n\nwhen [d v] key pressed\nbroadcast (クリティカル v)\n\nstart sound [SWORD2 v]\nrepeat (8)\n    create clone of (スプライト6 v)\nend\n\nwhen I receive [イントロ終了 v]\ncreate clone of (プラットフォーマー3 v)\ncreate clone of (プラットフォーマー2 v)\n\nforever\n    wait (0.5) seconds\n    create clone of (プラットフォーマー5 v)\nend\n\nset [クリティカル判定 v] to [0]\n\nwhen [a v] key pressed\ncreate clone of (プラットフォーマー5 v)\ncreate clone of (プラットフォーマー4 v)\ncreate clone of (プラットフォーマー v)\ncreate clone of (プラットフォーマー2 v)\ncreate clone of (プラットフォーマー3 v)\ncreate clone of (プラットフォーマー6 v)\ncreate clone of (プラットフォーマー7 v)\n\ncreate clone of (プラットフォーマー5 v)\n\nwhen [e v] key pressed\ncreate clone of (プラットフォーマー8 v)\n\nforever\n\nstop all sounds\nplay sound (pick random (1) to (7)) until done\n\nwhen I receive [クリティカル v]\nwait (0.1) seconds\nrepeat (8)\n    create clone of (スプライト6 v)\nend\n\ncreate clone of (プラットフォーマー v)\nreplace item (1) of [スポナーの位置 v] with [190]\nreplace item (2) of [スポナーの位置 v] with [10]\nbroadcast (スポナー v)\n\nwhen flag clicked\nset [スポーン v] to [0]\n\nwhen I receive [イントロ終了 v]\nwait (0.1) seconds\nswitch backdrop to (背景2 v)\nwait until <(ステージ) = [6]>\nswitch backdrop to (背景3 v)\nwait until <(ステージ) = [9]>\nswitch backdrop to (背景2 v)\n\nreplace item (1) of [スポナーの位置 v] with [190]\nreplace item (2) of [スポナーの位置 v] with [10]\nset [スポーン v] to [プラットフォーマー]\nbroadcast (スポナー v)\n\n@イントロォ\n\ngo [backward v] (2) layers\n\nset [効果 self v] to [-4]\n\nwhen I start as a clone\ngo to [front v] layer\nwait (0.51) seconds\nset rotation style [all around v]\nswitch costume to (コスチューム15 v)\nset [回転 self v] to [30]\nset [効果 self v] to [20]\nrepeat until <(回転 self) < [0.1]>\n    set [回転 self v] to ((回転 self) * (0.82))\n    turn right (回転 self) degrees\nend\nwait (0.5) seconds\nset [回転 self v] to [30]\nset [効果 self v] to [20]\nrepeat until <(回転 self) < [0.1]>\n    set [回転 self v] to ((回転 self) * (0.82))\n    turn right (回転 self) degrees\nend\nrepeat (2)\n    set [回転 self v] to [20]\n    set [効果 self v] to [20]\n    repeat until <(回転 self) < [1]>\n        set [回転 self v] to ((回転 self) * (0.82))\n        turn right (回転 self) degrees\n    end\n    wait (0.2) seconds\nend\nset [回る v] to (DIR)\nbroadcast (イントロ v)\nrepeat until <(round (回る)) = ((DIR) + (360))>\n    switch costume to (コスチューム15 v)\n    change [回る v] by ((((DIR) + (360)) - (回る)) / (8))\n    point in direction (回る)\nend\n\nwhen flag clicked\nhide\nif <(username) = (ユーザー)> then\n    broadcast (イントロ終了 v)\nelse\n    set [ユーザー v] to (username)\n    hide\n    switch costume to (コスチューム13 v)\n    set [ghost v] effect to (99)\n    set size to (118) %\n    show\n    repeat (14)\n        next costume\n    end\n    hide\n    switch costume to (コスチューム13 v)\n    set size to (118) %\n    clear graphic effects\n    set [color v] effect to (0)\n    show\n    point in direction (90)\n    start sound [ユニティ2 v]\n    switch costume to (コスチューム5 v)\n    repeat (2)\n        set [効果 self v] to [20]\n        set [回転 self v] to [20]\n        repeat until <(回転 self) < [0.1]>\n            set [回転 self v] to ((回転 self) * (0.82))\n            turn right (回転 self) degrees\n        end\n    end\n    repeat (2)\n        set [回転 self v] to [20]\n        set [効果 self v] to [20]\n        repeat until <(回転 self) < [1]>\n            set [回転 self v] to ((回転 self) * (0.82))\n            turn right (回転 self) degrees\n        end\n    end\n    point in direction (90)\n    repeat (11)\n        next costume\n    end\n    switch costume to (コスチューム15 v)\n    create clone of (_myself_ v)\n    switch costume to (コスチューム14 v)\n    wait (0) seconds\n    go to [front v] layer\n    wait (0.4) seconds\n    set [回転 self v] to [40]\n    set [効果 self v] to [20]\n    repeat until <(回転 self) < [0.1]>\n        set [回転 self v] to ((回転 self) * (0.82))\n        turn right (回転 self) degrees\n    end\n    wait (0.5) seconds\n    set [回転 self v] to [40]\n    set [効果 self v] to [20]\n    repeat until <(回転 self) < [0.1]>\n        set [回転 self v] to ((回転 self) * (0.82))\n        turn right (回転 self) degrees\n    end\n    repeat (2)\n        point in direction (90)\n        set [s v] to [0]\n        set size to (0) %\n        repeat (18)\n            if <mouse down?> then\n                delete this clone\n            end\n            set [s v] to (((s) * (0.75)) + (((130) - (size)) * (0.3)))\n            change size by (s)\n        end\n    end\n    set [回る v] to (DIR)\n    repeat until <(round (回る)) = ((DIR) + (450))>\n        change [回る v] by ((((DIR) + (450)) - (回る)) / (8))\n        point in direction (回る)\n    end\n    set [効果 self v] to [20]\n    change [brightness v] effect by (効果 self)\n    wait (0.1) seconds\n    change [効果 self v] by ((効果 self) * (0.99))\nend\n\nwait () seconds\n\nwhen I receive [イントロ v]\nwait (1) seconds\nrepeat (12)\n    switch costume to ((costume [number v]) - (1))\nend\nwait (1) seconds\nrepeat (80)\n    change [brightness v] effect by (3)\nend\nrepeat (35)\n    change [ghost v] effect by (3)\nend\nbroadcast (イントロ終了 v)\nhide\n\nbroadcast (終了 v)\nhide\n\nif  then\n\nset [ユーザー v] to [0]\n\n@キャラ\n\nwhen I start as a clone\nclear graphic effects\nset size to (100) %\nrepeat (100)\n    change size by (-4)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen flag clicked\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nhide\n\nwhen flag clicked\ngo [forward v] (3) layers\ngo to x: (-199) y: (60)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (78) %\nset [xパワー v] to [0]\nset [y　パワー v] to [0]\nset [ステージ v] to [0]\nshow\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nwhen I receive [goal v]\nset [y　パワー v] to [0]\nset [xパワー v] to [0]\n\nforever\n    wait (pick random (1.9) to (0.1)) seconds\n    start sound [Boop Bing Bop v]\n    set [y　パワー v] to [18]\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    switch costume to (1 v)\n    wait (pick random (1) to (5)) seconds\n    set [s v] to [1]\n    switch costume to (4 v)\n    wait (0.05) seconds\n    switch costume to (5 v)\n    start sound [pop2 v]\n    wait (0.05) seconds\n    switch costume to (3 v)\n    wait (0.2) seconds\n    switch costume to (5 v)\n    wait (0.05) seconds\n    switch costume to (4 v)\n    wait (0.05) seconds\n    set [s v] to [0]\nend\n\nswitch costume to (1 v)\n\nwhen I start as a clone\nswitch costume to (2 v)\n\n\n\nif <<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> then\n\nwhen I receive [アニメーション v]\nhide\n\nif <touching color (#fffe19)?> then\n    start sound [Boop Bing Bop v]\n    set [y　パワー v] to [18]\n    create clone of (_myself_ v)\nend\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nwhen I receive [あ v]\nclear graphic effects\nset [y　パワー v] to [0]\nset [xパワー v] to [0]\nshow\nset [hp v] to [20]\ngo to x: (-199) y: (60)\n\nwhen I receive [あ v]\ndelete this clone\n\ncreate clone of (_myself_ v)\n\nforever\n    wait (0.18) seconds\nend\n\nif <(direction) = [90]> then\n    set [xパワー v] to [-20]\nelse\n    set [xパワー v] to [20]\nend\nset [y　パワー v] to [5]\n\nwhen I receive [イントロ終了 v]\nshow\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\nforever\n    change y by (1)\n    change [y　パワー v] by (-0.65)\n    if <<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> then\n        change [xパワー v] by (0.6)\n        point in direction (90)\n    end\n    if <<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> then\n        change [xパワー v] by (-0.6)\n        point in direction (-90)\n    end\n    set [xパワー v] to ((xパワー) * (0.9))\n    change x by (xパワー)\n    if <touching (地面 v)?> then\n        change y by (1)\n    end\n    if <touching (地面 v)?> then\n        change y by (-1)\n        change x by ((xパワー) * (-1))\n        set [y　パワー v] to [0]\n        if <<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> then\n            set [y　パワー v] to [6]\n            if <(xパワー) > [0]> then\n                set [xパワー v] to [-3]\n            else\n                set [xパワー v] to [3]\n            end\n        else\n            set [y　パワー v] to [0]\n        end\n    end\n    change y by (y　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        set [クリティカル判定 v] to [0]\n        change y by ((0) - (y　パワー))\n        set [y　パワー v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching (地面 v)?>> or <<mouse down?> and <<touching (地面 v)?> and <(mouse y) > [50]>>>> then\n        set [s2 v] to [1]\n        set [クリティカル判定 v] to [1]\n        start sound [suck1 v]\n        set [y　パワー v] to [7]\n        create clone of (_myself_ v)\n    end\n    if <[-166] > (y position)> then\n        broadcast (あ v)\n        go to x: (-199) y: (60)\n        play sound [Oops v] until done\n    end\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y　パワー v] to [18]\n    end\n    if <(ステージ) = [15]> then\n        set [hp v] to [20]\n    else\n        if <(x position) > [230]> then\n            if <(スポーン) = [0]> then\n                broadcast (Goal v)\n                change [ステージ v] by (1)\n                go to x: (-199) y: (60)\n                wait (1.2) seconds\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\n\nforever\n    if <key (z v) pressed?> then\nend\n\nwait (10) seconds\n\nbroadcast (毒 v)\n\nchange [hp v] by (pick random (-5) to (-8))\n\nwhen I receive [goal v]\ngo to x: (-199) y: (60)\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if < or <touching (プラットフォーマー v)?>> then\n        start sound (pick random (2) to (4))\n        change [hp v] by (pick random (-1) to (-5.5))\n        broadcast (ダメージ v)\n        if <(direction) = [90]> then\n            set [xパワー v] to [-10]\n        else\n            set [xパワー v] to [10]\n        end\n        set [y　パワー v] to [7]\n        wait (0.6) seconds\n        set [pitch v] effect to ()\n    end\nend\n\nwhen I receive [goal v]\n\nstop [this script v]\n\nwhen I receive [ゲームオーバー v]\nstart sound [Oops v]\nset [ghost v] effect to (99)\n\nhide\n\nforever\n    if <touching (地面 v)?> then\nend\n\nwhen flag clicked\n\ngo to x: (999) y: (60)\n\nset [pitch v] effect to (pick random (-30) to (30))\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (スプライト7 v)?> then\n        start sound (pick random (2) to (4))\n        broadcast (ダメージ v)\n        change [hp v] by (pick random (-1) to (-4))\n        if <(direction) = [90]> then\n            set [xパワー v] to [-6]\n        else\n            set [xパワー v] to [6]\n        end\n        set [y　パワー v] to [4]\n        wait (0.6) seconds\n        set [pitch v] effect to ()\n    end\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (プラットフォーマー4 v)?> then\n        start sound (pick random (2) to (4))\n        change [hp v] by (pick random (-5) to (-8))\n        broadcast (ダメージ v)\n        if <(direction) = [90]> then\n            set [xパワー v] to [-20]\n        else\n            set [xパワー v] to [20]\n        end\n        set [y　パワー v] to [6]\n        wait (1.2) seconds\n        set [pitch v] effect to ()\n    end\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (プラットフォーマー5 v)?> then\n        start sound (pick random (2) to (4))\n        change [hp v] by (pick random (-2) to (-1))\n        broadcast (ダメージ v)\n        if <(direction) = [90]> then\n            set [xパワー v] to [-10]\n        else\n            set [xパワー v] to [10]\n        end\n        set [y　パワー v] to [6]\n        wait (0.6) seconds\n        set [pitch v] effect to ()\n    end\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (スプライト13 v)?> then\n        start sound (pick random (13) to (15))\n        change [hp v] by (-1)\n        broadcast (ダメージ v)\n        broadcast (炎 v)\n        wait (0.4) seconds\n    end\nend\n\nif <(direction) = [90]> then\n    set [xパワー v] to [-14]\nelse\n    set [xパワー v] to [14]\nend\nset [y　パワー v] to [6]\nwait (1.2) seconds\nset [pitch v] effect to ()\n\nwhen I receive [炎 v]\n\nrepeat (10)\n    wait (1) seconds\n    broadcast (ダメージ v)\n    start sound (pick random (13) to (15))\n    change [hp v] by (-1)\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <<touching color (#9805ff)?> and <touching (プラットマー2 v)?>> then\n        broadcast (毒 v)\n        wait (0.4) seconds\n    end\nend\n\nstart sound (pick random (13) to (15))\nchange [hp v] by (-1)\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <<touching color (#f75e09)?> and <touching (プラットマー2 v)?>> then\n        start sound (pick random (4) to (2))\n        broadcast (ダメージ v)\n        change [hp v] by (-6)\n        wait (0.4) seconds\n    end\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (プラットフォーマー7 v)?> then\n        start sound (pick random (2) to (4))\n        change [hp v] by (pick random (-1) to (-4))\n        broadcast (毒 v)\n        broadcast (ダメージ v)\n        if <(direction) = [90]> then\n            set [xパワー v] to [-14]\n        else\n            set [xパワー v] to [14]\n        end\n        set [y　パワー v] to [6]\n        wait (1.2) seconds\n        set [pitch v] effect to ()\n    end\nend\n\nwhen flag clicked\nset [hp v] to [20]\nforever\n    if <touching (プラットフォーマー8 v)?> then\n        start sound (pick random (2) to (4))\n        change [hp v] by (pick random (-4) to (-9))\n        broadcast (ダメージ v)\n        if <(direction) = [90]> then\n            set [xパワー v] to [-14]\n        else\n            set [xパワー v] to [14]\n        end\n        set [y　パワー v] to [6]\n        wait (1.2) seconds\n        set [pitch v] effect to ()\n    end\nend\n\n@地面\n\nwhen I receive [goal v]\nshow\nnext costume\n\nwhen flag clicked\nshow\nset [brightness v] effect to (10)\nswitch costume to (コスチューム4 v)\ngo to [back v] layer\ngo [forward v] (1) layers\n\n@地面2\n\nwhen I receive [goal v]\nshow\ngo to (地面 v)\nnext costume\n\nwhen flag clicked\nswitch costume to (コスチューム4 v)\nshow\nclear graphic effects\nset [ghost v] effect to (35)\nset [brightness v] effect to (10)\n\n@スプライト2\n\nwhen flag clicked\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (([x position v] of [キャラ v]) + (-10)) y: (([y position v] of [キャラ v]) + (-15))\n    switch costume to ([costume # v] of [スプライト1 v])\nend\n\nturn left (7.5) degrees\n\nwhen flag clicked\n\ngo to [front v] layer\ngo to x: (([x position v] of [キャラ v]) + (-10)) y: (([y position v] of [キャラ v]) + (-15))\nif <key (1 v) pressed?> then\n    switch costume to (コスチューム1 v)\nend\nif <key (2 v) pressed?> then\n    switch costume to (コスチューム2 v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nswitch costume to (コスチューム2 v)\nswitch costume to (コスチューム1 v)\n\nif <key (1 v) pressed?> then\n    switch costume to (() + (武器強さ))\nend\nif <key (2 v) pressed?> then\n\nif <(costume [number v]) = [9]> then\n    wait (0.8) seconds\nend\n\nif <<(costume [number v]) = [8]> or <(costume [number v]) = [9]>> then\n    wait (0.8) seconds\nelse\n    if <(costume [number v]) = [10]> then\n        wait (1.5) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [イントロ終了 v]\npoint in direction (90)\nforever\n    if <<key (space v) pressed?> or <(攻撃する) = [1]>> then\n        if < (costume [name v]) contains [1]?> then\n            repeat (5)\n                turn right (-10) degrees\n            end\n            broadcast (バック v)\n            wait until <not <key (space v) pressed?>>\n            if <not <key (space v) pressed?>> then\n                point in direction (90)\n            end\n        else\n            repeat (5)\n                turn right (-17) degrees\n            end\n            if <(costume [number v]) = [8]> then\n                wait (0.3) seconds\n            else\n                if <(costume [number v]) = [9]> then\n                    wait (0.5) seconds\n                else\n                    if <(costume [number v]) = [10]> then\n                        wait (0.6) seconds\n                    end\n                end\n            end\n            repeat (34)\n                turn left (-2.5) degrees\n            end\n            wait (0.1) seconds\n        end\n    end\nend\n\nrepeat (5)\n    turn left (-10) degrees\nend\n\nwhen I receive [イントロ終了 v]\nforever\n    if <([direction v] of [キャラ v]) = [90]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [バック v]\n\nwhen I receive [バック v]\nrepeat (5)\n    turn left (10) degrees\n    if <key (space v) pressed?> then\n        point in direction (90)\n        stop [this script v]\n    end\n    if <[69] < (direction)> then\n        point in direction (90)\n        stop [this script v]\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\n\nif <(costume [number v]) = [9]> then\n    wait (0.8) seconds\nend\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go to x: (([x position v] of [キャラ v]) + (10)) y: (([y position v] of [キャラ v]) + (-15))\n    if <(アタックアイテム) = [1]> then\n        set [アックス v] to [0]\n        switch costume to (() + (武器強さ))\n        if <(costume [number v]) = [1]> then\n            set [アタック v] to [3]\n        else\n            if <(costume [number v]) = [2]> then\n                set [アタック v] to [4]\n            else\n                if <(costume [number v]) = [3]> then\n                    set [アタック v] to [5]\n                else\n                    if <(costume [number v]) = [4]> then\n                        set [アタック v] to [6]\n                    else\n                        if <(costume [number v]) = [5]> then\n                            set [アタック v] to [7]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <(アタックアイテム) = [2]> then\n        set [アックス v] to [1]\n        switch costume to ((5) + (武器強さ))\n        if <(costume [number v]) = [6]> then\n            set [アタック v] to [7]\n        else\n            if <(costume [number v]) = [7]> then\n                set [アタック v] to [8]\n            else\n                if <(costume [number v]) = [8]> then\n                    set [アタック v] to [10]\n                else\n                    if <(costume [number v]) = [9]> then\n                        set [アタック v] to [12]\n                    else\n                        if <(costume [number v]) = [10]> then\n                            set [アタック v] to [16.5]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nturn left (7.5) degrees\n\nwhen flag clicked\n\n\n\nif <key (space v) pressed?> then\n    repeat (5)\n        turn right (10) degrees\n    end\n    point in direction (90)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nswitch costume to (() + (武器強さ))\n\nset [武器強さ v] to [1]\n\nwhen I receive [goal v]\n\nwhen flag clicked\nforever\n    if <[1] < (変数)> then\n        change [武器強さ v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <[5] < (変数)> then\n        change [武器強さ v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <[10] < (変数)> then\n        change [武器強さ v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <[18] < (変数)> then\n        change [武器強さ v] by (1)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [イントロ終了 v]\nset [変数 v] to [0]\nset [武器強さ v] to [1]\npoint in direction (90)\nforever\n    if <<key (space v) pressed?> or <(攻撃する) = [1]>> then\n        if < (costume [name v]) contains [1]?> then\n            point in direction (90)\n            set [攻撃 v] to [1]\n            start sound [SWORD3 v]\n            repeat (5)\n                turn right (10) degrees\n            end\n            set [攻撃 v] to [0]\n            broadcast (戻る v)\n            wait until <not <key (space v) pressed?>>\n            if <not <key (space v) pressed?>> then\n                point in direction (90)\n            end\n        else\n            point in direction (90)\n            set [攻撃 v] to [1]\n            start sound [SWORD3 v]\n            repeat (5)\n                turn right (17) degrees\n            end\n            set [攻撃 v] to [0]\n            if <(costume [number v]) = [8]> then\n                wait (0.3) seconds\n            else\n                if <(costume [number v]) = [9]> then\n                    wait (0.5) seconds\n                else\n                    if <(costume [number v]) = [10]> then\n                        wait (0.6) seconds\n                    end\n                end\n            end\n            repeat (34)\n                turn left (2.5) degrees\n            end\n            wait (0.1) seconds\n        end\n    end\nend\n\nwhen I receive [イントロ終了 v]\nforever\n    if <([direction v] of [キャラ v]) = [-90]> then\n        hide\n    else\n        show\n    end\nend\n\nif <(costume [number v]) = [8]> then\n    wait (0.15) seconds\nelse\n    if <(costume [number v]) = [9]> then\n        wait (0.3) seconds\n    else\n        if <(costume [number v]) = [10]> then\n            wait (0.45) seconds\n        end\n    end\nend\n\nswitch costume to ((4) + (武器強さ))\n\nset [アックス v] to [1]\nswitch costume to (コスチューム6 v)\n\nif <(costume [number v]) = [6]> then\n    set [アタック v] to [6]\nelse\n    if <(costume [number v]) = [7]> then\n        set [アタック v] to [7]\n    else\n        if <(costume [number v]) = [8]> then\n            set [アタック v] to [9]\n        else\n            if <(costume [number v]) = [9]> then\n                set [アタック v] to [12]\n            else\n                if <(costume [number v]) = [10]> then\n                    set [アタック v] to [18]\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (2 v) pressed?> then\n        set [アタックアイテム v] to [2]\n    else\n        if <key (1 v) pressed?> then\n            set [アタックアイテム v] to [1]\n        end\n    end\nend\n\nwhen I receive [戻る v]\nrepeat (5)\n    turn left (10) degrees\n    if <key (space v) pressed?> then\n        stop [this script v]\n    end\n    if <(direction) < [116]> then\n        point in direction (90)\n        stop [this script v]\n    end\nend\n\nwait (0.1) seconds\n\n\n\nwait (0.05) seconds\n\npoint in direction (90)\nset [攻撃 v] to [1]\nstart sound [SWORD3 v]\nrepeat (5)\n    turn right (10) degrees\nend\nset [攻撃 v] to [0]\nbroadcast (戻る v)\nwait until <not <key (space v) pressed?>>\nif <not <key (space v) pressed?>> then\n    point in direction (90)\nend\n\nchange [武器強さ v] by (1)\n\n@スプライト5\n\nwhen flag clicked\nhide\n\nwhen I receive [ゲームオーバー v]\nshow\ngo to [front v] layer\nwait (2) seconds\nbroadcast (あ v)\nhide\n\nstop [all v]\n\n@プラットフォーマー\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [25]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.01))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.3))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.01)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.3)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [15]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [9]\n                else\n                    set [y v　パワー v] to [20]\n                end\n                if <(x position) < ([x position v] of [キャラ v])> then\n                    if <(ボス) = [0]> then\n                        set [x v　パワー v] to [10]\n                    else\n                        set [x v　パワー v] to [16]\n                    end\n                else\n                    if <([x position v] of [キャラ v]) < (x position)> then\n                        if <(ボス) = [0]> then\n                            set [x v　パワー v] to [-10]\n                        else\n                            set [x v　パワー v] to [-16]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\n\n\nif <(クリティカル判定) = [1]> then\n    set [クリティカル2 v] to (y position)\n    set [クリティカル v] to (x position)\n    broadcast (クリティカル v)\n    change [hp v] by (() - ((アタック) * (1.5)))\nelse\n    change [hp v] by (() - (アタック))\nend\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー2\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [27]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.01))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.3))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.01)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.3)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [14]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [12]\n                else\n                    set [y v　パワー v] to [20]\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nstart sound [Boop Bing Bop v]\nset [y v　パワー v] to [18]\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー3\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [27]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <[200] < (distance to [キャラ v])> then\n            change [x v　パワー v] by (pick random (0.4) to (0.3))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (-0.3) to (-0.4))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <[200] < (distance to [キャラ v])> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.3)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (pick random (0.4) to (0.3))\n            point in direction (-90)\n        end\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [14]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        end\n    end\nend\n\npoint in direction (-90)\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\ngo to x: (240) y: (70)\n\ngo to (キャラ v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\n\n    switch costume to (1 v)\n    wait (pick random (0.5) to (1)) seconds\n    start sound [弓を引き絞る1 v]\n    switch costume to (4 v)\n    wait (0.2) seconds\n    switch costume to (2 v)\n    wait (0.2) seconds\n    switch costume to (3 v)\n    wait (0.5) seconds\n    set [r v] to (direction)\n    set [xxx v] to (x position)\n    set [yyy v] to (y position)\n    start sound [弓矢を放つ v]\n    create clone of (スプライト7 v)\nend\n\nwait (0.1) seconds\n\nif <[0] = (pick random (0) to (20))> then\n    set [s2 v] to [1]\n    start sound [suck1 v]\n    if <(ボス) = [0]> then\n        set [y v　パワー v] to [12]\n    else\n        set [y v　パワー v] to [20]\n    end\nend\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー4\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [40]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.01))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.3))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.01)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.3)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [14]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [12]\n                else\n                    set [y v　パワー v] to [20]\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (8)\n                else\n                    change [x v　パワー v] by (5)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-8)\n                else\n                    change [x v　パワー v] by (-5)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー5\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [27]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-0.1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.01))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.3))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.01)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.3)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n        if <[0] = (pick random (0) to (15))> then\n            set [s2 v] to [1]\n            start sound [suck1 v]\n            if <(ボス) = [0]> then\n                set [y v　パワー v] to [3]\n            else\n                set [y v　パワー v] to [26]\n            end\n        end\n    else\n        if <[0] = (pick random (0) to (100))> then\n            set [s2 v] to [1]\n            start sound [suck1 v]\n            if <(ボス) = [0]> then\n                set [y v　パワー v] to [3]\n            else\n                set [y v　パワー v] to [20]\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [3]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nwhen I start as a clone\n\n    wait (pick random (1.5) to (3)) seconds\n    set [yyyy v] to (y position)\n    set [xxxx v] to (x position)\n    repeat (3)\n        start sound [マッチで火をつける v]\n        create clone of (スプライト13 v)\n        wait (0.3) seconds\n    end\nend\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー6\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to (pick random (20) to (30))\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            point in direction (90)\n            if <(distance to [キャラ v]) < [201]> then\n                change [x v　パワー v] by (-0.6)\n            else\n                change [x v　パワー v] by (0.4)\n            end\n        else\n            point in direction (90)\n            if <(distance to [キャラ v]) < [201]> then\n                change [x v　パワー v] by (-0.6)\n            else\n                change [x v　パワー v] by (0.4)\n            end\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            point in direction (-90)\n            if <(distance to [キャラ v]) < [201]> then\n                change [x v　パワー v] by (0.6)\n            else\n                change [x v　パワー v] by (-0.4)\n            end\n        else\n            if <(distance to [キャラ v]) < [201]> then\n                change [x v　パワー v] by (0.6)\n            else\n                change [x v　パワー v] by (-0.4)\n            end\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [15]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [15]\n                else\n                    set [y v　パワー v] to [22]\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\nrepeat (3)\n    wait (0.4) seconds\nend\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (20)\n                else\n                    change [x v　パワー v] by (15)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-20)\n                else\n                    change [x v　パワー v] by (-15)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\n\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <(ボス) = [0]> then\n        wait (pick random (2) to (1.5)) seconds\n    else\n        wait (pick random (2) to (2)) seconds\n    end\n    set [ｘ v] to (x position)\n    set [ｙ v] to (y position)\n    create clone of (プラットマー2 v)\nend\n\nchange [x v　パワー v] by (pick random (0.4) to (0.01))\nchange [x v　パワー v] by (pick random (0.2) to (0.3))\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nif <(distance to [キャラ v]) < [101]> then\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@スプライト6\n\nwhen I start as a clone\npoint in direction (pick random (1) to (360))\nset rotation style [left-right v]\nset size to (25) %\nclear graphic effects\ngo to x: (クリティカル) y: (クリティカル2)\nshow\nset [x v] to ((7) - (pick random (0) to (5)))\nrepeat (20)\n    move (x) steps\n    set [x v] to ((x) * (0.8))\n    change size by (1.5)\n    change [ghost v] effect by (4)\nend\nrepeat (20)\n    change [ghost v] effect by (4)\nend\ndelete this clone\n\n@スプライト7\n\nwhen I start as a clone\nshow\npoint in direction (r)\ngo to x: (xxx) y: (yyy)\nset [パワー! v] to [30]\nrepeat until <<touching (地面 v)?> or <touching (キャラ v)?>>\n    move (パワー!) steps\n    change y by (-1)\n    set [パワー! v] to ((パワー!) * (0.95))\nend\nwait (0.02) seconds\ndelete this clone\n\nif <<<touching (_edge_ v)?> or <touching (地面 v)?>> or <touching (キャラ v)?>> then\n\nwhen I receive [goal v]\ndelete this clone\n\n@スプライト8\n\nwhen I receive [回復 v]\nclear graphic effects\nshow\nswitch costume to (コスチューム1 v)\nrepeat (14)\n    wait (0.5) seconds\n    if <not <[18] < (hp)>> then\n        broadcast (ダメージ v)\n        change [hp v] by (2)\n    end\nend\nrepeat (8)\n    if <not <[19] < (hp)>> then\n        broadcast (ダメージ v)\n        change [hp v] by (1)\n    end\n    set [ghost v] effect to (25)\n    wait (0.3) seconds\n    set [ghost v] effect to (0)\n    wait (0.3) seconds\nend\nhide\n\nwhen I receive [毒 v]\n\nwhen flag clicked\nhide\n\n@スプライト17\n\nwhen flag clicked\nhide\n\nwhen I receive [炎 v]\nclear graphic effects\nshow\nswitch costume to (コスチューム1 v)\nrepeat (4)\n    wait (1) seconds\n    start sound (pick random (1) to (3))\n    broadcast (ダメージ v)\n    change [hp v] by (-1)\nend\nbroadcast (送る v)\nrepeat (3)\n    broadcast (ダメージ v)\n    wait (1) seconds\n    start sound (pick random (1) to (3))\n    change [hp v] by (-1)\nend\n\nif <not <(hp) < [0.5]>> then\n    change [hp v] by (-0.25)\nend\n\nwhen I receive [送る v]\nrepeat (8)\n    set [ghost v] effect to (25)\n    wait (0.3) seconds\n    set [ghost v] effect to (0)\n    wait (0.3) seconds\nend\nhide\nhide\n\n@   a\n\nwhen I receive [毒 v]\nclear graphic effects\nshow\nswitch costume to (コスチューム1 v)\nrepeat (15)\n    wait (0.6) seconds\n    if <not <(hp) < [2]>> then\n        broadcast (ダメージ v)\n        start sound [Crunch v]\n        change [hp v] by (-1)\n    end\nend\nrepeat (4)\n    set [ghost v] effect to (25)\n    wait (0.3) seconds\n    set [ghost v] effect to (0)\n    wait (0.3) seconds\nend\nhide\n\nwhen flag clicked\nhide\n\n@スプライト9\n\nwhen this sprite clicked\nset [アタックアイテム v] to [1]\n\nwhen flag clicked\nshow\nset drag mode [draggable v]\ngo to x: (-207) y: (-144)\n\nwhen [right arrow v] key pressed\nhide\n\n@スプライト10\n\nwhen this sprite clicked\nset [アタックアイテム v] to [2]\n\nwhen flag clicked\nshow\nset drag mode [draggable v]\ngo to x: (-145) y: (-144)\n\nwhen [right arrow v] key pressed\nhide\n\n@スプライト11\n\nwhen flag clicked\nshow\nset drag mode [draggable v]\ngo to x: (-82) y: (-144)\nforever\n    if <<mouse down?> and <touching (mouse-pointer v)?>> then\n        set [攻撃する v] to [1]\n    else\n        set [攻撃する v] to [0]\n    end\nend\n\nwhen [right arrow v] key pressed\nhide\n\n@スプライト12\n\nwhen this sprite clicked\n\nwhen flag clicked\nshow\nset drag mode [draggable v]\ngo to x: (-17) y: (-144)\nforever\n    if <<key (z v) pressed?> or <<mouse down?> and <touching (mouse-pointer v)?>>> then\n        broadcast (回復 v)\n        wait (15) seconds\n    end\nend\n\nwhen [right arrow v] key pressed\nhide\n\nchange [color v] effect by (25)\n\n@スプライト13\n\nwhen I start as a clone\nchange y by (4)\nswitch costume to (image-removebg-preview \(2\) v)\ngo to [back v] layer\ngo [forward v] (3) layers\nclear graphic effects\nshow\nset rotation style [don't rotate v]\ngo to x: (xxxx) y: (yyyy)\nset [パワー! v] to [10]\npoint towards (キャラ v)\nturn right (pick random (-10) to (10)) degrees\nrepeat until <<<touching (地面 v)?> or <touching (_edge_ v)?>> or <touching (キャラ v)?>>\n    move (パワー!) steps\n    set [パワー! v] to ((パワー!) * (0.99))\nend\nwait (0.02) seconds\nswitch costume to (image-removebg-preview \(2\)2 v)\nwait (2) seconds\nrepeat (25)\n    change size by (0.5)\n    change [ghost v] effect by (4)\nend\ndelete this clone\n\nif <<<touching (_edge_ v)?> or <touching (地面 v)?>> or <touching (キャラ v)?>> then\n\n\n    create clone of (_myself_ v)\nend\n\nwhen I receive [goal v]\ndelete this clone\n\n@スプライト14\n\nwhen I receive [スポナー v]\nclear graphic effects\ngo to x: (item (1) of [スポナーの位置 v]) y: (item (2) of [スポナーの位置 v])\nset [hp v] to [40]\nshow\nrepeat until <[1] > (HP)>\n    wait (pick random (2) to (6)) seconds\n    repeat (pick random (1) to (2))\n        create clone of (スポーン)\n    end\nend\nset [スポーン v] to [0]\n\nwhen I receive [スポナー v]\nwait (0.1) seconds\nwait (0.1) seconds\nrepeat until <[1] > (HP)>\n    if <<<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> and <(攻撃) = [1]>> then\n        set [pitch v] effect to (pick random (-50) to (50))\n        start sound [ロボットを殴る2 v]\n        change [hp v] by (() - (アタック))\n        wait (0.2) seconds\n    end\nend\nrepeat (10)\n    wait (0.05) seconds\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nhide\n\nset [pitch v] effect to (pick random (-50) to (50))\nstart sound [ロボットを殴る2 v]\n\n@プラットマー2\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I start as a clone\nif <(ぼす) = [0]> then\n    set size to (150) %\nelse\n    set size to (150) %\nend\nset rotation style [all around v]\nswitch costume to (pick random (1) to (3))\ngo to x: (ｘ) y: (ｙ)\nshow\nclear graphic effects\nif <(distance to [キャラ v]) < [181]> then\n    if <(x position) < ([x position v] of [キャラ v])> then\n        set [x v] to [4]\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v] to [-4]\n    end\n    set [y v] to [8]\nelse\n    if <(x position) < ([x position v] of [キャラ v])> then\n        set [x v] to [15]\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v] to [-15]\n    end\n    set [y v] to [13]\nend\nchange x by (x)\nrepeat until <<touching (キャラ v)?> or <touching (地面 v)?>>\n    set [x v] to ((x) * (0.88))\n    change x by (x)\n    change y by (y)\n    set [y v] to ((y) - (1))\nend\npoint in direction (90)\nset size to (350) %\ngo to [front v] layer\nswitch costume to ((costume [number v]) + (3))\nwait (0.3) seconds\nrepeat (50)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\n\nrepeat (60)\n    point towards (キャラ v)\n    move (3) steps\nend\n\npoint towards (キャラ v)\nmove (3) steps\n\nchange y by (y)\n\nwait until <<touching (キャラ v)?> or <<<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> and <(攻撃) = [1]>>>\nwait (0.01) seconds\ndelete this clone\n\nchange y by (-3.5)\n\nwait (1.5) seconds\n\nwhen I receive [goal v]\ndelete this clone\n\n@スプライト16\n\nwhen flag clicked\nhide\n\n@Health\n\nwhen flag clicked\nhide\n\nwhen I receive [やられた v]\nhide\n\nwhen I receive [ダメージ v]\nrepeat (2)\n    wait (0.1) seconds\n    set [brightness v] effect to (50)\n    wait (0.1) seconds\n    set [brightness v] effect to (0)\nend\n\nwhen I receive [あ v]\nwait (1) seconds\nshow\nforever\n    if <(hp) < [1]> then\n        broadcast (ゲームオーバー v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <(hp) < [1]> then\n        broadcast (ゲームオーバー v)\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    wait (2.5) seconds\n    if <(hp) < [19]> then\n        change [hp v] by (1)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [ゲームオーバー v]\nstop [other scripts in sprite v]\n\nwhen I receive [あ v]\nshow\nforever\n    switch costume to ((hp) + (1))\nend\n\nwhen flag clicked\n\nwhen I receive [あ v]\nforever\n    wait (2.5) seconds\n    if <(hp) < [19]> then\n        change [hp v] by (1)\n    end\nend\n\nwhen I receive [イントロ終了 v]\nshow\nforever\n    switch costume to ((hp) + (1))\nend\n\nwhen I receive [あ v]\nwait (1) seconds\nshow\nforever\n    if <(hp) < [5]> then\n        repeat (8)\n            go to x: (-136) y: (164)\n            wait (pick random (0.01) to (0.05)) seconds\n            change x by (2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change x by (-2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change y by (2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change y by (-2)\n        end\n    else\n        go to x: (-136) y: (164)\n    end\nend\n\nwhen flag clicked\nwait (1) seconds\nshow\nforever\n    if <(hp) < [5]> then\n        repeat (8)\n            go to x: (-136) y: (164)\n            wait (pick random (0.01) to (0.05)) seconds\n            change x by (2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change x by (-2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change y by (2)\n            wait (pick random (0.01) to (0.05)) seconds\n            change y by (-2)\n        end\n    else\n        go to x: (-136) y: (164)\n    end\nend\n\nwait (0.01) seconds\nchange y by (-4)\nwait (0.01) seconds\nchange y by (4)\nwait (0.01) seconds\nchange x by (-4)\nwait (0.01) seconds\nchange x by (4)\nwait (0.01) seconds\n\n@プラットフォーマー7\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [45]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.01))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.3))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.01)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.3)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [14]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [12]\n                else\n                    set [y v　パワー v] to [20]\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\n@プラットフォーマー8\n\nwhen flag clicked\nset rotation style [left-right v]\n\nwhen flag clicked\n\nreset timer\n\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\n\nwhen I start as a clone\nif <(ボス) = [0]> then\n    set size to (78) %\n    set [hp v] to [45]\nelse\n    set size to (230) %\n    set [hp v] to [80]\nend\nforever\n    change y by (1)\n    change [y v　パワー v] by (-1)\n    if <(x position) < ([x position v] of [キャラ v])> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (pick random (0.4) to (0.2))\n            point in direction (90)\n        else\n            change [x v　パワー v] by (pick random (0.2) to (0.5))\n            point in direction (90)\n        end\n    end\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            change [x v　パワー v] by (() - (pick random (0.4) to (0.2)))\n            point in direction (-90)\n        else\n            change [x v　パワー v] by (() - (pick random (0.2) to (0.5)))\n            point in direction (-90)\n        end\n        point in direction (-90)\n    end\n    if <<(direction) < [-1]> and <[-179] < (direction)>> then\n    set [x v　パワー v] to ((x v　パワー) * (0.9))\n    change x by (x v　パワー)\n    if <touching (地面 v)?> then\n        change x by ((x v　パワー) * (-1))\n    end\n    change y by (y v　パワー)\n    if <touching (地面 v)?> then\n        if <(s2) = [1]> then\n            start sound [pop v]\n        end\n        set [s2 v] to [0]\n        change y by ((0) - (y v　パワー))\n        set [y v　パワー v] to [0]\n    end\n    change y by (-1)\n    if <[0] = (pick random (0) to (100))> then\n        hide\n        go to (random position v)\n        wait (0.1) seconds\n        repeat until <not <touching (地面 v)?>>\n            repeat (10)\n                go to (random position v)\n            end\n        end\n        if <touching (地面 v)?> then\n            change y by (100)\n        end\n        show\n    end\n    if <touching (地面 v)?> then\n        if <((y position) + (1)) < ([y position v] of [キャラ v])> then\n            if <[0] = (pick random (0) to (13))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [14]\n                else\n                    set [y v　パワー v] to [26]\n                end\n            end\n        else\n            if <[0] = (pick random (0) to (20))> then\n                set [s2 v] to [1]\n                start sound [suck1 v]\n                if <(ボス) = [0]> then\n                    set [y v　パワー v] to [9]\n                else\n                    set [y v　パワー v] to [20]\n                end\n                if <(x position) < ([x position v] of [キャラ v])> then\n                    if <(ボス) = [0]> then\n                        set [x v　パワー v] to [10]\n                    else\n                        set [x v　パワー v] to [16]\n                    end\n                else\n                    if <([x position v] of [キャラ v]) < (x position)> then\n                        if <(ボス) = [0]> then\n                            set [x v　パワー v] to [-10]\n                        else\n                            set [x v　パワー v] to [-16]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nchange [x v　パワー v] by (-0.4)\n\nstart sound [pop v]\n\ncreate clone of (_myself_ v)\n\nwhen I receive [goal v]\ndelete this clone\n\npoint towards (キャラ v)\n\npoint in direction (90)\n\npoint in direction (-90)\n\ncreate clone of (_myself_ v)\n\nbroadcast (アニメーション v)\n\nset [y v　パワー v] to [4]\n\nwhen I receive [goal v]\n\ncreate clone of (_myself_ v)\nhide\n\nwhen I start as a clone\nshow\n\nwhen flag clicked\n\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [color v] effect to ()\nshow\nset [x v　パワー v] to [0]\nset [y v　パワー v] to [0]\nrepeat until <(HP) < [0.1]>\n    if <<touching (スプライト2 v)?> or <touching (スプライト1 v)?>> then\n        if <(攻撃) = [1]> then\n            switch costume to (2 v)\n            set [y v　パワー v] to [6]\n            if <([direction v] of [キャラ v]) = [90]> then\n                point in direction (90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (16)\n                else\n                    change [x v　パワー v] by (10)\n                end\n            end\n            if <([direction v] of [キャラ v]) = [-90]> then\n                point in direction (-90)\n                if <[1] = (アックス)> then\n                    change [x v　パワー v] by (-16)\n                else\n                    change [x v　パワー v] by (-10)\n                end\n            end\n            start sound [Crunch v]\n            if <(クリティカル判定) = [1]> then\n                set [クリティカル2 v] to (y position)\n                set [クリティカル v] to (x position)\n                broadcast (クリティカル v)\n                change [hp v] by (() - ((アタック) * (2)))\n            else\n                change [hp v] by (() - (アタック))\n            end\n            wait (0.1) seconds\n            switch costume to (1 v)\n        end\n    end\nend\nstart sound [kill v]\nchange [変数 v] by (1)\nrepeat (20)\n    set [y v　パワー v] to [0]\n    set [x v　パワー v] to [0]\n    change [ghost v] effect by (5)\n    change size by (-3)\nend\ndelete this clone\n\nset [hp v] to [13]\n\n\n\nrepeat (80)\n    create clone of (_myself_ v)\nend\nrepeat (40)\n    wait (pick random (0.5) to (1)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I receive [アニメーション v]\nhide\n\nset [y v　パワー v] to [0]\n\nmove () steps\n\nif <(x position) < ([y position v] of [キャラ v])> then\n    set [x v　パワー v] to [5]\nelse\n    if <([y position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v　パワー v] to [10]\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        set [x v　パワー v] to [-5]\n    end\nend\n\nchange y by (-4)\n\nwhen I start as a clone\ngo to x: (244) y: (70)\nforever\n    if <touching color (#fffe19)?> then\n        start sound [Boop Bing Bop v]\n        set [y v　パワー v] to [18]\n    end\nend\n\ncreate clone of (_myself_ v)\n\n\n\nwhen I receive [あ v]\ndelete this clone\n\nwhen I receive [バス線 v]\nset [ボス v] to [1]\ncreate clone of (_myself_ v)\nwait (1) seconds\n\nwhen I receive [goal v]\nset [ボス v] to [0]\n\nwhen flag clicked\nset [ボス v] to [0]\n\nchange [武器強さ v] by (1)\n\nwhen I start as a clone\nforever\n    if <<touching color (#fe05ac)?> and <touching (プラットマー2 v)?>> then\n        change [hp v] by (5)\n        start sound [heel v]\n        wait (1) seconds\n    end\nend\n\nwhen I receive [イントロ終了 v]\n\ncreate clone of (_myself_ v)\n\nrepeat (3)\n    wait (0.4) seconds\nend\n\nif <(x position) < ([x position v] of [キャラ v])> then\n    if <(ボス) = [0]> then\n        set [x v　パワー v] to [10]\n    else\n        set [x v　パワー v] to [16]\n    end\nelse\n    if <([x position v] of [キャラ v]) < (x position)> then\n        if <(ボス) = [0]> then\n            set [x v　パワー v] to [-10]\n        else\n            set [x v　パワー v] to [-16]\n        end\n    end\nend\n\nstart sound [Boop Bing Bop v]\nset [y v　パワー v] to [18]\n\nwhen I receive [ゲームオーバー v]\ndelete this clone\n\nif <touching (地面 v)?> then\nend\n\nhide\n\nrepeat (1)\n    go to (random position v)\nend\n\n