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\nI studied many people's platformers and made this ministry.\nI'm pretty tired ... (； ´Д ｀)\nI hope you enjoy it ♬\n\n〜操作方法〜\n　→キー/dキー･･･右へ進む\n    ←キー/aキー･･･左へ進む\n　↑キー/wキー･･･ジャンプ\n　↓キー/sキー･･･しゃがむ\n\n　トゲ･･･当たるとそのステージに戻る\n　ジャンプ台･･･触れると、高くジャンプする\n\nいろいろな方のPlatformerを研究して作りました‼\n結構疲れましたね･･･(；´Д｀)\n楽しんで下さると、幸いです♬\n\n#Games　#games　#asagiri-reira　#Platformer　#sakura

@Stage\n\nwhen flag clicked\nforever\n    if <([costume name v] of [地面 v]) = [Games Clear‼]> then\n        broadcast (Games Clear‼ v)\n        switch backdrop to (gamesclear‼ v)\n    end\nend\n\nwhen flag clicked\nswitch backdrop to (背景 v)\n\nwhen flag clicked\nforever\n    play sound [春への憧れ v] until done\nend\n\n@貴方\n\nwhen flag clicked\ngo to x: (-200) y: (-50)\nset rotation style [left-right v]\ngo to [front v] layer\nset size to (30) %\npoint in direction (90)\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 color (#ffd0ed)?> then\n        change y by (1)\n        if <touching color (#ffd0ed)?> then\n            change y by (1)\n            if <touching color (#ffd0ed)?> then\n                change y by (1)\n                if <touching color (#ffd0ed)?> then\n                    change y by (1)\n                    if <touching color (#ffd0ed)?> then\n                        change y by (1)\n                        if <touching color (#ffd0ed)?> then\n                            change y by (1)\n                            if <touching color (#ffd0ed)?> 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 [-8]\n                                    else\n                                        set [x v] to [8]\n                                    end\n                                    set [y v] to [11]\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 color (#ffd0ed)?> 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 (#ffd0ed)?>> then\n        set [y v] to [15]\n        if <touching color (#82d3ff)?> then\n            set [y v] to [0]\n        end\n    else\n        if <touching color (#82d3ff)?> then\n            change [y v] by (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 (#ffd0ed)?>>>> then\n        switch costume to (しゃがみ v)\n    else\n        switch costume to (フツ〜 v)\n    end\n    if <(x position) > [252]> then\n        broadcast (Next Stage v)\n        hide\n        go to x: (-200) y: (-53)\n        point in direction (90)\n    end\n    if <<touching color (#ff0000)?> or <[-190] > (y position)>> then\n        go to x: (-200) y: (-53)\n        point in direction (90)\n    end\nend\n\nwhen I receive [進んでい〜よ v]\nshow\ngo to x: (-179) y: (-53)\npoint in direction (90)\n\nwhen I receive [games clear‼ v]\nhide\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nrepeat (10)\n    change [ghost v] effect by (5)\n    change size by (-2.5)\nend\ndelete this clone\n\nwhen I start as a clone\nif <(x position) > [252]> then\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    create clone of (_myself_ v)\nend\n\n@桜\n\nwhen I start as a clone\npoint in direction (-160)\nset size to (pick random (70) to (120)) %\nshow\nset [へっ v] to (pick random (0) to (14))\nif <(へっ) = [0]> then\n    go to x: (240) y: (pick random (-130) to (180))\nelse\n    go to x: (pick random (-200) to (240)) y: (180)\nend\nrepeat until <<(x position) < [-235]> or <(y position) < [-175]>>\n    move (10) steps\nend\ndelete this clone\n\nwhen flag clicked\nset size to (78) %\ngo to [front v] layer\nhide\nforever\n    create clone of (_myself_ v)\n    wait (0.05) seconds\nend\n\n@地面\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\nset drag mode [not draggable v]\ngo to x: (21) y: (21)\n\nwhen I receive [next stage v]\nwait (1) seconds\nnext costume\n\nwhen I receive [games clear‼ v]\nhide\n\n@たいよ〜\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    glide (1.5) secs to x: (0) y: (0)\n    glide (1.5) secs to x: (35) y: (31)\nend\n\n@Next Stage\n\nwhen I receive [next stage v]\nshow\ngo to x: (350) y: (5)\nglide (0.8) secs to x: (24) y: (5)\nwait (0.5) seconds\nglide (0.8) secs to x: (-449) y: (5)\nhide\nbroadcast (進んでい〜よ v)\n\nwhen flag clicked\nhide\n\n@ジャンプ台\n\nwhen flag clicked\ngo to x: (-10) y: (-87)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [進んでい〜よ v]\nforever\n    if <<([costume name v] of [地面 v]) = [6]> or <([costume name v] of [地面 v]) = [8]>> then\n        show\n    end\nend\n\nwhen I receive [next stage v]\nforever\n    if <<([costume name v] of [地面 v]) = [6]> or <([costume name v] of [地面 v]) = [8]>> then\n        forever\n            hide\n        end\n    end\nend\n\n