❏ Ordinary PLATFORMER ❏

Instructions: 裏ステージ追加しました！\n\nプラットフォーマーです\n初作品なので下手です\n良ければ☆と♡お願いします\n\nーーーーーーーーーー操作方法ーーーーーーーーー\n左右移動︰矢印キー 右もしくは左・AもしくはDキー\nジャンプ︰矢印キー 上・Wキー\n裏ステージの戦闘時はスペースキーで剣をふれます\nーーーーーーーーーーーーーーーーーーーーーーーー\n\nTurboWarp↓\nhttps://turbowarp.org/911472811\n\n何でも入れろ～～～\nhttps://scratch.mit.edu/studios/34119408/

@Stage\n\nwhen flag clicked\nstart sound [fire fly v]\nstart sound [fire fly v]\nstart sound [fire fly v]\nstart sound [fire fly v]\n\nwhen flag clicked\nset [タイマー v] to [0]\nforever\n    wait (1) seconds\n    change [タイマー v] by (1)\nend\n\n@プレイヤー\n\nwhen I start as a clone\nif <(costume [name v]) = [しゃがむ]> then\n    switch costume to (クローン2 v)\nelse\n    switch costume to (クローン v)\nend\nrepeat (15)\n    change [ghost v] effect by (7.5)\n    change size by (-7.5)\nend\ndelete this clone\n\nwhen flag clicked\nforever\n    set [pan left/right v] effect to (((200) * (((x position) + (240)) / (480))) - (100))\nend\n\nwhen flag clicked\ngo to x: (-210) y: (13)\nset size to (100) %\ngo to [front v] layer\nshow\nhide variable [x v]\nhide variable [y v]\nset [x v] to [0]\nset [y v] to [0]\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\nforever\n    if <not <<<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> or <key (s v) pressed?>>> then\n        if <<<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> or <key (d v) pressed?>> then\n            if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                switch costume to (右上 v)\n            else\n                switch costume to (右 v)\n            end\n        else\n            if <<<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> or <key (a v) pressed?>> then\n                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                    switch costume to (左上 v)\n                else\n                    switch costume to (左 v)\n                end\n            else\n                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                    switch costume to (上 v)\n                else\n                    switch costume to (普通 v)\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<key (right arrow v) pressed?> or <<(mouse x) > (x position)> and <mouse down?>>> or <key (d v) pressed?>> then\n        change [x v] by (0.8)\n    end\n    if <<<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> or <key (a v) pressed?>> then\n        change [x v] by (-0.8)\n    end\n    set [x v] to ((X) * (0.92))\n    change x by (X)\n    if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n        change y by (1)\n        if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n            change y by (1)\n            if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n                change y by (1)\n                if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n                    change y by (1)\n                    if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n                        change y by (1)\n                        if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n                            change y by (1)\n                            if <<touching (壁 v)?> or <<touching (床 v)?> or <touching (裏ステージ v)?>>> then\n                                change x by ((0) - (X))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> then\n                                    start sound [壁キック v]\n                                    if <[0] < (X)> then\n                                        set [x v] to [-10]\n                                    else\n                                        set [x v] to [10]\n                                    end\n                                    set [y 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    end\n    change [y v] by (-1)\n    change y by (Y)\n    if <<touching (床 v)?> or <touching (裏ステージ v)?>> then\n        change y by ((0) - (Y))\n        set [y v] to [0]\n    end\n    change y by (-2)\n    if <<<<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> or <key (w v) pressed?>> and <<touching (裏ステージ v)?> or <touching (床 v)?>>> then\n        start sound [ジャンプ音 v]\n        set [y v] to [17]\n    end\n    change y by (1)\n    if <<<[-160] > (y position)> or <touching (障害物 v)?>> or <touching (裏ステージ　障害物 v)?>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [やられる v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-186) y: (13)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    if <<(x position) > [240]> and <not <([costume # v] of [床 v]) = [15]>>> then\n        broadcast (次 v)\n        hide\n        wait (0.9) seconds\n        set [x v] to [0]\n        set [y v] to [0]\n        go to x: (-186) y: (13)\n        show\n    end\n    if <<<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> or <key (s v) pressed?>> then\n        switch costume to (しゃがむ v)\n    end\n    if <([costume # v] of [床 v]) = [1]> then\n        if <<(y position) = [-91]> and <(x position) = [-243]>> then\n            broadcast (裏ステージ開始 v)\n        end\n    end\n    if <touching (敵 v)?> then\n        set [x v] to [0]\n        set [y v] to [0]\n        start sound [やられる v]\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        go to x: (-186) y: (13)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        broadcast (やられる v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <key (space v) pressed?> then\n        broadcast (攻撃 v)\n    end\nend\n\n@床\n\nwhen flag clicked\ngo to [front v] layer\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [次 v]\nwait (0.7) seconds\nnext costume\n\nwhen I receive [裏ステージ開始 v]\nhide\n\n@障害物\n\nwhen flag clicked\nswitch costume to (1 v)\ngo to x: (0) y: (0)\nshow\n\nwhen I receive [次 v]\nwait (0.7) seconds\nnext costume\n\nwhen I receive [裏ステージ開始 v]\nhide\n\n@NEXT\n\nwhen flag clicked\ngo to x: (482) y: (0)\nhide\n\nwhen I receive [次 v]\ngo to [front v] layer\ngo to x: (482) y: (0)\nshow\nstart sound [シーン切り替え v]\nglide (0.2) secs to x: (0) y: (0)\nwait (0.5) seconds\nglide (0.2) secs to x: (-482) y: (0)\nhide\n\nwhen flag clicked\nforever\n    set [pan left/right v] effect to (((200) * (((x position) + (240)) / (480))) - (100))\nend\n\n@普通の太陽\n\nwhen flag clicked\ngo to [back v] layer\ngo to x: (240) y: (155)\nset size to (100) %\nshow\nforever\n    repeat (20)\n        change size by (0.5)\n    end\n    repeat (20)\n        change size by (-0.5)\n    end\nend\n\n@❤️と⭐️を！\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nrepeat (9)\n    wait (3) seconds\n    start sound [ポップ v]\n    show\n    go to x: (128) y: (400)\n    glide (0.8) secs to x: (128) y: (155)\n    wait (2) seconds\n    glide (0.8) secs to x: (128) y: (400)\n    hide\nend\n\n@裏ステージ\n\nwhen I receive [裏ステージ開始 v]\nshow\n\nwhen I receive [次 v]\nwait (0.7) seconds\nnext costume\n\nwhen flag clicked\nhide\ngo to [front v] layer\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\n\n@裏ステージ　障害物\n\nwhen I receive [裏ステージ開始 v]\nshow\n\nwhen flag clicked\nhide\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\n\nwhen I receive [次 v]\nwait (0.7) seconds\nnext costume\n\n@敵\n\nwhen flag clicked\nhide\n\nwhen I receive [裏ステージ開始 v]\nshow\nforever\n    glide (4) secs to (プレイヤー v)\nend\n\nwhen I receive [やられる v]\ngo to x: (218) y: (-88)\n\nwhen I receive [攻撃 v]\nset [体力 v] to [15]\nforever\n    if <touching (剣 v)?> then\n        change [体力 v] by (-1)\n    end\n    if <(体力) = [0]> then\n        broadcast (裏ステージ終わり v)\n        hide\n    end\nend\n\n@壁\n\nwhen flag clicked\nhide\n\nwhen I receive [裏ステージ終わり v]\nhide\n\nwhen I receive [裏ステージ開始 v]\nforever\n    if <([costume # v] of [裏ステージ v]) = [6]> then\n        go to [front v] layer\n        show\n    end\nend\n\n@剣\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go to (プレイヤー v)\nend\n\nwhen flag clicked\npoint in direction (90)\n\nwhen I receive [攻撃 v]\ngo to (プレイヤー v)\nshow\nrepeat (3)\n    turn right (10) degrees\nend\npoint in direction (90)\nhide\n\nwhen I receive [裏ステージ開始 v]\nforever\n    if <([costume # v] of [裏ステージ v]) = [6]> then\n        show\n    end\nend\n\n@サムネ\n\nwhen flag clicked\ngo to x: (-1) y: (-11)\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n