魔法のPlatformer【モバイル対応】

Instructions: 説明は最後まで読んでください。読まないと遊び方が分かりません。\nEnglish is below.\n\n[日本語]\nこのプラットフォーマーは魔法が使えるプラットフォーマーです。\n\n~注意点~\n・無変更リミックスは絶対にやめてください。\n・勝手にスタジオに入れないでください。迷惑です。\n\n~遊び方~\n・旗は必ず3回以上押してください。\n・矢印キー、タップで操作。\n・1,2,3,4,5,6,7,8,のキー、ボタンを押して魔法を使う。\n・ハートと星を押すと感謝のメッセージが表示されます。\n・裏ゴールあります。探してみてね。\n・敵の攻撃を受けたり、針に当たったりしないようにしよう。\n・敵は5種類います。\n・敵を倒すと、魔力が増えます。\n\n~魔法説明~\n魔法1 1キーで使用 魔力消費量 5 ダメージ量 1\n小さな火の粉を飛ばす。\n\n魔法2 2キーで使用 魔力消費量 10 ダメージ量 0\n風を巻き起こす。敵を後方に飛ばす。\n\n魔法3 3キーで使用 魔力消費量 15 ダメージ量 1\nステージを水で埋める。\n\n魔法4 4キーで使用 魔力消費量 20 ダメージ量 3\n光のビームを出す。\n\n魔法5 5キーで使用 魔力消費量 25 ダメージ量 0\nステージを闇で埋める。敵の動きを遅くする。10秒間持続。\n\n魔法6 6キーで使用 魔力消費量 40 ダメージ量 0\n敵のダメージを受けなくなるシールドを張る。5秒間持続。\n\n魔法7 7キーで使用 魔力消費量 45 ダメージ量 10\nランダムな位置に雷を落とす。\n\n魔法8 8キーで使用 魔力消費量 65 ダメージ量 7\n隕石を落としステージ全体に爆発を起こす。\n\n~敵紹介~\n赤 HP 1 倒すともらえる魔力量 5\n\n青 HP 3 倒すともらえる魔力量 10\n\n緑 HP 5 倒すともらえる魔力量 20\n\n黄 HP 8 倒すともらえる魔力量 25\n\nピンク HP 15 倒すともらえる魔力量 40\n\n[English]\nThis platformer is a platformer where you can use magic.\n\n~Caution~\n・Please do not remix without modification.\n・Please do not enter the studio without permission.It's annoying.\n\n~How to play~\n- Be sure to press the flag at least 3 times.\n・Operation with arrow keys and tap.\n・Press the 1,2,3,4,5,6,7,8 keys and buttons to use magic.\n-Press the heart and star to increase the speed at which magical power accumulates.\n・There is a back goal. Please look for it.\n- Avoid being attacked by enemies or getting hit by needles.\n-There are 5 types of enemies.\n- Defeating enemies will increase your magical power.\n\n~Magic explanation~\nMagic 1 Use with 1 key Magic power consumption 5 Damage amount 1\nMake small sparks fly.\n\nMagic 2 Use with 2 keys Magic power consumption 10 Damage amount 0\nstir up the wind. Sends the enemy backwards.\n\nMagic 3 Use with 3 keys Magic power consumption 15 Damage amount 1\nFill the stage with water.\n\nMagic 4 Use with 4 keys Magic power consumption 20 Damage amount 3\nEmits a beam of light.\n\nMagic 5 Used with 5 keys Magic power consumption 25 Damage amount 0\nFill the stage with darkness. Slow down enemy movement. Lasts 10 seconds.\n\nMagic 6 Used with 6 keys Magic consumption 40 Damage amount 0\nPut up a shield that prevents you from receiving damage from enemies. Lasts for 5 seconds.\n\nMagic 7 Use with 7 key Magic power consumption 45 Damage amount 10\n\nMagic 8 Use with 8 keys Magic consumption 65 Damage amount 7\nDrop a meteorite and cause an explosion across the stage\n\n~Enemy introduction~\nRed HP 1 Amount of magical power received when defeated 5\n\nBlue HP 3 Amount of magical power received when defeated 10\n\nGreen HP 5 Amount of magical power received when defeated 20\n\nYellow HP 8 Amount of magical power received when defeated 25\n\nPink HP 15 Amount of magical power received when defeated 40

@Stage\n\nwhen flag clicked\nswitch backdrop to (1 v)\nforever\n    play sound [勇者 v] until done\nend\n\nwhen flag clicked\nforever\n    if <key (1 v) pressed?> then\n        wait until <not <key (1 v) pressed?>>\n        if <(魔力) > [4]> then\n            change [魔力 v] by (-5)\n            set [魔法パターン v] to [1]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (2 v) pressed?> then\n        wait until <not <key (2 v) pressed?>>\n        if <(魔力) > [9]> then\n            change [魔力 v] by (-10)\n            set [魔法パターン v] to [2]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (3 v) pressed?> then\n        wait until <not <key (3 v) pressed?>>\n        if <(魔力) > (timer)> then\n            change [魔力 v] by (-15)\n            set [魔法パターン v] to [3]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (4 v) pressed?> then\n        wait until <not <key (4 v) pressed?>>\n        if <(魔力) > [19]> then\n            change [魔力 v] by (-20)\n            set [魔法パターン v] to [4]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (5 v) pressed?> then\n        wait until <not <key (5 v) pressed?>>\n        if <(魔力) > [24]> then\n            change [魔力 v] by (-25)\n            set [魔法パターン v] to [5]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (6 v) pressed?> then\n        wait until <not <key (6 v) pressed?>>\n        if <(魔力) > [39]> then\n            change [魔力 v] by (-40)\n            set [魔法パターン v] to [6]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (7 v) pressed?> then\n        wait until <not <key (7 v) pressed?>>\n        if <(魔力) > [44]> then\n            change [魔力 v] by (-45)\n            set [魔法パターン v] to [7]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\n    if <key (8 v) pressed?> then\n        wait until <not <key (8 v) pressed?>>\n        if <(魔力) > [64]> then\n            change [魔力 v] by (-65)\n            set [魔法パターン v] to [8]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nwhen flag clicked\nset [魔力 v] to [0]\nforever\n    wait (0.5) seconds\n    if <(魔力) > [149]> then\n        set [魔力 v] to [150]\n    else\n        change [魔力 v] by (1)\n    end\nend\n\nwait (0.25) seconds\n\nwhen flag clicked\nset [タイム v] to [0]\nrepeat until <([costume # v] of [ステージ v]) = [21]>\n    wait (1) seconds\n    change [タイム v] by (1)\nend\nif <(☁ タイムの世界記録) > (タイム)> then\n    set [☁ タイムの世界記録 v] to (タイム)\nend\n\n@プレイヤー\n\nwhen I receive [suta-to  v]\nset volume to (100) %\n\nwhen flag clicked\nhide\nset size to (60) %\ngo to x: (-220) y: (50)\nset [ghost v] effect to (100)\ngo to [back v] layer\n\nwhen I start as a clone\nset [brightness v] effect to (-1)\nrepeat (9)\n    change [ghost v] effect by (7)\n    change size by (-5.2)\nend\ndelete this clone\n\nwhen [z v] key pressed\n\nwhen flag clicked\nbroadcast (suta-to  v)\nshow\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nset rotation style [left-right v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <(y position) < [-170]> then\n        start sound [crashed oof v]\n        repeat (10)\n            change [ghost v] effect by (7)\n        end\n        clear graphic effects\n        go to x: (-210) y: (100)\n    end\n    if <<<touching (敵 v)?> or <<touching (ボス v)?> or <touching (ボスの攻撃 v)?>>> or <touching (裏ボス v)?>> then\n        if <(シールド?) = [1]> then\n            start sound [crashed oof v]\n            broadcast (リセット v)\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            if <([costume # v] of [ステージ v]) = [7]> then\n                go to x: (-210) y: (0)\n            else\n                go to x: (-210) y: (100)\n            end\n        end\n    end\n    if <touching (とげ v)?> then\n        start sound [crashed oof v]\n        broadcast (リセット v)\n        repeat (10)\n            change [ghost v] effect by (7)\n        end\n        clear graphic effects\n        if <([costume # v] of [ステージ v]) = [7]> then\n            go to x: (-210) y: (0)\n        else\n            go to x: (-210) y: (100)\n        end\n    end\n    if <<<(x position) > (mouse x)> and <mouse down?>> or <key (left arrow v) pressed?>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (-1)\n        point in direction (-90)\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (1)\n        point in direction (90)\n    end\n    set [xのやつ v] to ((xのやつ) * (0.9))\n    change x by (xのやつ)\n    if <<touching (road- v)?> or <touching (ステージ v)?>> then\n        change y by (1)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (1)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                change y by (1)\n                if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                    change y by (1)\n                    if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                        change y by (1)\n                        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                            change x by ((xのやつ) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                start sound [ニュッ v]\n                                if <(xのやつ) > [0]> then\n                                    set [xのやつ v] to [-7]\n                                else\n                                    set [xのやつ v] to [7]\n                                end\n                                set [ｙだー v] to [15]\n                            else\n                                set [xのやつ v] to [0]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change y by (-1)\n    if <<touching (road- v)?> or <touching (ステージ v)?>> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [ｙだー v] to [16.3]\n            start sound [ニュッ v]\n        end\n    end\n    change y by (1)\n    change [ｙだー v] by (-1)\n    change y by (ｙだー)\n    if <<touching (road- v)?> or <touching (ステージ v)?>> then\n        change y by ((ｙだー) * (-1))\n        set [ｙだー v] to [0]\n    end\n    if <(x position) > [230]> then\n        if <not <(ぱざ) = [11]>> then\n            broadcast (next v)\n            start sound [Rip v]\n            wait (0.5) seconds\n            if <([costume # v] of [ステージ v]) = [7]> then\n                go to x: (-216) y: (0)\n            else\n                go to x: (-216) y: (50)\n            end\n        end\n    end\nend\n\nwait (1) seconds\n\nwait (2.4) seconds\n\nset [ぱざ v] to [10]\n\n@ステージ\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (1 v)\nshow\n\nwhen I receive [続き v]\nswitch costume to (20 v)\n\nwhen I receive [裏続き v]\nswitch costume to (23 v)\n\n@とげ\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (1 v)\nshow\ngo to [front v] layer\n\nwhen I receive [next v]\ngo to [front v] layer\nnext costume\n\n@敵\n\nwhen flag clicked\nhide\nforever\n    if <([costume # v] of [ステージ v]) = [3]> then\n        set [パターン v] to [1]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nshow\nset rotation style [left-right v]\ngo to x: (200) y: (0)\nif <(パターン) = [1]> then\n    switch costume to (1 v)\n    set [敵:hp v] to [1]\n    forever\n        point towards (プレイヤー v)\n        if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n            move (2) steps\n        else\n            move (5) steps\n        end\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (3)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n                    move (-2) steps\n                else\n                    move (-5) steps\n                end\n                set [敵:y v] to [10]\n            end\n        end\n        change y by (-1)\n        change [敵:y v] by (-1)\n        change y by (敵:Y)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by ((敵:Y) * (-1))\n            set [敵:y v] to [0]\n        end\n        if <touching (プレイヤー v)?> then\n            if <(シールド?) = [1]> then\n                repeat (10)\n                    change [ghost v] effect by (7)\n                end\n                clear graphic effects\n                go to x: (200) y: (0)\n            end\n        end\n        if <([x position v] of [プレイヤー v]) > [230]> then\n            if <not <(敵:HP) < [1]>> then\n                delete this clone\n            end\n        end\n        if <(敵:HP) < [1]> then\n            start sound [Teleport2 v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (200) y: (0)\n            hide\n            change [魔力 v] by (5)\n            delete this clone\n        end\n    end\nend\nif <(パターン) = [2]> then\n    switch costume to (2 v)\n    set [敵:hp v] to [3]\n    forever\n        point towards (プレイヤー v)\n        if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n            move (2) steps\n        else\n            move (5) steps\n        end\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (3)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n                    move (-2) steps\n                else\n                    move (-5) steps\n                end\n                set [敵:y v] to [10]\n            end\n        end\n        change y by (-1)\n        change [敵:y v] by (-1)\n        change y by (敵:Y)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by ((敵:Y) * (-1))\n            set [敵:y v] to [0]\n        end\n        if <touching (プレイヤー v)?> then\n            if <(シールド?) = [1]> then\n                repeat (10)\n                    change [ghost v] effect by (7)\n                end\n                clear graphic effects\n                go to x: (200) y: (0)\n            end\n        end\n        if <([x position v] of [プレイヤー v]) > [230]> then\n            if <not <(敵:HP) < [1]>> then\n                delete this clone\n            end\n        end\n        if <(敵:HP) < [1]> then\n            start sound [Teleport2 v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (200) y: (0)\n            hide\n            change [魔力 v] by (10)\n            delete this clone\n        end\n    end\nend\nif <(パターン) = [3]> then\n    switch costume to (3 v)\n    set [敵:hp v] to [5]\n    forever\n        point towards (プレイヤー v)\n        if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n            move (2) steps\n        else\n            move (5) steps\n        end\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (3)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n                    move (-2) steps\n                else\n                    move (-5) steps\n                end\n                set [敵:y v] to [10]\n            end\n        end\n        change y by (-1)\n        change [敵:y v] by (-1)\n        change y by (敵:Y)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by ((敵:Y) * (-1))\n            set [敵:y v] to [0]\n        end\n        if <touching (プレイヤー v)?> then\n            if <(シールド?) = [1]> then\n                repeat (10)\n                    change [ghost v] effect by (7)\n                end\n                clear graphic effects\n                go to x: (200) y: (0)\n            end\n        end\n        if <([x position v] of [プレイヤー v]) > [230]> then\n            if <not <(敵:HP) < [1]>> then\n                delete this clone\n            end\n        end\n        if <(敵:HP) < [1]> then\n            start sound [Teleport2 v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (200) y: (0)\n            hide\n            change [魔力 v] by (20)\n            delete this clone\n        end\n    end\nend\nif <(パターン) = [4]> then\n    switch costume to (4 v)\n    set [敵:hp v] to [8]\n    forever\n        point towards (プレイヤー v)\n        if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n            move (2) steps\n        else\n            move (6) steps\n        end\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (3)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n                    move (-2) steps\n                else\n                    move (-6) steps\n                end\n                set [敵:y v] to [10]\n            end\n        end\n        change y by (-1)\n        change [敵:y v] by (-1)\n        change y by (敵:Y)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by ((敵:Y) * (-1))\n            set [敵:y v] to [0]\n        end\n        if <touching (プレイヤー v)?> then\n            if <(シールド?) = [1]> then\n                repeat (10)\n                    change [ghost v] effect by (7)\n                end\n                clear graphic effects\n                go to x: (200) y: (0)\n            end\n        end\n        if <([x position v] of [プレイヤー v]) > [230]> then\n            if <not <(敵:HP) < [1]>> then\n                delete this clone\n            end\n        end\n        if <(敵:HP) < [1]> then\n            start sound [Teleport2 v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (200) y: (0)\n            hide\n            change [魔力 v] by (25)\n            delete this clone\n        end\n    end\nend\nif <(パターン) = [5]> then\n    switch costume to (5 v)\n    set [敵:hp v] to [15]\n    forever\n        point towards (プレイヤー v)\n        if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n            move (2) steps\n        else\n            move (7) steps\n        end\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by (3)\n            if <<touching (road- v)?> or <touching (ステージ v)?>> then\n                if <<touching (魔法5 v)?> and <([costume # v] of [魔法5 v]) = [1]>> then\n                    move (-2) steps\n                else\n                    move (-7) steps\n                end\n                set [敵:y v] to [10]\n            end\n        end\n        change y by (-1)\n        change [敵:y v] by (-1)\n        change y by (敵:Y)\n        if <<touching (road- v)?> or <touching (ステージ v)?>> then\n            change y by ((敵:Y) * (-1))\n            set [敵:y v] to [0]\n        end\n        if <touching (プレイヤー v)?> then\n            if <(シールド?) = [1]> then\n                repeat (10)\n                    change [ghost v] effect by (7)\n                end\n                clear graphic effects\n                go to x: (200) y: (0)\n            end\n        end\n        if <([x position v] of [プレイヤー v]) > [230]> then\n            if <not <(敵:HP) < [1]>> then\n                delete this clone\n            end\n        end\n        if <(敵:HP) < [1]> then\n            start sound [Teleport2 v]\n            repeat (10)\n                change [ghost v] effect by (7)\n            end\n            clear graphic effects\n            go to x: (200) y: (0)\n            hide\n            change [魔力 v] by (40)\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [4]> then\n        set [パターン v] to [1]\n        wait (0.6) seconds\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.3) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [5]> then\n        set [パターン v] to [2]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (魔法3 v)?> then\n        if <([costume # v] of [魔法3 v]) = [1]> then\n            change [敵:hp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (4) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (魔法 v)?> then\n        if <([costume # v] of [魔法 v]) = [1]> then\n            change [敵:hp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (0.5) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (魔法2 v)?> then\n        if <([costume # v] of [魔法2 v]) = [2]> then\n            change x by (30)\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (魔法4 v)?> then\n        if <([costume # v] of [魔法4 v]) = [20]> then\n            change [敵:hp v] by (-3)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (魔法7 v)?> then\n        if <([costume # v] of [魔法7 v]) = [1]> then\n            change [敵:hp v] by (-10)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (3) seconds\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (爆発1 v)?> then\n        change [敵:hp v] by (-7)\n        repeat (4)\n            change [brightness v] effect by (25)\n        end\n        repeat (4)\n            change [brightness v] effect by (-25)\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [7]> then\n        set [パターン v] to [2]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        wait (0.3) seconds\n        set [パターン v] to [1]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [8]> then\n        set [パターン v] to [3]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [9]> then\n        set [パターン v] to [1]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        wait (0.3) seconds\n        set [パターン v] to [2]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        wait (0.3) seconds\n        set [パターン v] to [3]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [10]> then\n        set [パターン v] to [2]\n        wait (0.6) seconds\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.3) seconds\n        end\n        set [パターン v] to [3]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [11]> then\n        set [パターン v] to [1]\n        wait (0.6) seconds\n        repeat (10)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [12]> then\n        set [パターン v] to [2]\n        wait (0.6) seconds\n        repeat (5)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [13]> then\n        set [パターン v] to [4]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [14]> then\n        set [パターン v] to [4]\n        wait (0.6) seconds\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.3) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [15]> then\n        set [パターン v] to [2]\n        wait (0.6) seconds\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        set [パターン v] to [3]\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        set [パターン v] to [4]\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [16]> then\n        set [パターン v] to [5]\n        wait (0.6) seconds\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [18]> then\n        set [パターン v] to [1]\n        wait (0.6) seconds\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        set [パターン v] to [2]\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        set [パターン v] to [3]\n        repeat (2)\n            create clone of (_myself_ v)\n            wait (0.1) seconds\n        end\n        set [パターン v] to [4]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        wait (0.1) seconds\n        set [パターン v] to [5]\n        repeat (1)\n            create clone of (_myself_ v)\n        end\n        stop [this script v]\n    end\nend\n\nwhen I receive [ボス登場 v]\nwait (2) seconds\nforever\n    broadcast (攻撃 v) and wait\n    set [パターン v] to [1]\n    repeat (1)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [2]\n    repeat (1)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [3]\n    repeat (1)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [4]\n    repeat (1)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [5]\n    repeat (1)\n        create clone of (_myself_ v)\n    end\n    wait (8) seconds\n    broadcast (攻撃2 v) and wait\nend\n\nwhen I receive [倒した v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I receive [裏ボス登場 v]\nwait (2) seconds\nforever\n    broadcast (攻撃4 v) and wait\n    set [パターン v] to [1]\n    repeat (2)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [2]\n    repeat (2)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [3]\n    repeat (2)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [4]\n    repeat (2)\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    set [パターン v] to [5]\n    repeat (2)\n        create clone of (_myself_ v)\n    end\n    wait (3) seconds\n    broadcast (攻撃3 v) and wait\nend\n\nwhen I receive [裏倒した v]\nstop [other scripts in sprite v]\ndelete this clone\n\n@太陽\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (205) y: (160)\nset size to (100) %\nswitch costume to (1 v)\nshow\nforever\n    Size: [100] から Size: [65] Size: [10]\n    Size: [65] から Size: [100] Size: [10]\nend\n\ndefine Size: (size1) から Size: (size2) Size: (speed)\nset size to (size1) %\nrepeat until <(round (size)) = (size2)>\n    go to [back v] layer\n    change size by (((size2) - (size)) / (speed))\nend\n\n@曇\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (2) to (4)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nset [ghost v] effect to (20)\ngo to [back v] layer\nshow\ngo to x: (300) y: (pick random (40) to (180))\nset size to (pick random (100) to (200)) %\nrepeat (180)\n    change x by (-3)\nend\nhide\ndelete this clone\n\n@魔法\n\nwhen flag clicked\nset [シールド? v] to [1]\nhide variable [シールドの持続時間 v]\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動 v]\nclear graphic effects\nshow\nswitch costume to (1 v)\nset size to (100) %\ngo to (プレイヤー v)\nif <([direction v] of [プレイヤー v]) = [90]> then\n    change x by (30)\nelse\n    change x by (-30)\nend\nrepeat until <<<<touching (敵 v)?> or <touching (魔法感知 v)?>> or <touching (ステージ v)?>> or <<touching (ボス v)?> or <touching (裏ボス v)?>>>\n    if <([direction v] of [プレイヤー v]) = [90]> then\n        change x by (30)\n    else\n        change x by (-30)\n    end\nend\nrepeat (4)\n    change [ghost v] effect by (25)\n    change [brightness v] effect by (25)\nend\nhide\n\n@杖\n\nwhen flag clicked\nset size to (100) %\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nforever\n    go to (プレイヤー v)\nend\n\nwhen flag clicked\nforever\n    if <([direction v] of [プレイヤー v]) = [90]> then\n        switch costume to (1 v)\n    else\n        switch costume to (2 v)\n    end\nend\n\n@魔法感知\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@魔法演出\n\nwhen flag clicked\nhide\n\nwhen I receive [魔法 v]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(魔法パターン) = [1]> then\n    show\n    switch costume to (1 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動 v)\n    delete this clone\nend\nif <(魔法パターン) = [2]> then\n    show\n    switch costume to (2 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動2 v)\n    delete this clone\nend\nif <(魔法パターン) = [3]> then\n    show\n    switch costume to (3 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動3 v)\n    delete this clone\nend\nif <(魔法パターン) = [4]> then\n    show\n    switch costume to (4 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動4 v)\n    delete this clone\nend\nif <(魔法パターン) = [5]> then\n    show\n    switch costume to (5 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動5 v)\n    delete this clone\nend\nif <(魔法パターン) = [6]> then\n    show\n    switch costume to (6 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動6 v)\n    delete this clone\nend\nif <(魔法パターン) = [7]> then\n    show\n    switch costume to (7 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動7 v)\n    delete this clone\nend\nif <(魔法パターン) = [8]> then\n    show\n    switch costume to (8 v)\n    set size to (200) %\n    set [ghost v] effect to (100)\n    repeat (12)\n        go to (プレイヤー v)\n        change [ghost v] effect by (-4)\n        change [whirl v] effect by (4)\n        change size by (-15)\n    end\n    hide\n    broadcast (発動8 v)\n    delete this clone\nend\n\n@帽子\n\nwhen flag clicked\nswitch costume to (1 v)\nforever\n    go to (プレイヤー v)\nend\n\nwhen flag clicked\nforever\n    if <([direction v] of [プレイヤー v]) = [90]> then\n        switch costume to (1 v)\n    else\n        switch costume to (2 v)\n    end\nend\n\n@爆発1\n\nwhen I receive [爆発 v]\ngo to x: (0) y: (0)\nset size to (300) %\nswitch costume to (コスチューム1 v)\nshow\nstart sound [se_enep01 v]\nrepeat (27)\n    set size to (300) %\n    go to [front v] layer\n    next costume\nend\nhide\n\n@ステージ2\n\nwhen flag clicked\nforever\n    if <([costume # v] of [ステージ v]) = [9]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (プレイヤー v)?> or <touching (敵 v)?>> then\n        set [ghost v] effect to (50)\n    else\n        clear graphic effects\n    end\nend\n\n@魔法2\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動2 v]\nclear graphic effects\nshow\ngo to [front v] layer\nswitch costume to (2 v)\nset size to (100) %\nset [ghost v] effect to (50)\ngo to x: (-280) y: (0)\nset y to (0)\nrepeat (20)\n    change size by (10)\n    go to [front v] layer\nend\nswitch costume to (3 v)\nrepeat until <(x position) > [280]>\n    change x by (30)\n    go to [front v] layer\nend\nrepeat (4)\n    change [ghost v] effect by (13)\n    change [brightness v] effect by (25)\nend\nhide\n\n@魔法3\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動3 v]\ngo to [front v] layer\nclear graphic effects\nshow\nswitch costume to (5 v)\nset size to (100) %\nset [ghost v] effect to (50)\ngo to x: (0) y: (0)\nswitch costume to (4 v)\nstart sound [Ripples v]\nrepeat until <(y position) > [370]>\n    go to [front v] layer\n    change y by (30)\nend\nwait (1) seconds\nrepeat (4)\n    change [ghost v] effect by (13)\n    change [brightness v] effect by (25)\nend\nhide\n\n@ボス\n\nwhen flag clicked\nhide variable [ボスのhp v]\nhide\nwait until <([costume # v] of [ステージ v]) > [18]>\nbroadcast (ボス登場 v)\ngo to x: (140) y: (20)\nshow\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nset [ボスのhp v] to [50]\nshow variable [ボスのhp v]\nforever\n    if <(ボスのHP) < [1]> then\n        broadcast (倒した v)\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (5)\n            change [pixelate v] effect by (5)\n            change [brightness v] effect by (5)\n        end\n        hide variable [ボスのhp v]\n        hide\n        broadcast (続き v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [ボス登場 v]\nforever\n    if <touching (爆発1 v)?> then\n        change [ボスのhp v] by (-7)\n        repeat (4)\n            change [brightness v] effect by (25)\n        end\n        repeat (4)\n            change [brightness v] effect by (-25)\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen I receive [ボス登場 v]\nforever\n    if <touching (魔法7 v)?> then\n        if <([costume # v] of [魔法7 v]) = [1]> then\n            change [ボスのhp v] by (-10)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (3) seconds\n    end\nend\n\nwhen I receive [ボス登場 v]\nforever\n    if <touching (魔法3 v)?> then\n        if <([costume # v] of [魔法3 v]) = [1]> then\n            change [ボスのhp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (4) seconds\n    end\nend\n\nwhen I receive [ボス登場 v]\nforever\n    if <touching (魔法4 v)?> then\n        if <([costume # v] of [魔法4 v]) = [20]> then\n            change [ボスのhp v] by (-3)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen I receive [ボス登場 v]\nforever\n    if <touching (魔法 v)?> then\n        if <([costume # v] of [魔法 v]) = [1]> then\n            change [ボスのhp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (1) seconds\n    end\nend\n\n@魔法4\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動4 v]\nclear graphic effects\nshow\nswitch costume to (6 v)\nset size to (100) %\nset [ghost v] effect to (10)\ngo to (プレイヤー v)\nchange x by (170)\nstart sound [Pew v]\nrepeat until <(costume [number v]) > [19]>\n    next costume\nend\nwait (1.5) seconds\nrepeat until <(costume [number v]) < [2]>\n    switch costume to ((costume [number v]) - (1))\nend\nhide\nbroadcast (終了 v)\n\nwhen I receive [発動4 v]\nforever\n    if <([direction v] of [プレイヤー v]) = [90]> then\n        go to (プレイヤー v)\n        change x by (170)\n    else\n        go to (プレイヤー v)\n        change x by (-170)\n    end\nend\n\nwhen I receive [終了 v]\nstop [other scripts in sprite v]\n\n@魔法5\n\nwhen flag clicked\nset [シールド? v] to [1]\nhide variable [シールドの持続時間 v]\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動5 v]\nclear graphic effects\nshow\nswitch costume to (26 v)\nset size to (100) %\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\ngo to [front v] layer\nrepeat (40)\n    change [ghost v] effect by (-2)\nend\nwait (10) seconds\nrepeat (40)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@魔法6\n\nwhen flag clicked\nset [シールド? v] to [1]\nhide variable [シールドの持続時間 v]\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [シールド v]\nshow variable [シールドの持続時間 v]\nset [シールド? v] to [2]\nbroadcast (シールド中 v)\nset [シールドの持続時間 v] to [5]\nrepeat (5)\n    wait (1) seconds\n    change [シールドの持続時間 v] by (-1)\nend\nhide variable [シールドの持続時間 v]\nset [シールド? v] to [1]\n\nwhen I receive [発動6 v]\n\nwhen I receive [発動6 v]\nclear graphic effects\nshow\nswitch costume to (27 v)\nset size to (100) %\ngo to x: (0) y: (0)\nrepeat (13)\n    go to (プレイヤー v)\n    change [ghost v] effect by (8)\n    change size by (6)\nend\nbroadcast (シールド v)\nhide\n\nwhen I receive [シールド中 v]\nset size to (100) %\nshow\nswitch costume to (28 v)\nset [ghost v] effect to (50)\nrepeat until <(シールド?) = [1]>\n    go to (プレイヤー v)\nend\nhide\n\n@魔法7\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動7 v]\nclear graphic effects\nshow\nswitch costume to (29 v)\nset size to (100) %\nstart sound [BOOOOOOOON!! v]\ngo to x: (pick random (-300) to (300)) y: (0)\nrepeat (13)\n    change [ghost v] effect by (8)\nend\nhide\n\n@魔法8\n\nwhen flag clicked\ngo to [front v] layer\nclear graphic effects\nhide\n\nwhen I receive [発動8 v]\nclear graphic effects\nhide\nswitch costume to (30 v)\nset size to (100) %\ngo to x: (0) y: (300)\nshow\nrepeat until <<touching (魔法感知2 v)?> or <touching (ステージ v)?>>\n    change y by (-50)\nend\nbroadcast (爆発 v)\nhide\n\n@サムネ\n\nwhen flag clicked\nshow variable [☁ タイムの世界記録 v]\nshow variable [タイム v]\nshow variable [魔力 v]\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@ボスの攻撃\n\nwhen I receive [攻撃 v]\nset [ボス攻撃 v] to [1]\nrepeat (2)\n    create clone of (_myself_ v)\n    wait (0.3) seconds\nend\nwait (5) seconds\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nif <(ボス攻撃) = [1]> then\n    switch costume to (1 v)\n    set size to (50) %\n    show\n    go to x: (pick random (-300) to (175)) y: (180)\n    set [ghost v] effect to (100)\n    set [brightness v] effect to (100)\n    set [pixelate v] effect to (100)\n    repeat (25)\n        change [ghost v] effect by (-4)\n        change [pixelate v] effect by (-4)\n        change [brightness v] effect by (-4)\n    end\n    clear graphic effects\n    wait (1) seconds\n    repeat until <touching (ステージ v)?>\n        change y by (-50)\n    end\n    repeat (4)\n        change [ghost v] effect by (25)\n        change [pixelate v] effect by (25)\n        change [brightness v] effect by (25)\n    end\n    hide\n    delete this clone\nend\n\nwhen I receive [攻撃2 v]\nset [ボス攻撃 v] to [2]\nrepeat (2)\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\nwait (8) seconds\n\nwhen I receive [倒した v]\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nif <(ボス攻撃) = [2]> then\n    switch costume to (2 v)\n    clear graphic effects\n    set size to (80) %\n    show\n    go to x: (pick random (-300) to (175)) y: (-180)\n    repeat (30)\n        change y by (5)\n    end\n    wait (3) seconds\n    repeat (4)\n        change [ghost v] effect by (25)\n        change [pixelate v] effect by (25)\n        change [brightness v] effect by (25)\n    end\n    hide\n    delete this clone\nend\n\nwhen I receive [攻撃4 v]\nset [ボス攻撃 v] to [1]\nrepeat (5)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\nwait (2.5) seconds\n\nwhen I receive [攻撃3 v]\nset [ボス攻撃 v] to [2]\nrepeat (4)\n    create clone of (_myself_ v)\n    wait (0.5) seconds\nend\nwait (3.5) seconds\n\n@判定\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (0)\nforever\n    if <touching (プレイヤー v)?> then\n        hide variable [☁ タイムの世界記録 v]\n        hide variable [タイム v]\n        hide variable [魔力 v]\n    else\n        show variable [☁ タイムの世界記録 v]\n        show variable [タイム v]\n        show variable [魔力 v]\n    end\nend\n\n@判定2\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [シールド中 v]\nrepeat until <(シールド?) = [1]>\n    if <touching (プレイヤー v)?> then\n        hide variable [シールドの持続時間 v]\n    else\n        show variable [シールドの持続時間 v]\n    end\nend\nhide variable [シールドの持続時間 v]\n\n@センサー\n\nwhen flag clicked\nswitch costume to (2 v)\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        wait (0.05) seconds\n        if <touching (mouse-pointer v)?> then\n            if <[message v] contains [♡]?> then\n                delete (item # of [♡] in [message v]) of [message v]\n            else\n                add [♡] to [message v]\n            end\n        end\n    end\n    wait until <not <touching (mouse-pointer v)?>>\nend\n\n@センサー2\n\nwhen flag clicked\nswitch costume to (2 v)\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nforever\n    if <touching (mouse-pointer v)?> then\n        wait (0.05) seconds\n        if <touching (mouse-pointer v)?> then\n            if <[message v] contains [★]?> then\n                delete (item # of [★] in [message v]) of [message v]\n            else\n                add [★] to [message v]\n            end\n        end\n    end\n    wait until <not <touching (mouse-pointer v)?>>\nend\n\n@メッセージ\n\nwhen flag clicked\ngo to [front v] layer\ngo to x: (95) y: (-245)\nhide\nforever\n    if <<[message v] contains [♡]?> and <[message v] contains [★]?>> then\n        show\n        start sound [Coin v]\n        repeat (5)\n            go to [front v] layer\n            change y by (10)\n        end\n        wait (1) seconds\n        repeat (5)\n            go to [front v] layer\n            change y by (-10)\n        end\n        hide\n        stop [this script v]\n    end\nend\n\n@魔法使用\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (1 v)\ngo to x: (-210) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [4]> then\n            change [魔力 v] by (-5)\n            set [魔法パターン v] to [1]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\n@魔法使用2\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (2 v)\ngo to x: (-150) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [9]> then\n            change [魔力 v] by (-10)\n            set [魔法パターン v] to [2]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (3 v) pressed?> then\n    wait until <not <key (3 v) pressed?>>\n    if <(魔力) > [14]> then\n        change [魔力 v] by (-15)\n        set [魔法パターン v] to [3]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (4 v) pressed?> then\n    wait until <not <key (4 v) pressed?>>\n    if <(魔力) > [19]> then\n        change [魔力 v] by (-20)\n        set [魔法パターン v] to [4]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (5 v) pressed?> then\n    wait until <not <key (5 v) pressed?>>\n    if <(魔力) > [24]> then\n        change [魔力 v] by (-25)\n        set [魔法パターン v] to [5]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (6 v) pressed?> then\n    wait until <not <key (6 v) pressed?>>\n    if <(魔力) > [39]> then\n        change [魔力 v] by (-40)\n        set [魔法パターン v] to [6]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (7 v) pressed?> then\n    wait until <not <key (7 v) pressed?>>\n    if <(魔力) > [44]> then\n        change [魔力 v] by (-45)\n        set [魔法パターン v] to [7]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@モード変換\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    start sound [モード変換 v]\n    switch costume to (mobile v)\n    set [モード変更 v] to [M]\nelse\n    start sound [モード変換 v]\n    switch costume to (pc v)\n    set [モード変更 v] to [P]\nend\n\nwhen flag clicked\nswitch costume to (pc v)\ngo to [front v] layer\nset [モード変更 v] to [P]\nshow\n\nwhen flag clicked\nshow\nwait (5) seconds\nhide\n\n@魔法使用3\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (3 v)\ngo to x: (-90) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [14]> then\n            change [魔力 v] by (-15)\n            set [魔法パターン v] to [3]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (4 v) pressed?> then\n    wait until <not <key (4 v) pressed?>>\n    if <(魔力) > [19]> then\n        change [魔力 v] by (-20)\n        set [魔法パターン v] to [4]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (5 v) pressed?> then\n    wait until <not <key (5 v) pressed?>>\n    if <(魔力) > [24]> then\n        change [魔力 v] by (-25)\n        set [魔法パターン v] to [5]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (6 v) pressed?> then\n    wait until <not <key (6 v) pressed?>>\n    if <(魔力) > [39]> then\n        change [魔力 v] by (-40)\n        set [魔法パターン v] to [6]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (7 v) pressed?> then\n    wait until <not <key (7 v) pressed?>>\n    if <(魔力) > [44]> then\n        change [魔力 v] by (-45)\n        set [魔法パターン v] to [7]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@魔法使用4\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (4 v)\ngo to x: (-30) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [19]> then\n            change [魔力 v] by (-20)\n            set [魔法パターン v] to [4]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (5 v) pressed?> then\n    wait until <not <key (5 v) pressed?>>\n    if <(魔力) > [24]> then\n        change [魔力 v] by (-25)\n        set [魔法パターン v] to [5]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (6 v) pressed?> then\n    wait until <not <key (6 v) pressed?>>\n    if <(魔力) > [39]> then\n        change [魔力 v] by (-40)\n        set [魔法パターン v] to [6]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (7 v) pressed?> then\n    wait until <not <key (7 v) pressed?>>\n    if <(魔力) > [44]> then\n        change [魔力 v] by (-45)\n        set [魔法パターン v] to [7]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@魔法使用5\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (5 v)\ngo to x: (30) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [24]> then\n            change [魔力 v] by (-25)\n            set [魔法パターン v] to [5]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (6 v) pressed?> then\n    wait until <not <key (6 v) pressed?>>\n    if <(魔力) > [39]> then\n        change [魔力 v] by (-40)\n        set [魔法パターン v] to [6]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (7 v) pressed?> then\n    wait until <not <key (7 v) pressed?>>\n    if <(魔力) > [44]> then\n        change [魔力 v] by (-45)\n        set [魔法パターン v] to [7]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@魔法使用6\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (6 v)\ngo to x: (90) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [39]> then\n            change [魔力 v] by (-40)\n            set [魔法パターン v] to [6]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (7 v) pressed?> then\n    wait until <not <key (7 v) pressed?>>\n    if <(魔力) > [44]> then\n        change [魔力 v] by (-45)\n        set [魔法パターン v] to [7]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@魔法使用7\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (7 v)\ngo to x: (150) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [44]> then\n            change [魔力 v] by (-45)\n            set [魔法パターン v] to [7]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\nif <key (8 v) pressed?> then\n    wait until <not <key (8 v) pressed?>>\n    if <(魔力) > [64]> then\n        change [魔力 v] by (-65)\n        set [魔法パターン v] to [8]\n        broadcast (魔法 v)\n    else\n        set [魔力 v] to (魔力)\n    end\nend\n\n@魔法使用8\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset size to (65) %\nswitch costume to (8 v)\ngo to x: (210) y: (-160)\nforever\n    go to [front v] layer\n    if <(モード変更) = [M]> then\n        show\n    else\n        hide\n    end\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        wait until <not <<touching (mouse-pointer v)?> and <mouse down?>>>\n        if <(魔力) > [64]> then\n            change [魔力 v] by (-65)\n            set [魔法パターン v] to [8]\n            broadcast (魔法 v)\n        else\n            set [魔力 v] to (魔力)\n        end\n    end\nend\n\n@裏ボス\n\nwhen flag clicked\nhide variable [ボスのhp v]\nhide variable [裏ボスのhp v]\nhide\nwait until <([costume # v] of [ステージ v]) > [21]>\nbroadcast (裏ボス登場 v)\ngo to x: (140) y: (20)\nshow\nset [ghost v] effect to (100)\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nset [裏ボスのhp v] to [100]\nshow variable [裏ボスのhp v]\nforever\n    if <(裏ボスのHP) < [1]> then\n        broadcast (裏倒した v)\n        stop [other scripts in sprite v]\n        repeat (50)\n            change [ghost v] effect by (5)\n            change [pixelate v] effect by (5)\n            change [brightness v] effect by (5)\n        end\n        hide variable [裏ボスのhp v]\n        hide\n        broadcast (裏続き v)\n        stop [this script v]\n    end\nend\n\nwhen I receive [裏ボス登場 v]\nforever\n    if <touching (爆発1 v)?> then\n        change [裏ボスのhp v] by (-7)\n        repeat (4)\n            change [brightness v] effect by (25)\n        end\n        repeat (4)\n            change [brightness v] effect by (-25)\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen I receive [裏ボス登場 v]\nforever\n    if <touching (魔法7 v)?> then\n        if <([costume # v] of [魔法7 v]) = [1]> then\n            change [裏ボスのhp v] by (-10)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (3) seconds\n    end\nend\n\nwhen I receive [裏ボス登場 v]\nforever\n    if <touching (魔法3 v)?> then\n        if <([costume # v] of [魔法3 v]) = [1]> then\n            change [裏ボスのhp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (4) seconds\n    end\nend\n\nwhen I receive [裏ボス登場 v]\nforever\n    if <touching (魔法4 v)?> then\n        if <([costume # v] of [魔法4 v]) = [20]> then\n            change [裏ボスのhp v] by (-3)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (2) seconds\n    end\nend\n\nwhen I receive [裏ボス登場 v]\nforever\n    if <touching (魔法 v)?> then\n        if <([costume # v] of [魔法 v]) = [1]> then\n            change [裏ボスのhp v] by (-1)\n            repeat (4)\n                change [brightness v] effect by (25)\n            end\n            repeat (4)\n                change [brightness v] effect by (-25)\n            end\n        end\n        clear graphic effects\n        wait (1) seconds\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\nswitch costume to (2 v)\ngo to x: (0) y: (0)\nswitch costume to (1 v)\nforever\n    if <([costume # v] of [ステージ v]) = [21]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (プレイヤー v)?> then\n        set [ghost v] effect to (50)\n    else\n        clear graphic effects\n    end\nend\n\n@ターボ対策ソフト\n\nwhen I receive [ターボチェック v]\nreset timer\nwait (0) seconds\nif <(timer) = [0]> then\n    broadcast (owari v)\nend\n\nwhen [space v] key pressed\nbroadcast (ターボチェック v)\n\nwhen flag clicked\nforever\n    reset timer\n    wait (0) seconds\n    if <(timer) = [0]> then\n        broadcast (爆発 v) and wait\n    end\nend\n\nwhen flag clicked\nforever\n    broadcast (ターボチェック v)\nend\n\n@爆発2\n\nwhen I receive [owari v]\ngo to [front v] layer\nswitch costume to (コスチューム1 v)\nset size to (200) %\nset volume to (100) %\nshow\ngo to x: (0) y: (0)\nswitch costume to (4 v)\nplay sound [se_enep01 v] until done\nstop [all v]\n\nwhen flag clicked\nhide\n\n@広告\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nwait (1) seconds\nforever\n    show\n    start sound [Collect v]\n    repeat (10)\n        change x by (-8)\n    end\n    wait (2) seconds\n    repeat (10)\n        change x by (8)\n    end\n    hide\n    wait (30) seconds\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@魔法感知2\n\nwhen flag clicked\nshow\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n