v2 Minecraft Platformer 1 story version自然を取り戻せ　エンドラ討伐　　Restore nature Endora subjugation

Instructions: \nhttps://scratch.mit.edu/projects/884109944\nhttps://scratch.mit.edu/projects/886370711\n\n\nhard core mode\nhttps://scratch.mit.edu/projects/860766113\nhttps://scratch.mit.edu/projects/863952241\n(takanos_090909)\n\nいい作品　good work\nhttps://scratch.mit.edu/projects/861004711\n\nすご　自分でもここまで人気になるとは思ってなかった、、、\nこんなに人気になるとは思わなかった\n\n傾向1p！！！！！\n\n第二弾制作中　ウィザー討伐　いつになるのか、、、ものすごく時間かかります\n\n　バグが多いのは久しぶりのマインクラフトプラットフォーマーだからです　許してください　(久しぶりってのは旧あかの＠saku398540で活動していた時のことです)\n\nTrend 1p!  !  !  !  !\n\n   

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\n\nwhen I receive [intro終了 v]\nstart sound [PIKASONIC - Osaka Express  v]\nwait (3) seconds\nstop all sounds\nswitch backdrop to (背景2 v) and wait\nstart sound [boss-中 v]\n\nwhen I receive [持ち去る v]\nwait (3) seconds\nwait (1) seconds\nstop all sounds\nbroadcast (話す v)\n\nwhen I receive [始まり v]\nset [ネクストok v] to [OK]\n\nforever\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n\nwhen I receive [ネクスト v]\nset [ネクストok v] to [OK]\n\nwhen flag clicked\nerase all\nset [ネクストok v] to [0]\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n\nwhen flag clicked\n\nif <(ステージ) = [18]> then\n    switch backdrop to (背景5 v)\nend\n\nwhen I receive [最終決戦 v]\n\nstop [other scripts in sprite v]\n\nrepeat until <<(エンダードラゴン体力) = [0]> or <(エンダードラゴン体力) < [0]>>\n\nwhen I receive [最終決戦 v]\nstop all sounds\nforever\nend\n\nif <<(エンダードラゴン体力) = [0]> or <(エンダードラゴン体力) < [0]>> then\n    stop all sounds\nend\n\nwhen I receive [始まり v]\n\nwhen I receive [始まり v]\n\nwhen flag clicked\nset [time　タイム v] to [0]\nhide variable [time　タイム v]\nhide variable [☁ 世界記録　world record v]\n\nshow variable [time　タイム v]\n\nwhen I receive [始まり v]\n\nif <(ステージ) = [19]> then\n\nwhen flag clicked\nforever\n\nwhen flag clicked\nforever\n    if <(ステージ) = [19]> then\n        if <(time　タイム) < (世界記録　world record)> then\n            repeat (10)\n                set [☁ 世界記録　world record v] to (time　タイム)\n            end\n            stop [this script v]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [5]> then\n        switch backdrop to (背景4 v)\n    end\n    if <(ステージ) = [8]> then\n        switch backdrop to (背景3 v)\n    end\n    if <(ステージ) = [15]> then\n        switch backdrop to (背景4 v)\n    end\n    if <(ステージ) = [17]> then\n        switch backdrop to (背景5 v)\n    end\n    if <(ステージ) = [18]> then\n        broadcast (最終決戦 v)\n        switch backdrop to (背景5 v)\n        wait until <(ステージ) = [19]>\n    end\nend\n\nif <(ステージ) = [19]> then\n\nwhen flag clicked\n\nforever\n\n\n\nwhen I receive [始まり v]\nstop all sounds\nrepeat until <(ステージ) = [18]>\n    play sound [Vexento - Pixel Party v] until done\nend\nrepeat until <<(エンダードラゴン体力) = [0]> or <(エンダードラゴン体力) < [0]>>\n    play sound [あなゆまなはゆ v] until done\n    stop all sounds\nend\n\nwhen I receive [始まり v]\nrepeat until <(ステージ) = [19]>\n    wait (1) seconds\n    change [time　タイム v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [19]> then\n        stop all sounds\n        wait (1) seconds\n        play sound [PIKASONIC - Osaka Express  v] until done\n        wait until <(ステージ) = [20]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [19]> then\n        show variable [time　タイム v]\n        show variable [☁ 世界記録　world record v]\n    end\nend\n\nstop all sounds\nwait (1) seconds\nplay sound [PIKASONIC - Osaka Express  v] until done\nwait until <(ステージ) = [20]>\n\n@プレーヤー\n\nwhen flag clicked\nhide\nswitch costume to (普通 v)\n\nwhen I receive [intro終了 v]\nset rotation style [left-right v]\nset size to (70) %\nset [y v] to [0]\nset [x v] to [0]\nshow\nブロック名\nforever\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [x v] by (-1.2)\n        set [向き v] to [左]\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        change [x v] by (1.2)\n        set [向き v] to [右]\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        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change x by ((x) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n                                if <(x) < [0]> then\n                                    set [x v] to [10]\n                                else\n                                    set [x v] to [　-10]\n                                end\n                                set [y v] to [10]\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 <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > [0]>>> then\n        if <touching (地面 v)?> then\n            set [y v] to [15]\n        end\n    end\n    change y by (1)\n    change [y v] by (-1)\n    change y by (y)\n    if <touching (地面 v)?> then\n        change y by ((y) * (-1))\n        set [y v] to [0]\n    end\n    if <<[240] < (x position)> and <(ネクストOK) = [OK]>> then\n        ブロック名\n        broadcast (ネクスト v)\n        wait (0.1) seconds\n    end\n    if  then\n        start sound [ダメージ v]\n        ブロック名\n    end\n    if <[1] > (プレイヤー体力)> then\n        ブロック名\n        broadcast (しんだ v)\n    end\nend\n\ndefine ブロック名\ngo to x: (-176) y: (14)\nset [x v] to [0]\nset [y v] to [0]\nset [プレイヤー体力 v] to [20]\n\ngo to x: (0) y: (0)\n\nwhen I receive [始まり v]\nswitch costume to (コスチューム2 v)\nブロック名\nbroadcast (もちろんさーー v)\nブロック名\nshow\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I receive [ネクスト v]\nブロック名\n\nwhen I receive [ダメージですどうかな v]\nswitch costume to (コスチューム3 v)\nwait (0.2) seconds\nswitch costume to (コスチューム2 v)\n\nwhen flag clicked\n\nwhen I receive [始まり v]\nforever\n    go to [front v] layer\nend\n\n@地面\n\nwhen I receive [intro終了 v]\nshow\ngo to x: (0) y: (0)\nswitch costume to (コスチューム1 v)\nset [☁ 398 v] to [0]\nrepeat until <(ステージ) = [41]>\n    wait (1) seconds\n    change [☁ 398 v] by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [ネクスト v]\nnext costume\nchange [ステージ v] by (1)\n\nswitch costume to (コスチューム1 v)\n\nwhen flag clicked\nset [ステージ v] to [1]\n\nwhen I receive [持ち去る v]\nnext costume\nchange [ステージ v] by (1)\n\nwhen I receive [もちろんさーー v]\nswitch costume to (コスチューム4 v)\n\n@落雷\n\nwhen flag clicked\ngo to x: (0) y: (250)\n\nwhen flag clicked\n\nwhen I receive [intro終了 v]\nwait (3) seconds\nset pen size to (30)\nset pen color to (#fff47d)\npen down\nstart sound [lightning-strike-1 v]\nglide (0.0001) secs to x: (0) y: (0)\npen up\nwait (0.1) seconds\nerase all\n\nwhen I receive [持ち去る v]\ngo to x: (0) y: (250)\nset pen size to (30)\nset pen color to (#fff47d)\npen down\nstart sound [lightning-strike-1 v]\nglide (0.0001) secs to x: (0) y: (0)\npen up\nwait (0.1) seconds\nerase all\nwait (3) seconds\n\n@エンドラ\n\nwhen flag clicked\n\nwhen I receive [intro終了 v]\nset rotation style [left-right v]\nset size to (100) %\nwait (4) seconds\nshow\npoint in direction (-90)\ngo to x: (300) y: (101)\nrepeat until <[] = [指示]>\n    wait (0.05) seconds\n    switch costume to (コスチューム2 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム3 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム6 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム5 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム8 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム9 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム11 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム10 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム12 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム13 v)\nend\n\nwait (00.5) seconds\n\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [intro終了 v]\n\nwhen I receive [intro終了 v]\npoint in direction (-90)\nset rotation style [left-right v]\nset size to (100) %\nwait (4) seconds\nglide (3) secs to x: (0) y: (101)\nbroadcast (持ち去る v)\nwait (1) seconds\npoint in direction (90)\nglide (1) secs to x: (200) y: (101)\nhide\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [持ち去る v]\nswitch costume to (コスチューム1 v)\nset [ghost v] effect to (100)\ngo to [front v] layer\nwait (4) seconds\nshow\nrepeat (25)\n    change [ghost v] effect by (-4)\nend\nrepeat (10)\n    start sound [Doorbell v]\nend\nwait (2) seconds\nnext costume\nrepeat (10)\n    start sound [Doorbell v]\nend\nwait (1) seconds\nnext costume\nwait (1) seconds\nhide\nbroadcast (始まり v)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\n\nwhen I receive [持ち去る v]\nwait () seconds\nshow\nwait (0.05) seconds\nhide\n\n@けん\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [始まり v]\nshow\ngo to [front v] layer\nforever\n    go to (プレーヤー v)\n    if <(向き) = [右]> then\n        point in direction (-90)\n        set rotation style [left-right v]\n    end\n    if <(向き) = [左]> then\n        point in direction (90)\n        set rotation style [left-right v]\n    end\nend\n\npoint towards (プレーヤー v)\n\nwhen I receive [攻撃 v]\nswitch costume to (-7 v)\nwait (0.1) seconds\nset [攻撃 v] to [叩く]\nrepeat (6)\n    next costume\nend\nwait (0.01) seconds\nset [攻撃 v] to [叩いてない]\n\nif <(右左) = [0]> then\npoint in direction (90)\nset [攻撃 v] to [叩く]\nwait (0.01) seconds\nset [攻撃 v] to [叩いてない]\n\nrepeat (2)\n    set rotation style [all around v]\n    turn right (15) degrees\nend\nwait (0.09) seconds\nswitch costume to (-7 v)\n\nswitch costume to (-7 v)\nwait (0.1) seconds\nset rotation style [all around v]\nset [攻撃 v] to [叩く]\nwait (0.01) seconds\nset [攻撃 v] to [叩いてない]\n\nwait (0.1) seconds\npoint in direction (90)\n\nturn right (15) degrees\n\nif <(右左) = [0]> then\n\npoint in direction (90)\n\nset rotation style [all around v]\n\nwhen I receive [始まり v]\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\nend\n\n@攻撃ボタン\n\nwhen I receive [始まり v]\nforever\n    show\n    forever\n        go to [front v] layer\n        if <<touching (mouse-pointer v)?> or <key (space v) pressed?>> then\n            set [動いていいか v] to [1]\n            set [ghost v] effect to (10)\n            if <<mouse down?> or <key (space v) pressed?>> then\n                broadcast (攻撃 v)\n                wait (0.1) seconds\n                wait until <not <mouse down?>>\n            end\n        else\n            set [ghost v] effect to (70)\n            set [動いていいか v] to [0]\n        end\n    end\nend\n\nshow\n\nwhen flag clicked\nhide\nset [押された v] to [押されていない]\n\nset [動いていいか v] to [0]\n\n@スプライト3\n\nwhen flag clicked\nforever\n    if <touching (プレーヤー v)?> then\n        wait (2) seconds\n        broadcast (ネクスト v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\ngo to [back v] layer\nhide\nforever\n    if <(ステージ) = [7]> then\n        go to x: (36) y: (28)\n        show\n    else\n        hide\n    end\n    if <(ステージ) = [13]> then\n        go to x: (36) y: (95)\n        show\n    else\n    end\n    if <<(ステージ) = [7]> or <(ステージ) = [13]>> then\n    else\n        hide\n    end\nend\n\nhide\n\n@Health2\n\nwhen I receive [始まり v]\ngo to [front v] layer\nforever\n    switch costume to ((プレイヤー体力) + (1))\nend\n\nwhen I receive [始まり v]\nwait (0.01) seconds\nforever\n    show\n    go to [front v] layer\nend\n\nwhen flag clicked\nhide\nswitch costume to (health20 v)\n\nwhen I receive [やられた v]\nhide\n\nwhen I receive [始まり v]\nforever\n    if <(ダメージ) < [0]> then\n        repeat (2)\n            set [brightness v] effect to (40)\n            wait (0.1) seconds\n            set [brightness v] effect to (0)\n            wait (0.1) seconds\n        end\n    end\nend\n\nif <not <(プレイヤー体力) = [11]>> then\n\n@敵2\n\nset [プレイヤー体力 v] to [0]\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        change [プレイヤー体力 v] by (-2)\n        start sound [ダメージ v]\n        broadcast (ダメージですどうかな v)\n        if <(direction) = [90]> then\n            set [y v] to [10]\n            set [x v] to [13]\n        else\n            if <(direction) = [-90]> then\n                set [y v] to [10]\n                set [x v] to [-13]\n            end\n        end\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (エレベーター v)\nset [はあああ v] to [0]\nset [xxxx v] to [0]\nset [yyy v] to [0]\nset size to (75) %\nset [許可 v] to [1]\nset rotation style [left-right v]\nshow\nforever\n    if <(許可) = [1]> then\n        if <(x position) < ([x position v] of [プレーヤー v])> then\n            point in direction (-90)\n            change [xxxx v] by (0.2)\n        end\n        if <([x position v] of [プレーヤー v]) < (x position)> then\n            point in direction (90)\n            change [xxxx v] by (-0.2)\n        end\n        if <not <(許可) = [1]>> then\n            set [xxxx v] to [0]\n            set [yyy v] to [0]\n            repeat until <(許可) = [1]>\n                go to x: (130) y: (-45)\n            end\n        end\n        set [xxxx v] to ((xxxx) * (0.9))\n        change x by (xxxx)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (地面 v)?> then\n                    change y by (1)\n                    if <touching (ステージ v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change y by (1)\n                            if <touching (地面 v)?> then\n                                change x by ((0) - (xxxx))\n                                change y by (-5)\n                                if <[0] < (xxxx)> then\n                                    set [xxxx v] to [-2]\n                                else\n                                    set [xxxx v] to [2]\n                                end\n                                set [yyy v] to [10]\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [yyy v] by (-1)\n        change y by (yyy)\n        if <touching (地面 v)?> then\n            change y by ((0) - (yyy))\n            set [yyy v] to [0]\n        end\n        change y by (-2)\n        if <(許可) = [1]> then\n            if <touching (地面 v)?> then\n                set [yyy v] to [10]\n            end\n        end\n        if <([y position v] of [背景1 \(1\) v]) < (y position)> then\n            if <touching (地面 v)?> then\n                if <(はあああ) = [1]> then\n                    set [はあああ v] to [0]\n                    set [yyy v] to [10]\n                end\n            end\n        end\n        change y by (1)\n    end\nend\n\nwhen I start as a clone\nforever\n    if <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n        change [hp v] by (-5)\n        switch costume to (エレベーター2 v)\n        start sound [Enderman hurt v]\n        wait (0.2) seconds\n        switch costume to (エレベーター v)\n        if <(direction) = [90]> then\n            set [yyy v] to [10]\n            set [xxxx v] to [13]\n        else\n            if <(direction) = [-90]> then\n                set [yyy v] to [10]\n                set [xxxx v] to [-13]\n            end\n        end\n    end\nend\n\nwhen I receive [ダメージですどうかな v]\n\nwhen I start as a clone\nforever\n    if <<(hp) = [0]> or <[0] > (hp)>> then\n        start sound [Enderman death v]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (5)\n            turn right (2) degrees\n        end\n        hide\n        set [ネクストok v] to [OK]\n        delete this clone\n    end\nend\n\nwhen I receive [game over v]\n\nif <touching (ステージ v)?> then\n    if <[0] < (xxxx)> then\n        set [yyy v] to [13]\n    end\nend\n\nwhen I receive [next v]\n\nwhen I receive [intro終了 v]\nforever\n    hide\n    if <(ステージ) = [10]> then\n        set size to (50) %\n        switch costume to (コスチューム1 v)\n        go to x: (162) y: (-4)\n        set [hp v] to [50]\n        set [ネクストok v] to [0]\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [11]>\n    end\nend\n\nwait (5) seconds\n\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<touching (剣 v)?> and <(攻撃) = [叩く]>> then\nend\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        change [プレイヤー体力 v] by (-2)\n        wait (1) seconds\n    end\nend\n\nif <(プログラム) = [第一]> then\n\nset [ステージ v] to [8]\n\n@敵3\n\nwait (0.1) seconds\n\nwait (0.1) seconds\nset [ダメージ v] to [0]\n\nset [hp v] to [-10]\n\nset [プレイヤー体力 v] to [-2]\n\nset [ダメージ v] to [0]\n\nset [ネクストok v] to [OK]\n\nset [ネクストok v] to [OK]\n\ndelete this clone\n\nwhen I receive [しんだ v]\nhide\nif <(ステージ) = [5]> then\n    repeat (1)\n        set size to (50) %\n        switch costume to (コスチューム1 v)\n        go to x: (162) y: (-4)\n        create clone of (_myself_ v)\n        wait until <(ステージ) = [6]>\n    end\nend\n\nforever\n\nbroadcast (ダメージですどうかな v)\n\nif <touching (プレーヤー v)?> then\n    change [プレイヤー体力 v] by (-2)\n    start sound [ダメージ v]\n    if <(direction) = [90]> then\n        set [y v] to [10]\n        set [x v] to [13]\n    else\n        if <(direction) = [-90]> then\n            set [y v] to [10]\n            set [x v] to [-13]\n        end\n    end\n    wait (1) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nswitch costume to (player v)\nset [はあああ v] to [0]\nset [xxxx v] to [0]\nset [yyy v] to [0]\nset size to (75) %\nset [許可 v] to [1]\nset rotation style [left-right v]\nshow\nforever\n    if <(許可) = [1]> then\n        if <(x position) < ([x position v] of [プレーヤー v])> then\n            point in direction (90)\n            change [xxxx v] by (0.2)\n        end\n        if <([x position v] of [プレーヤー v]) < (x position)> then\n            point in direction (-90)\n            change [xxxx v] by (-0.2)\n        end\n    end\n    if <not <(許可) = [1]>> then\n        set [xxxx v] to [0]\n        set [yyy v] to [0]\n        repeat until <(許可) = [1]>\n            go to x: (130) y: (-45)\n        end\n    end\n    set [xxxx v] to ((xxxx) * (0.9))\n    change x by (xxxx)\n    if <touching (地面 v)?> then\n        change y by (1)\n        if <touching (地面 v)?> then\n            change y by (1)\n            if <touching (地面 v)?> then\n                change y by (1)\n                if <touching (ステージ v)?> then\n                    change y by (1)\n                    if <touching (地面 v)?> then\n                        change y by (1)\n                        if <touching (地面 v)?> then\n                            change x by ((0) - (xxxx))\n                            change y by (-5)\n                            if <[0] < (xxxx)> then\n                                set [xxxx v] to [-2]\n                            else\n                                set [xxxx v] to [2]\n                            end\n                            set [yyy v] to [10]\n                        end\n                    end\n                end\n            end\n        end\n    end\n    change [yyy v] by (-1)\n    change y by (yyy)\n    if <touching (地面 v)?> then\n        change y by ((0) - (yyy))\n        set [yyy v] to [0]\n    end\n    change y by (-2)\n    if <(許可) = [1]> then\n        if <touching (地面 v)?> then\n            set [yyy v] to [10]\n        end\n    end\n    if <([y position v] of [背景1 \(1\) v]) < (y position)> then\n        if <touching (地面 v)?> then\n            if <(はあああ) = [1]> then\n                set [はあああ v] to [0]\n                set [yyy v] to [10]\n            end\n        end\n    end\n    change y by (1)\n    if <[] = [６]> then\nend\n\nwhen I start as a clone\nforever\n    if <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n        change [hp v] by (-10)\n        switch costume to (player2 v)\n        wait (0.2) seconds\n        switch costume to (player v)\n        if <(direction) = [90]> then\n            set [yyy v] to [10]\n            set [xxxx v] to [13]\n        else\n            if <(direction) = [-90]> then\n                set [yyy v] to [10]\n                set [xxxx v] to [-13]\n            end\n        end\n    end\nend\n\nwhen I receive [ダメージですどうかな v]\n\nwhen I start as a clone\nset [hp v] to [50]\nforever\n    if <<<(hp) = [0]> or <[0] > (hp)>> or <(ステージ) = [7]>> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (5)\n            turn right (2) degrees\n        end\n        hide\n        set [ネクストok v] to [OK]\n    end\nend\n\nwhen I receive [game over v]\ndelete this clone\n\nif <touching (ステージ v)?> then\n    if <[0] < (xxxx)> then\n        set [yyy v] to [13]\n    end\nend\n\nwhen I receive [next v]\n\nwhen I receive [始まり v]\nforever\n    hide\n    if <(ステージ) = [5]> then\n        repeat (1)\n            set size to (50) %\n            switch costume to (コスチューム1 v)\n            go to x: (162) y: (-4)\n            create clone of (_myself_ v)\n            wait until <(ステージ) = [6]>\n        end\n    end\nend\n\ndelete this clone\n\nwhen flag clicked\nforever\n    if <<touching (剣 v)?> and <(攻撃) = [叩く]>> then\nend\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        change [プレイヤー体力 v] by (-2)\n        start sound [ダメージ v]\n        if <(direction) = [90]> then\n            set [y v] to [10]\n            set [x v] to [13]\n        else\n            if <(direction) = [-90]> then\n                set [y v] to [10]\n                set [x v] to [-13]\n            end\n        end\n        wait (1) seconds\n    end\nend\n\nif <(プログラム) = [第一]> then\n\nset [ステージ v] to [8]\n\n@ガスト\n\nwhen I receive [intro終了 v]\nhide\nset [えいちぴー v] to [0]\nforever\n    if <(ステージ) = [8]> then\n        set [ghost v] effect to (0)\n        go to [front v] layer\n        show\n        set size to (100) %\n        switch costume to (ガスト v)\n        go to x: (162) y: (50)\n        set [ネクストok v] to [0]\n        set [えいちぴー v] to [50]\n        wait until <(ステージ) = [9]>\n    end\nend\n\nwait (5) seconds\n\nwhen I receive [intro終了 v]\nforever\n    if <<(ステージ) = [8]> and <not <(えいちぴー) = [0]>>> then\n        switch costume to (コスチューム1 v)\n        wait (4) seconds\n        switch costume to (コスチューム2 v)\n        play sound [ガスト v] until done\n        broadcast (ほのう v)\n    end\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <not <(えいちぴー) = [0]>> then\n        set [ghost v] effect to (0)\n        go to [back v] layer\n        show\n        glide (1) secs to x: (162) y: (40)\n        glide (1) secs to x: (140) y: (50)\n        glide (1) secs to x: (120) y: (40)\n        glide (1) secs to x: (90) y: (50)\n        glide (1) secs to x: (60) y: (40)\n        glide (1) secs to x: (30) y: (50)\n        glide (1) secs to x: (0) y: (40)\n        glide (1) secs to x: (-30) y: (50)\n        glide (1) secs to x: (-60) y: (50)\n        glide (1) secs to x: (-90) y: (40)\n        glide (1) secs to x: (-120) y: (50)\n        glide (1) secs to x: (-150) y: (40)\n        glide (1) secs to x: (-180) y: (50)\n        glide (1) secs to x: (-240) y: (50)\n        glide (1) secs to x: (-180) y: (50)\n        glide (1) secs to x: (-150) y: (40)\n        glide (1) secs to x: (-120) y: (50)\n        glide (1) secs to x: (-90) y: (40)\n        glide (1) secs to x: (-60) y: (50)\n        glide (1) secs to x: (-30) y: (50)\n        glide (1) secs to x: (0) y: (40)\n        glide (1) secs to x: (30) y: (50)\n        glide (1) secs to x: (60) y: (40)\n        glide (1) secs to x: (90) y: (50)\n        glide (1) secs to x: (120) y: (40)\n        glide (1) secs to x: (140) y: (50)\n        glide (1) secs to x: (162) y: (40)\n    end\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n        change [えいちぴー v] by (-5)\n        switch costume to (コスチューム3 v)\n        play sound [ガストダメージ v] until done\n        wait (0.1) seconds\n        switch costume to (コスチューム1 v)\n    end\n    if <<<(ステージ) = [8]> or <(ステージ) = [9]>> and <<(えいちぴー) = [0]> or <[0] > (えいちぴー)>>> then\n        set [ネクストok v] to [OK]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (5)\n            turn right (2) degrees\n        end\n        hide\n    end\n    set rotation style [left-right v]\nend\n\npoint towards (プレーヤー v)\n\nwhen flag clicked\nhide\n\nset [ネクストok v] to [1]\n\nplay sound [ガスト音 v] until done\n\nwhen I receive [intro終了 v]\nhide\nset [えいちぴー v] to [0]\nforever\n    if <(ステージ) = [9]> then\n        set [えいちぴー v] to [0]\n    end\nend\n\nrepeat (10)\n\nwait (8) seconds\nswitch costume to (コスチューム2 v)\nplay sound [ガスト v] until done\n\nset [ネクストok v] to [OK]\n\nif <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n    change [えいちぴー v] by (-5)\n    switch costume to (コスチューム3 v)\n    play sound [ガストダメージ v] until done\n    wait (0.1) seconds\n    switch costume to (コスチューム1 v)\nend\n\n@スプライト4\n\nwhen flag clicked\nset size to (20) %\nhide\n\nwhen I receive [ほのう v]\ncreate clone of (_myself_ v)\n\nwait (0.5) seconds\n\ndelete this clone\n\nif  then\n    change [プレイヤー体力 v] by (-6)\n    hide\n    wait (1) seconds\n    switch costume to (explosion_0 v)\n    start sound [get4 v]\n    broadcast (ダメージですどうかな v)\n    if <(direction) = [90]> then\n        set [y v] to [10]\n        set [x v] to [13]\n    else\n        if <(direction) = [-90]> then\n            set [y v] to [10]\n            set [x v] to [-13]\n        end\n    end\n    set size to (250) %\nend\n\nrepeat (6)\n    wait () seconds\n    next costume\nend\nhide\n\nif <touching (プレーヤー v)?> then\n    change [プレイヤー体力 v] by <touching (プレーヤー v)?>\n    start sound [ダメージ v]\nend\n\nwait (1) seconds\n\ndelete this clone\n\nwhen I start as a clone\nforever\nend\n\nwhen I start as a clone\nset size to (20) %\nswitch costume to (コスチューム2 v)\nif <(ステージ) = [12]> then\n    go to (プレイズ v)\nelse\n    go to (ガスト v)\nend\nshow\nglide (0.4) secs to (プレーヤー v)\nif <<touching (プレーヤー v)?> or <touching (地面 v)?>> then\n    wait (0.2) seconds\n    delete this clone\nelse\n    wait (0.3) seconds\n    delete this clone\nend\n\nwhen I start as a clone\nforever\n    if <touching (プレーヤー v)?> then\n        change [プレイヤー体力 v] by (-6)\n        switch costume to (explosion_0 v)\n        broadcast (ダメージですどうかな v)\n        if <(direction) = [90]> then\n            set [y v] to [10]\n            set [x v] to [13]\n        else\n            if <(direction) = [-90]> then\n                set [y v] to [10]\n                set [x v] to [-13]\n            end\n        end\n        start sound [get4 v]\n        set size to (250) %\n        repeat (6)\n            wait () seconds\n            next costume\n        end\n        delete this clone\n    end\nend\n\n@スプライト5\n\n@プレイズ\n\nwhen flag clicked\n\nwhen I receive [intro終了 v]\nset [hp子を v] to [0]\nhide\nforever\n    if <(ステージ) = [12]> then\n        go to [back v] layer\n        set [ghost v] effect to (0)\n        show\n        set size to (100) %\n        switch costume to (スケルトン v)\n        go to x: (162) y: (50)\n        set [hp子を v] to [50]\n        set [ネクストok v] to [1]\n        wait until <(ステージ) = [13]>\n    end\nend\n\ncreate clone of (_myself_ v)\n\nswitch costume to (スケルトン2 v)\n\nwhen I start as a clone\nforever\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <not <(hp) = [0]>> then\nend\n\nglide (1) secs to (プレーヤー v)\n\nchange y by (50)\n\nwhen I start as a clone\nforever\n\nglide (1) secs to x: (162) y: (50)\nset x to (162)\n\nglide (1) secs to x: (-240) y: (50)\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nhide\n\nwhen I receive [intro終了 v]\nforever\n    if <not <(ステージ) = [12]>> then\n        hide\n    end\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <not <(HP子を) = [0]>> then\n        go to [front v] layer\n        show\n        glide (1) secs to x: (162) y: (40)\n        glide (1) secs to x: (140) y: (50)\n        glide (1) secs to x: (120) y: (40)\n        glide (1) secs to x: (90) y: (50)\n        glide (1) secs to x: (60) y: (40)\n        glide (1) secs to x: (30) y: (50)\n        glide (1) secs to x: (0) y: (40)\n        glide (1) secs to x: (-30) y: (50)\n        glide (1) secs to x: (-60) y: (50)\n        glide (1) secs to x: (-90) y: (40)\n        glide (1) secs to x: (-120) y: (50)\n        glide (1) secs to x: (-150) y: (40)\n        glide (1) secs to x: (-180) y: (50)\n        glide (1) secs to x: (-240) y: (50)\n        glide (1) secs to x: (-180) y: (50)\n        glide (1) secs to x: (-150) y: (40)\n        glide (1) secs to x: (-120) y: (50)\n        glide (1) secs to x: (-90) y: (40)\n        glide (1) secs to x: (-60) y: (50)\n        glide (1) secs to x: (-30) y: (50)\n        glide (1) secs to x: (0) y: (40)\n        glide (1) secs to x: (30) y: (50)\n        glide (1) secs to x: (60) y: (40)\n        glide (1) secs to x: (90) y: (50)\n        glide (1) secs to x: (120) y: (40)\n        glide (1) secs to x: (140) y: (50)\n        glide (1) secs to x: (162) y: (40)\n    end\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n        start sound [ブレイズダメージ v]\n        change [hp子を v] by (-5)\n        switch costume to (スケルトン2 v)\n        wait (0.2) seconds\n        switch costume to (スケルトン v)\n    end\n    if <<<(HP子を) = [0]> or <[0] > (HP子を)>> and <(ステージ) = [12]>> then\n        set [ネクストok v] to [OK]\n        repeat (10)\n            change [ghost v] effect by (10)\n            change y by (5)\n            turn right (2) degrees\n        end\n        hide\n    end\n    set rotation style [left-right v]\n    point towards (プレーヤー v)\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <(ステージ) = [12]> then\n        if <not <(HP子を) = [0]>> then\n            go to [front v] layer\n            show\n        end\n    end\nend\n\nrepeat (10)\n\nwait (5) seconds\nshow\nset size to (100) %\nswitch costume to (スケルトン v)\ngo to x: (162) y: (50)\nset [えいちぴー v] to [50]\nset [ネクストok v] to [1]\nwait until <(ステージ) = [12]>\n\nwhen flag clicked\nhide\n\nwhen I receive [intro終了 v]\nforever\n    if <(ステージ) = [12]> then\n        if <not <(HP子を) = [0]>> then\n            go to [front v] layer\n            show\n        end\n    end\nend\n\nwhen I receive [intro終了 v]\nforever\n    if <(ステージ) = [12]> then\n        if <not <(HP子を) = [0]>> then\n            set [ghost v] effect to (0)\n            go to [front v] layer\n            show\n        end\n    end\nend\n\nwait (5) seconds\n\nwhen I receive [intro終了 v]\nforever\n    if <not <<(HP子を) = [0]> or <[0] > (HP子を)>>> then\n        wait (4) seconds\n        repeat (1)\n            broadcast (ほのう v)\n        end\n    end\nend\n\n\n\n@エンドラ2\n\nbroadcast (最終決戦 v)\n\nwhen I receive [最終決戦 v]\nshow\nset size to (70) %\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nforever\n    if <(ステージ) = [18]> then\n        show\n        glide (2) secs to x: (-200) y: (100)\n        glide (2) secs to x: (100) y: (100)\n        glide (2) secs to x: (80) y: (100)\n        glide (1) secs to x: (0) y: (100)\n        glide (1) secs to x: (0) y: (0)\n        wait (1) seconds\n    end\nend\n\nshow\n\npoint in direction (90)\n\nwhen flag clicked\nforever\n    if <(ステージ) = [18]> then\n        set rotation style [left-right v]\n        point towards (プレーヤー v)\n    end\nend\n\nhide\n\nwhen flag clicked\nhide\nforever\n    if <(ステージ) = [18]> then\n        wait (3) seconds\n        broadcast (ブレス v)\n    end\nend\n\nwhen flag clicked\n\nwhen I receive [intro終了 v]\n\nwait (00.5) seconds\n\nwhen flag clicked\nrepeat until <[] = [指示]>\n    wait (0.05) seconds\n    switch costume to (@コスチューム2 v)\n    wait (0.05) seconds\n    switch costume to (@コスチューム3 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム6@ v)\n    wait (0.05) seconds\n    switch costume to (@コスチューム5 v)\n    wait (0.05) seconds\n    switch costume to (@コスチューム8 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム9 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム11 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム10 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム12 v)\n    wait (0.05) seconds\n    switch costume to (コスチューム13 v)\nend\n\nwhen I receive [intro終了 v]\n\nwhen flag clicked\nset [エンダードラゴン体力 v] to [0]\nforever\n    if <(ステージ) = [18]> then\n        set [エンダードラゴン体力 v] to [50]\n        wait until <(ステージ) = [19]>\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージ) = [18]> then\n        if <<touching (けん v)?> and <(攻撃) = [叩く]>> then\n            broadcast (くらう v)\n            change [エンダードラゴン体力 v] by (-2)\n            switch costume to (コスチューム1 v)\n            play sound [1 v] until done\n        end\n    end\nend\n\nchange [color v] effect by (25)\n\nswitch costume to (コスチューム1 v)\n\nwait (0.1) seconds\n\nwhen flag clicked\nforever\n    if <(ステージ) = [18]> then\n        if <<(エンダードラゴン体力) = [0]> or <(エンダードラゴン体力) < [0]>> then\n            glide (2) secs to x: (0) y: (0)\n            play sound [sen_ge_bom17 v] until done\n            glide (2) secs to x: (0) y: (150)\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            wait (2) seconds\n            broadcast (ネクスト v)\n        end\n    end\nend\n\n@スプライト7\n\nwhen flag clicked\nhide\nforever\n    if <[16] = (ステージ)> then\n        show\n        if <touching (プレーヤー v)?> then\n            broadcast (ネクスト v)\n        end\n    else\n        hide\n    end\nend\n\nif  then\nend\n\nforever\n\n@スプライト8\n\n\n\nchange [プレイヤー体力 v] by (8)\n\nwhen I receive [ブレス v]\nforever\n    if <touching (プレーヤー v)?> then\n        wait (0.1) seconds\n        change [プレイヤー体力 v] by (-2)\n        start sound [ダメージ v]\n        broadcast (ダメージですどうかな v)\n        if <(direction) = [90]> then\n            set [y v] to [5]\n            set [x v] to [-5]\n        else\n            if <(direction) = [-90]> then\n                set [y v] to [5]\n                set [x v] to [-5]\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset size to (20) %\nhide\n\nwhen I receive [ブレス v]\nset size to (30) %\nswitch costume to (コスチューム2 v)\nif <(ステージ) = [12]> then\n    go to (エンドラ v)\nelse\n    go to (エンドラ2 v)\nend\nshow\nglide (0.4) secs to (プレーヤー v)\nif <<touching (プレーヤー v)?> or <touching (地面 v)?>> then\n    switch costume to (explosion_0 v)\n    broadcast (ダメージですどうかな v)\n    start sound [get4 v]\n    set size to (250) %\n    repeat (6)\n        wait () seconds\n        next costume\n    end\n    hide\nelse\n    repeat (10)\n        if <touching (プレーヤー v)?> then\n            change [プレイヤー体力 v] by (-6)\n            switch costume to (explosion_0 v)\n            start sound [get4 v]\n            broadcast (ダメージですどうかな v)\n            if <(direction) = [90]> then\n                set [y v] to [10]\n                set [x v] to [13]\n            else\n                if <(direction) = [-90]> then\n                    set [y v] to [10]\n                    set [x v] to [-13]\n                end\n            end\n            set size to (250) %\n            repeat (6)\n                wait () seconds\n                next costume\n            end\n            hide\n        end\n        hide\n    end\nend\nwait (0.5) seconds\n\ndelete this clone\n\nif <touching (プレーヤー v)?> then\n    change [プレイヤー体力 v] by (-2)\n    start sound [ダメージ v]\nend\n\nwait (1) seconds\n\n@スプライト9\n\nwhen flag clicked\nerase all\nhide\ngo to x: (-210) y: (150)\n\nwhen I receive [最終決戦 v]\nset pen size to (20)\nerase all\nshow\npen down\nset pen color to (#ce3e84)\nglide (0.00001) secs to x: (200) y: (150)\npen up\nforever\n    if <<(エンダードラゴン体力) < [0]> and <(エンダードラゴン体力) = [0]>> then\n        erase all\n        hide\n    end\nend\n\nerase all\n\nwait (3) seconds\n\nstart sound [叫び1 v]\n\nwhen I receive [くらう v]\npen down\nset pen color to (#d0ffc1)\nchange x by (-16.5)\n\n@スプライト10\n\nwhen flag clicked\nhide\n\nwhen I receive [最終決戦 v]\nshow\n\nset pen color to (#fa00ff)\n\nwhen flag clicked\nforever\n    if <(ステージ) = [18]> then\nend\n\n@スプライト11\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\n@登録推進\n\nwhen I receive [登録！ v]\ngo to x: (0) y: (0)\nset [登録用 v] to [0]\nswitch costume to (1 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム1 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム2 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム3 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム4 v)\ncreate clone of (_myself_ v)\nswitch costume to (3 v)\ncreate clone of (_myself_ v)\nswitch costume to (4 v)\ncreate clone of (_myself_ v)\nswitch costume to (コスチューム5 v)\ncreate clone of (_myself_ v)\nswitch costume to (くうはく v)\ncreate clone of (_myself_ v)\nwait (1) seconds\nchange [登録用 v] by (1)\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nif <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>> then\n    wait until <(登録用) = [1]>\n    if <(costume [number v]) = [6]> then\n        wait (0.2) seconds\n    end\n    start sound [High Whoosh v]\n    repeat until <(round (y position)) = [-20]>\n        change y by (((-20) - (y position)) / (4))\n        change [ghost v] effect by (15)\n    end\n    hide\n    set [登録用 v] to [2]\nelse\n    if <<(costume [number v]) = [7]> or <(costume [number v]) = [8]>> then\n        hide\n        go to x: (0) y: (30)\n        wait until <(登録用) = [2]>\n        if <(costume [number v]) = [8]> then\n            wait (0.2) seconds\n        end\n        show\n        repeat until <(round (y position)) = [0]>\n            change y by (((0) - (y position)) / (4))\n        end\n        wait until <(登録用) = [4]>\n        repeat until <(round (y position)) = [10]>\n            change y by (((10) - (y position)) / (4))\n        end\n        wait until <(登録用) = [5]>\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n    else\n        if <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n            hide\n            wait until <(登録用) = [2]>\n            if <(costume [number v]) = [4]> then\n                wait (0.2) seconds\n            end\n            show\n            set size to (150) %\n            repeat until <(round (size)) = [100]>\n                change size by (((100) - (size)) / (2))\n            end\n            start sound [Collect v]\n            set [登録用 v] to [3]\n            wait until <(登録用) = [4]>\n            repeat until <(round (y position)) = [10]>\n                change y by (((10) - (y position)) / (4))\n            end\n            wait until <(登録用) = [5]>\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n        else\n            if <(costume [number v]) = [2]> then\n                wait until <(登録用) = [3]>\n                hide\n                wait (1) seconds\n                start sound [Low Whoosh v]\n                set [登録用 v] to [4]\n            else\n                if <(costume [number v]) = [9]> then\n                    go to [back v] layer\n                    hide\n                    wait until <(登録用) = [4]>\n                    show\n                    go to x: (0) y: (30)\n                    repeat until <(round (y position)) = [0]>\n                        change y by (((0) - (y position)) / (4))\n                    end\n                    wait until <(登録用) = [5]>\n                    repeat (10)\n                        change [ghost v] effect by (10)\n                    end\n                else\n                    if <(costume [number v]) = [1]> then\n                        wait until <(登録用) = [4]>\n                        repeat until <(round (y position)) = [10]>\n                            change y by (((10) - (y position)) / (4))\n                        end\n                        wait (2) seconds\n                        set [登録用 v] to [5]\n                        wait until <(登録用) = [5]>\n                        repeat (10)\n                            change [ghost v] effect by (10)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nhide\nbroadcast (登録！ v)\n\nwhen flag clicked\nwait (6) seconds\nbroadcast (intro終了 v)\n\n@スプライト12\n\n