Platformer ~暗黒~

Instructions: 日本語は下です⬇　　　　※音量注意/Volumewarning\n　　　　　　　　　　　　　　\n~Method of operation~　　\n→ key / d key ... Go to the righ　　\n← key / a key ... Go left　　　　　　　　\n↑ key / w key ... jump　　　　　\n↓ key / s key ... crouching\n\nthorn…if it hits Return to the stage\nJumping platform ... Jumps high when touched\n\n〜操作方法〜\n　→キー/dキー･･･右へ進む\n    ←キー/aキー･･･左へ進む\n　↑キー/wキー･･･ジャンプ\n　↓キー/sキー･･･しゃがむ\n\n　トゲ･･･当たるとそのステージに戻る\n　バネ･･･触れると、高くジャンプする\n\n#asagiri-reira　#Platformer　#platformer　#Black　#Darkness　#Games　#games

@Stage\n\nwhen flag clicked\nclear graphic effects\nswitch backdrop to (start‼ v)\nwait (0.4) seconds\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nforever\n    set volume to (20) %\n    play sound [bgm_maoudamashii_healing03 v] until done\nend\n\n@ライト\n\nwhen flag clicked\nforever\n    show\n    go to (主人公 v)\n    go to [front v] layer\nend\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [gamesclear‼ v]\nforever\n    hide\nend\n\n@主人公\n\nwhen flag clicked\ngo to [front v] layer\nset size to (100) %\npoint in direction (90)\ngo to x: (-196) y: (-89)\nshow\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        point in direction (90)\n        change [x v] by (0.9)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [x v] by (-0.9)\n        point in direction (-90)\n    end\n    set [x v] to ((x) * (0.9))\n    change x by (x)\n    if <touching (地面 v)?> then\n        change y by (1)\n        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) - (x))\n                                change y by (-5)\n                                if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                                    if <[0] < (x)> then\n                                        set [x v] to [-7]\n                                    else\n                                        set [x v] to [7]\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    end\n    change [y v] by (-1)\n    change y by (y)\n    if <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 <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> and <touching color (#000000)?>> then\n        change [y v] by (15)\n        start sound [ニュッ2 v]\n    else\n        if <touching (バネ v)?> then\n            start sound [可愛いジャンプ v]\n            set [y v] to [20]\n        end\n    end\n    change y by (1)\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <<(y position) > (mouse y)> and <touching color (#000000)?>>>> then\n        if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> or <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>>> 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 <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> or <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n            switch costume to (動く時 v)\n        else\n            switch costume to (普通 v)\n        end\n    end\n    if <(x position) > [250]> then\n        broadcast (Next Stage v)\n        point in direction (90)\n        go to x: (-196) y: (-89)\n    end\n    if <<touching (障害物 v)?> or <[-182] > (y position)>> then\n        point in direction (90)\n        go to x: (-196) y: (-89)\n    end\nend\n\nwhen I receive [gamesclear‼ v]\nhide\n\n@地面\n\nwhen I receive [next stage v]\nnext costume\n\nwhen flag clicked\nswitch costume to (1 v)\nshow\nforever\n    go to [back v] layer\nend\n\nwhen flag clicked\nforever\n    if <(costume [name v]) = [GamesClear‼]> then\n        broadcast (GamesClear‼ v)\n    end\nend\n\n@障害物\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\nforever\n    go to [back v] layer\nend\n\nwhen I receive [next stage v]\nnext costume\n\nwhen I receive [gamesclear‼ v]\nhide\n\n@バネ\n\nwhen flag clicked\nforever\n    set size to (40) %\n    go to x: (-55) y: (-94)\n    if <touching (主人公 v)?> then\n        repeat (6)\n            next costume\n            wait (0.002) seconds\n        end\n    else\n        switch costume to (1 v)\n    end\n    if <([costume name v] of [地面 v]) = [7]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [gamesclear‼ v]\nhide\n\n@スプライト1\n\nwhen flag clicked\nhide\n\nwhen I receive [gamesclear‼ v]\nshow\n\n@Sprite1\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\n\n