Minecraft platformer!! 1 #platformer #game #games

Instructions: 日本語は下↓ 傾向に乗れないバグがあったので、傾向に乗れませんでした…\n⚠︎Please read the instructions carefully⚠︎\n -How to play-- \n[PC] Operate with arrow keys attack with spacebar Let's aim for the goal!\n[mobile] Tap the screen to operate Tap the screen to attack Let's aim for the goal! \nCredit ↓ \nReference @kuri-pa-2 \nCharacter costume @-firstwave- @kuri-pa-2 \nBlocks, gauges, etc.@griffpatch \nSound effects @kuri-pa-2@griffpatch \nThumbnail text @Kensuke17 \nBGM@zyo-ka-da \nSpider/Sun@-Jikky-\n I made most of the others myself ( ・∇・) \nPlease let me know if any credits are missing \ntag————————————————————-\n#k-44#Minecraft#platformer ——————————————————————\n\n⚠︎使い方をよく読んでね⚠︎\nー遊び方ーーーーーーーーーーーーーーーーーーー\n[PC]\n矢印キーで操作\nスペースキーで攻撃\nゴールを目指そう！\n[モバイル]\n画面をタップして操作\n画面をタップして攻撃\nゴールを目指そう！\n\nクレジット↓\n参考@kuri-pa-2 @-_kashiwa_-\nキャラコスチューム@-firstwave- @kuri-pa-2\nブロック・ゲージなど@griffpatch\n効果音@kuri-pa-2@griffpatch\nサムネイルの文字@Kensuke17\nくも・太陽@-Jikky-様\nその他はほとんど自分で作りました( ・∇・)\n\nクレジットが欠けている場合はお知らせください\n\nタグ———————————————————-\n#k-44#Minecraft#platformer\n—————————————————————-\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [619 v] until done\nend\n\n@地形\n\nwhen I receive [次! v]\nnext costume\ngo to [back v] layer\nif <[] = [50]> then\n\nwhen flag clicked\ngo to [back v] layer\nswitch costume to (地形1 v)\n\nwhen [timer v] > (タイマー)\nswitch costume to (地形5 v)\n\n@キャラ\n\nwhen flag clicked\nbroadcast (platformerスタート v)\nswitch costume to (player v)\nforever\n    set [タイマー v] to (timer)\nend\n\nwhen I receive [platformerスタート v]\nset volume to (100) %\nset [動ける? v] to [1]\nswitch costume to (スティーブ1 v)\nshow\nset rotation style [left-right v]\npoint in direction (90)\nセット\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <(動ける?) = [1]> then\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n            change [x v] by (ハヤサ)\n            point in direction (90)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n            change [x v] by ((0) - (ハヤサ))\n            point in direction (-90)\n        end\n        change x by (x)\n        set [x v] to ((x) * (0.9))\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.2))\n                                change y by (-5)\n                                if <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>> then\n                                    if <(x) > [0]> then\n                                        set [x v] to [-5]\n                                    else\n                                        set [x v] to [5]\n                                    end\n                                    set [y v] to [14]\n                                    start sound [壁キック v]\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 <[0] < (mouse y)>>> then\n            if <touching (地形 v)?> then\n                set [y v] to [14]\n                start sound [ジャンプ v]\n            end\n        end\n        change y by (y)\n        change [y v] by (-1)\n        if <touching (地形 v)?> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n        end\n        if <(x position) > [237]> then\n            if <([costume # v] of [地形 v]) = [5]> then\n                if <(ゾンビ) = [1]> then\n                    broadcast (次! v)\n                end\n            else\n                if <([costume # v] of [地形 v]) = [9]> then\n                    if <(スケルトン) = [1]> then\n                        broadcast (次! v)\n                    end\n                else\n                    if <not <([costume # v] of [地形 v]) = [16]>> then\n                        broadcast (次! v)\n                    end\n                end\n            end\n        end\n        if <touching (マグマ v)?> then\n            switch costume to (スティーブ やられた v)\n        else\n            switch costume to (スティーブ1 v)\n        end\n        if <touching (バネ v)?> then\n            set [y v] to [20]\n        end\n        if <(y position) < [-170]> then\n            L\n        end\n        if <<(ハート) = [0]> or <(ハート) < [1]>> then\n            L\n        end\n    end\nend\n\ndefine セット (x) (y)\ngo to x: (x) y: (y)\n\ndefine セット\ngo to x: (-200) y: (-60)\n\nwhen I receive [プレイヤー表示 v]\nshow\n\ndefine ダメージ () (音)\nset [動ける? v] to [2]\nif <(音) = [いる]> then\n    start sound [カッ v]\nend\nchange [ハート v] by ()\nwait (0.1) seconds\nset [動ける? v] to [1]\n\nwhen I receive [次! v]\nhide\nセット\nset [動ける? v] to [2]\nset volume to (0) %\nwait (1) seconds\nset volume to (100) %\nset [動ける? v] to [1]\nshow\n\nwhen [timer v] > (タイマー)\nhide\n\ndefine 即死\nset [動ける? v] to [2]\nstart sound [カッ v]\nchange [ハート v] by (-20)\nswitch costume to (スティーブ やられた v)\nwait (0.5) seconds\nセット\nswitch costume to (スティーブ1 v)\nset [ハート v] to [20]\nset [動ける? v] to [1]\n\nwhen I receive [ダメージ2 v]\nswitch costume to (スティーブ やられた v)\nダメージ [-2] [いる]\nwait (0.5) seconds\nswitch costume to (スティーブ1 v)\n\nwait (0.5) seconds\n\ndefine マグマ\nswitch costume to (スティーブ やられた v)\nstart sound [カッ v]\nchange [ハート v] by (-1)\n\ndefine L\nset [ゲームオーバー？ v] to [1]\nset [動ける? v] to [2]\nwait (0.01) seconds\nset [x v] to [0]\nset [y v] to [0]\nbroadcast (ゲームオーバー v)\n\nwhen I receive [ダメージ v]\nswitch costume to (スティーブ やられた v)\nダメージ [-2] [いる]\nwait (0.5) seconds\nswitch costume to (スティーブ1 v)\n\nwhen I receive [d v]\nchange [m v] by (1)\nif <(m) = [1]> then\n    start sound (pick random (5) to (6))\n    ダメージ [-6] []\nelse\n    ダメージ [-6] [いる]\nend\n\nchange [#biome v] by (1)\n\nwhen I receive [platformerスタート v]\nforever\n    set [xxx v] to (x position)\n    set [yyy v] to (y position)\nend\n\n@Health\n\nwhen flag clicked\nset [ハート v] to [20]\nforever\n    switch costume to ((ハート) + (1))\nend\n\nwhen I receive [次! v]\ngo to [back v] layer\nwait (3) seconds\ngo to [front v] layer\n\nwhen flag clicked\ngo to x: (-78) y: (-140)\nset size to (70) %\ngo to [front v] layer\n\nwhen [timer v] > (タイマー)\nhide\n\nwhen flag clicked\nshow\n\n@Hunger\n\nwhen flag clicked\nswitch costume to (hunger_20 v)\nforever\n    switch costume to ((Hunger) + (1))\nend\n\nwhen flag clicked\nset [hunger v] to [20]\nforever\n    wait (pick random (50) to (60)) seconds\n    change [hunger v] by (-1)\nend\n\nwhen flag clicked\nset [ハヤサ v] to [0.6]\nforever\n    if <(Hunger) = [6]> then\n        set [ハヤサ v] to [0.3]\n    end\nend\n\nwhen I receive [次! v]\ngo to [back v] layer\nwait (3) seconds\ngo to [front v] layer\n\nwhen flag clicked\nset size to (150) %\ngo to [front v] layer\n\nwhen [timer v] > (タイマー)\nhide\n\nwhen flag clicked\nshow\n\ngo to x: (70) y: (-140)\n\n@Oxygen\n\nwhen flag clicked\nhide\n\nwhen I receive [次! v]\n\nwhen [timer v] > (タイマー)\nhide\n\n@gui_invrow\n\nwhen I receive [init v]\n\nwhen I receive [次! v]\ngo to [back v] layer\nwait (3) seconds\ngo to [front v] layer\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen [timer v] > (タイマー)\n\nwhen flag clicked\nshow\n\n@アピール\n\nwhen flag clicked\nhide\nforever\n    wait (pick random (10) to (20)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\ngo to [front v] layer\ngo to x: (136) y: (153)\nchange [ghost v] effect by (100)\nstart sound [ポップ v]\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\nwait (3) seconds\nrepeat (50)\n    change [ghost v] effect by (2)\nend\nhide\n\nwhen [timer v] > (タイマー)\nhide\n\n@ゾンビ\n\nwhen I receive [platformerスタート v]\nwait until <([costume # v] of [地形 v]) = [5]>\nwait (1.6) seconds\ngo to x: (160) y: (0)\nset [ゾンビ v] to [0]\ncreate clone of (_myself_ v)\n\nif <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n    change [x v] by (ハヤサ)\n    switch costume to (player v)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n    change [x v] by ((0) - (ハヤサ))\n    point in direction (-90)\nend\n\nchange y by (-1)\n\nwait until <not <touching (雪玉 v)?>>\n\nwhen flag clicked\nset [ゾンビ v] to [0]\nset [スケルトン v] to [0]\nswitch costume to (コスチューム1 v)\nhide\n\nchange [ゾンビhp v] by (8)\n\ndefine フットブ2\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v] to [10]\n    set [y v] to [15]\nelse\n    set [x v] to [-10]\n    set [y v] to [15]\nend\n\nwhen I receive [ダメージ v]\nフットブ2\n\nwhen I start as a clone\nset volume to (100) %\ngo to [back v] layer\nset [動ける? v] to [1]\nswitch costume to (コスチューム1 v)\nshow\nset rotation style [left-right v]\npoint in direction (90)\nset [x\[z\] v] to [0]\nset [y\[z\] v] to [0]\nforever\n    if <(動ける?) = [1]> then\n        if <([x position v] of [キャラ v]) < (x position)> then\n            change [x\[z\] v] by (-0.3)\n            point in direction (90)\n        else\n            change [x\[z\] v] by (0.3)\n            point in direction (-90)\n        end\n        change x by (X\[z\])\n        set [x\[z\] v] to ((X\[z\]) * (0.9))\n        change y by (-5)\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 y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y\[z\] v] by (-1)\n        change y by (Y\[z\])\n    end\n    if <touching (地形 v)?> then\n        change y by ((Y\[z\]) * (-1))\n        set [y\[z\] v] to [0]\n    end\nend\n\nwhen I start as a clone\nforever\n    if <touching (キャラ v)?> then\n        broadcast (ダメージ v)\n        wait until <not <touching (キャラ v)?>>\n    end\nend\n\nwhen I start as a clone\nset [ゾンビhp v] to [5]\nforever\n    if <<touching (鉄の剣 v)?> and <(Kou) = [1]>> then\n        change [ゾンビhp v] by (-1)\n        if <(ゾンビHP) < [1]> then\n            switch costume to (player2 v)\n            wait until <not <<touching (鉄の剣 v)?> and <(Kou) = [1]>>>\n            wait (0.1) seconds\n            start sound [zombiedeath v]\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n            set [ゾンビ v] to [1]\n            delete this clone\n        else\n            start sound (pick random (4) to (5))\n            switch costume to (player2 v)\n            wait until <not <<touching (鉄の剣 v)?> and <(Kou) = [1]>>>\n            wait (0.1) seconds\n            switch costume to (コスチューム1 v)\n            if <([x position v] of [キャラ v]) < (x position)> then\n                set [x\[z\] v] to [5]\n                set [y\[z\] v] to [10]\n            else\n                set [x\[z\] v] to [-5]\n                set [y\[z\] v] to [10]\n            end\n        end\n    end\nend\n\nwhen [timer v] > (タイマー)\nhide\n\nwhen I start as a clone\nforever\n    if <not <touching (雪玉 v)?>> then\n        wait (pick random (1) to (2)) seconds\n        play sound (pick random (1) to (3)) until done\n    end\nend\n\n@サムネ\n\nwhen [timer v] > (タイマー)\nif <(ゲームオーバー？) = [0]> then\n    switch costume to (コスチューム1 v)\n    go to [front v] layer\n    show\n    change [ghost v] effect by (100)\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\nelse\n    switch costume to (コスチューム2 v)\n    go to [front v] layer\n    show\n    change [ghost v] effect by (100)\n    repeat (50)\n        change [ghost v] effect by (-2)\n    end\nend\n\nwhen flag clicked\nset [ゲームオーバー？ v] to [0]\nhide\n\nwhen I receive [ゲームオーバー v]\nstop [all v]\n\n@マグマ\n\nwhen flag clicked\ngo to [back v] layer\npoint in direction (90)\nhide\nforever\n    if <([costume # v] of [地形 v]) = [1]> then\n        point in direction (90)\n        go to x: (0) y: (0)\n        hide\n    end\n    if <([costume # v] of [地形 v]) = [6]> then\n        point in direction (90)\n        go to x: (0) y: (-10)\n        switch costume to (lava v)\n        show\n    end\n    if <([costume # v] of [地形 v]) = [7]> then\n        point in direction (90)\n        go to x: (0) y: (-5)\n        switch costume to (lava2 v)\n        show\n    end\n    if <([costume # v] of [地形 v]) = []> then\n        turn left (5.5) degrees\n        go to x: (0) y: (20)\n        switch costume to (コスチューム4 v)\n        show\n    end\n    if <([costume # v] of [地形 v]) = [7]> then\n        point in direction (90)\n        switch costume to (コスチューム5 v)\n        show\n    end\n    if <([costume # v] of [地形 v]) = [8]> then\n        point in direction (90)\n        hide\n    end\nend\n\nwhen [timer v] > (タイマー)\nhide\n\nwhen I receive [platformerスタート v]\nforever\n    if <touching (キャラ v)?> then\n        broadcast (d v)\n        wait (0.5) seconds\n    else\n        set [m v] to [0]\n    end\nend\n\n@弓\n\nwhen flag clicked\nhide\n\nwhen I receive [s召喚 v]\ngo to [back v] layer\nset rotation style [all around v]\nset size to (100) %\npoint in direction (-135)\nshow\nswitch costume to (弓 v)\n\nwhen flag clicked\nforever\n    if <([direction v] of [スケルトン v]) = [-90]> then\n        go to (スケルトン v)\n        point in direction (-135)\n        change x by (15)\n    else\n        go to (スケルトン v)\n        point in direction (45)\n        change x by (-15)\n    end\nend\n\nwhen I receive [弓 v]\nwait (0.1) seconds\nswitch costume to (弓2 v)\nwait (0.05) seconds\nswitch costume to (弓3 v)\nwait (0.1) seconds\ncreate clone of (_myself_ v)\nswitch costume to (弓 v)\n\nwhen I start as a clone\nswitch costume to (矢 v)\ngo to [front v] layer\nset [ghost v] effect to (0)\nshow\nstart sound [弓矢射撃音 v]\nif <([direction v] of [スケルトン v]) = [-90]> then\n    repeat until <<touching (キャラ v)?> or <touching (_edge_ v)?>>\n        change x by (20)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\nelse\n    repeat until <<touching (キャラ v)?> or <touching (_edge_ v)?>>\n        change x by (-20)\n    end\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\nend\ndelete this clone\n\nwhen I receive [スケルトンko v]\nhide\nstop [other scripts in sprite v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (キャラ v)?> then\n        broadcast (ダメージ2 v)\n    end\n    wait until <not <touching (キャラ v)?>>\nend\n\n@スケルトン\n\nwhen I receive [platformerスタート v]\nwait until <([costume # v] of [地形 v]) = [9]>\nwait (2) seconds\ngo to x: (160) y: (0)\nset [スケルトン v] to [0]\nbroadcast (S召喚 v)\n\n\nif <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>> then\n    change [x v] by (ハヤサ)\n    switch costume to (player v)\n    point in direction (90)\nend\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>> then\n    change [x v] by ((0) - (ハヤサ))\n    point in direction (-90)\nend\n\nchange y by (-1)\n\nwhen flag clicked\nswitch costume to (スケルトン v)\nhide\n\ndefine フットブ2\nif <(x position) < ([x position v] of [キャラ v])> then\n    set [x v] to [10]\n    set [y v] to [15]\nelse\n    set [x v] to [-10]\n    set [y v] to [15]\nend\n\ndefine ダメージ\nchange [スケルトンhp v] by (-1)\nif <(スケルトンHP) < [1]> then\n    switch costume to (スケルトン2 v)\n    wait until <not <<touching (鉄の剣 v)?> and <(Kou) = [1]>>>\n    wait (0.1) seconds\n    start sound [skeletondeath v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    broadcast (スケルトンKO v)\nelse\n    start sound (pick random (4) to (5))\n    switch costume to (スケルトン2 v)\n    wait until <not <<touching (鉄の剣 v)?> and <(Kou) = [1]>>>\n    wait (0.1) seconds\n    switch costume to (スケルトン v)\nend\n\ndefine フットブ\nif <([x position v] of [キャラ v]) < (x position)> then\n    set [x\[s\] v] to [10]\n    set [y\[s\] v] to [10]\nelse\n    set [x\[s\] v] to [-10]\n    set [y\[s\] v] to [10]\nend\n\nwhen [timer v] > (タイマー)\nhide\n\nwhen I start as a clone\n\nwhen I receive [s召喚 v]\nset [スケルトンhp v] to [3]\nforever\n    if <<touching (鉄の剣 v)?> and <(Kou) = [1]>> then\n        フットブ\n        ダメージ\n    end\nend\n\nwhen I receive [s召喚 v]\nforever\n    if <touching (キャラ v)?> then\n        broadcast (ダメージ v)\n    end\n    wait until <not <touching (キャラ v)?>>\nend\n\nwhen I receive [s召喚 v]\nforever\n    if <not <touching (雪玉 v)?>> then\n        wait (pick random (0.5) to (1)) seconds\n        play sound (pick random (1) to (3)) until done\n    end\nend\n\nwhen I receive [s召喚 v]\nset volume to (100) %\ngo to [back v] layer\nset [動ける? v] to [1]\nswitch costume to (スケルトン v)\nshow\nset rotation style [left-right v]\npoint in direction (90)\nset [x\[s\] v] to [0]\nset [y\[s\] v] to [0]\nforever\n    if <(動ける?) = [1]> then\n        if <([x position v] of [キャラ v]) < (x position)> then\n            change [x\[s\] v] by (-0.2)\n            point in direction (90)\n        else\n            change [x\[s\] v] by (0.2)\n            point in direction (-90)\n        end\n        change x by (X\[s\])\n        set [x\[s\] v] to ((X\[s\]) * (0.9))\n        change y by (-5)\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 y by (-5)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n        change [y\[s\] v] by (-1)\n        change y by (Y\[s\])\n    end\n    if <touching (地形 v)?> then\n        change y by ((Y\[s\]) * (-1))\n        set [y\[s\] v] to [0]\n    end\nend\n\nforever\n\nwhen I receive [s召喚 v]\nforever\n    wait (pick random (1) to (2)) seconds\n    broadcast (弓 v)\nend\n\nwhen I receive [スケルトンko v]\nset [スケルトン v] to [1]\nforever\n    stop [other scripts in sprite v]\nend\n\nwhen I receive [ダメージ2 v]\nフットブ2\n\n@Weather\n\nwhen I receive [layer sort v]\nif <(cloud_num) = [-1]> then\n    Z-index Sprite by [999]\nend\nif <(cloud_num) > [0]> then\n    Z-index Sprite by [998]\nend\n\ndefine Z-index Sprite by (z-index)\nset [i v] to [1]\nrepeat until <not <(z-index) < (item (i) of [z-index v])>>\n    change [i v] by (1)\nend\ninsert (z-index) at (i) of [z-index v] \ngo [forward v] ((i) - (1)) layers\n\nwhen I receive [platformerスタート v]\nhide\nset [cloud_num v] to [-1]\ncreate clone of (_myself_ v)\nset [cloud_num v] to [1]\nset [cloud x v] to [-100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nset [cloud x v] to [100]\ncreate clone of (_myself_ v)\nchange [cloud_num v] by (1)\nforever\n    if <(cloud_num) < [10]> then\n        if <(pick random (1) to (5)) = [1]> then\n            set [cloud x v] to [300]\n            change [cloud_num v] by (1)\n            create clone of (_myself_ v)\n        end\n        wait (3) seconds\n    end\nend\n\nwhen I start as a clone\ngo to [back v] layer\nif <(cloud_num) = [-1]> then\n    show\n    forever\n        if <(#Daylight cycle) = [Day]> then\n            switch costume to (sun v)\n            go to x: ((140) + ((4) * ([cos v] of (#Frame) ))) y: ((100) + ((4) * ([sin v] of (#Frame) )))\n        end\n        if <(#Daylight cycle) = [Sunset]> then\n            switch costume to (sunset v)\n            go to x: ((140) + ((4) * ([cos v] of (#Frame) ))) y: ((100) + ((4) * ([sin v] of (#Frame) )))\n        end\n        if <(#Daylight cycle) = [Night]> then\n            switch costume to (moon v)\n            go to x: ((0) + ((220) * ([cos v] of (((#Frame) / (30)) + (180)) ))) y: ((-250) + ((380) * ([sin v] of ((#Frame) / (30)) )))\n        end\n    end\nend\nif <(cloud_num) > [0]> then\n    set [cloud y v] to (pick random (100) to (170))\n    if <(#Biome) = [2]> then\n        go [forward v] (5) layers\n        set [cloud y v] to (pick random (-80) to (0))\n        set [ghost v] effect to (50)\n    end\n    switch costume to ((1) + (pick random (1) to (11)))\n    set y to (cloud y)\n    repeat until <(cloud x) < [-400]>\n        show\n        set x to (cloud x)\n        if <(#Daylight cycle) = [Night]> then\n            set [ghost v] effect to (90)\n        else\n            set [ghost v] effect to (20)\n        end\n        if <(#Gamemode) = (item (1) of [#gamemode v])> then\n    end\n    change [cloud_num v] by (-1)\n    delete this clone\nend\n\nwhen I receive [次! v]\ngo to [back v] layer\n\nwhen I receive [platformerスタート v]\nset [#daylight cycle v] to [Day]\nwait (1) seconds\n\n@鉄の剣\n\nwhen I receive [platformerスタート v]\nshow\nforever\n    if <([direction v] of [キャラ v]) = [90]> then\n        switch costume to (_sword8 v)\n        go to x: ((Xxx) + (32)) y: ((Yyy) + (2))\n    else\n        if <([direction v] of [キャラ v]) = [-90]> then\n            switch costume to (_sword2 v)\n            go to x: ((Xxx) + (-32)) y: ((Yyy) + (2))\n        end\n    end\nend\n\nwhen I receive [platformerスタート v]\nset size to (85) %\npoint in direction (90)\nforever\n    if <(costume [number v]) = [1]> then\n        if <<key (space v) pressed?> or <key (z v) pressed?>> then\n            repeat (5)\n                turn right (10) degrees\n                set [kou v] to [1]\n            end\n            repeat (5)\n                turn left (10) degrees\n            end\n            set [kou v] to [0]\n        end\n    else\n        if <(costume [number v]) = [2]> then\n            if <<key (space v) pressed?> or <key (z v) pressed?>> then\n                repeat (5)\n                    turn left (10) degrees\n                    set [kou v] to [1]\n                end\n                repeat (5)\n                    turn right (10) degrees\n                end\n                set [kou v] to [0]\n            end\n        end\n    end\nend\n\nwhen I receive [次! v]\nhide\nwait (1) seconds\nshow\n\nwhen [timer v] > (タイマー)\nhide\n\n