Simple PLATFORMER  #game #platformer　

Instructions: 【日本語は下】\nVolume 20% recommended.\n If you find it interesting, please give me stars and hearts!\nOperate with arrow keys or mouse.\nThere are 11 stages in total.\nPlease also take a look.\nSimple PLATFORMER2 #game #platformer　\n→https://scratch.mit.edu/projects/912320012\n\n音量20％推奨。\n面白かったら星とハートお願いします！\n矢印キーまたはマウスで操作です。\n全11ステージです。\nこっちも是非見てください。\nSimple PLATFORMER2 #game #platformer　\n→https://scratch.mit.edu/projects/912320012\n\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (背景 v)\nforever\n    play sound [13002 v] until done\nend\n\n@プラットフォーマー\n\ndefine やられた\nswitch costume to (1 v)\nset rotation style [all around v]\nset [player death v] to [1]\nstart sound [sword-clash1 v]\nset [y v v] to [15]\nrepeat until <(y position) < [-178]>\n    go to [front v] layer\n    turn right (15) degrees\n    change y by (Y v)\n    change [y v v] by (-1)\nend\nset [player death v] to [0]\ngo to [back v] layer\nset rotation style [left-right v]\npoint in direction (90)\ngo to x: (-230) y: (-70)\ngo [forward v] (3) layers\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I start as a clone\nclear graphic effects\nset size to (大きさ) %\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-10)\nend\ndelete this clone\n\nwhen flag clicked\nset [大きさ v] to [100]\nset [color v] effect to (0)\nhide variable [☁ world record v]\nhide variable [☁ your time v]\n\nwhen flag clicked\ngo [forward v] (3) layers\ngo to x: (-199) y: (-60)\nset rotation style [left-right v]\npoint in direction (90)\nset size to (100) %\nset [x v] to [0]\nset [y v] to [0]\nshow\n\nwhen flag clicked\nset [状態 v] to [0]\nhide variable [☁ world record v]\nhide variable [☁ your time v]\nreset timer\nswitch costume to (1 v)\nswitch backdrop to (2 v)\nshow\nforever\n    if <(状態) = [0]> then\n        if <touching (障害物 v)?> then\n            やられた\n        end\n    end\n    if <touching (アウト v)?> then\n        やられた\n        set [x v] to [0]\n        set [y v] to [0]\n    else\n        if <[-166] > (y position)> then\n            go to x: (-230) y: (-60)\n            set [x v] to [0]\n            set [y v] to [0]\n        end\n    end\n    if <<<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> or <key (d v) pressed?>> then\n        change [x v] by (1)\n        point in direction (90)\n        create clone of (_myself_ v)\n    end\n    if <<<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> or <key (a v) pressed?>> then\n        change [x v] by (-1)\n        point in direction (-90)\n        create clone of (_myself_ v)\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 y) > [50]> and <mouse down?>>> or <key (w v) pressed?>> 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 [15]\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?> and <touching (地面 v)?>> or <<mouse down?> and <<touching (地面 v)?> and <(mouse y) > [50]>>>> or <<key (w v) pressed?> and <touching (地面 v)?>>> then\n        start sound [suck1 v]\n        set [y v] to [15]\n        create clone of (_myself_ v)\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 ((0) - (y))\n        set [y v] to [0]\n        if <<<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> or <key (s v) pressed?>> then\n            broadcast (Crouch v)\n            switch costume to (4 v)\n            if <[-166] > (y position)> then\n                go to x: (-230) y: (0)\n            end\n        else\n            switch costume to (3 v)\n        end\n    end\n    if <(Stage) = [100]> then\nend\n\nwhen I receive [small v]\nset [大きさ v] to [60]\nset size to (50) %\n\nwhen I receive [ゴール v]\nset [大きさ v] to [100]\nset size to (100) %\n\n@地面\n\nwhen flag clicked\nshow\nset [stage v] to [1]\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\ngo to [back v] layer\nforever\n    switch costume to (Stage)\nend\n\nwhen I receive [next v]\nwait (0.5) seconds\nchange [stage v] by (1)\nif <(Stage) = [12]> then\n    broadcast (ゴール v)\nend\nif <(Stage) = [11]> then\n    broadcast (small v)\nend\n\n@障害物\n\nwhen flag clicked\nshow\nswitch costume to (1 v)\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\ngo to [back v] layer\nforever\n    switch costume to (Stage)\nend\n\n@next\n\nwhen I receive [next v]\ngo to [front v] layer\nrepeat (2)\n    change [クローン番号 v] by (1)\n    create clone of (_myself_ v)\nend\nset [クローン番号 v] to [0]\n\nwhen flag clicked\nset [クローン番号 v] to [0]\nhide\n\nwhen I start as a clone\nshow\nif <(クローン番号) = [1]> then\n    switch costume to (コスチューム1 v)\n    go to x: (-172) y: (0)\n    glide (0.5) secs to x: (0) y: (0)\n    wait (0.1) seconds\n    delete this clone\nend\nif <(クローン番号) = [2]> then\n    switch costume to (hat-b v)\n    go to x: (452) y: (4)\n    glide (0.5) secs to x: (0) y: (0)\n    switch costume to (コスチューム2 v)\n    glide (0.8) secs to x: (0) y: (345)\n    delete this clone\nend\n\n@広告\n\nwhen flag clicked\ngo to [front v] layer\nhide\nforever\n    go to [front v] layer\n    next costume\n    set x to (-200)\n    wait (1) seconds\n    show\n    start sound [ポップ v]\n    repeat (100)\n        change x by (((0) - (x position)) / (10))\n    end\n    repeat (20)\n        change x by (((-200) - (x position)) / (10))\n    end\n    hide\n    wait (4) seconds\nend\n\nwhen flag clicked\nhide\n\n@サムネ\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\nforever\n    go to [front v] layer\nend\n\n@タイマー\n\nwhen flag clicked\nset [time v] to [0]\nhide\nshow variable [☁ 世界記録 v]\nshow variable [time v]\nwait until <<<key (a v) pressed?> or <<key (d v) pressed?> or <<key (s v) pressed?> or <key (w v) pressed?>>>> or <<<key (right arrow v) pressed?> or <<(mouse x) > [1]> and <mouse down?>>> or <<<key (left arrow v) pressed?> or <<(mouse x) < [-1]> and <mouse down?>>> or <<<key (up arrow v) pressed?> or <<(mouse y) > [50]> and <mouse down?>>> or <<<key (down arrow v) pressed?> or <<[-50] > (mouse y)> and <mouse down?>>> or <<<key (up arrow v) pressed?> and <touching (地面 v)?>> or <<mouse down?> and <<touching (地面 v)?> and <(mouse y) > [50]>>>>>>>>>\nreset timer\nforever\n    set [time v] to (timer)\nend\n\nwhen I receive [ゴール v]\nstop [other scripts in sprite v]\nif <(Time) < (☁ 世界記録)> then\n    set [☁ 世界記録 v] to (Time)\n    wait (1) seconds\n    go to [front v] layer\n    show\nend\n\nset [time v] to (timer)\n\n