ESCAPE-PLATFORMER

Instructions: 新作→https://scratch.mit.edu/projects/759957938/\n日本語は下です\nみんなハートがいくつ残ったか教えてー\n作者は最高6\n\nEnglish:\nYou can operate with the arrow keys.\nDon't get hit by lasers or police (guards).\nThere are 7 lives, and if you touch the ↑ one, it will decrease by one,\nWhen it reaches 0, it starts over. You have 7 lives.\nWhen the player's eyes are red, they gain 3 lives.\nGood luck with your jailbreak!\n\n日本語:\n矢印キーで操作ができます。\nレーザーや警察(看守)に当たらないでください。\nライフは7あって，↑のものに触れると一減ってゆき、\n0になるとやり直しです。ライフは7あります。\nプレイヤーの目が赤い時は，ライフが3増えます。\n頑張って脱獄して下さい！

@Stage\n\nwhen flag clicked\n\nwhen flag clicked\nforever\n    play sound [Goodbye2 v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (背景1 v)\nforever\n    if <(背景) = [11]> then\n        switch backdrop to (背景2 v)\n        stop [this script v]\n    end\nend\n\n@player\n\nwhen flag clicked\nforever\n    wait (pick random (10) to (45)) seconds\n    switch costume to (コスチューム1 v)\n    wait (15) seconds\n    switch costume to (player v)\nend\n\nwhen I receive [suta-to  v]\nset volume to (100) %\n\nwhen flag clicked\nhide\nswitch costume to (player v)\nset size to (80) %\ngo to x: (-220) y: (50)\nset [ghost v] effect to (100)\ngo to [back v] layer\n\nwhen I start as a clone\nswitch costume to (player2 v)\nrepeat (9)\n    change [brightness v] effect by (3)\n    change [ghost v] effect by (7)\n    change size by (-5.2)\nend\ndelete this clone\n\nwhen flag clicked\nshow\nwait (2.4) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nset rotation style [left-right v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    if <<<touching (レーザー v)?> or <(y position) < [-183]>> or <touching (ポリ公ここまでおーいで v)?>> then\n        change [ライフ v] by (-1)\n        create clone of (やられた主人公 v)\n        if <touching (レーザー v)?> then\n            start sound [トラップ反応 v]\n        end\n        if <touching (ポリ公ここまでおーいで v)?> then\n            start sound [うわあああああああ v]\n        end\n        if <(y position) < [-183]> then\n            start sound [落とす v]\n        end\n        repeat (10)\n            change [pixelate v] effect by (10)\n        end\n        clear graphic effects\n        go to x: (-210) y: (100)\n    end\n    if <<key (left arrow v) pressed?> or <<(x position) > (mouse x)> and <mouse down?>>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (-1)\n        point in direction (-90)\n    end\n    if <<<(mouse x) > (x position)> and <mouse down?>> or <key (right arrow v) pressed?>> then\n        create clone of (_myself_ v)\n        change [xのやつ v] by (1)\n        point in direction (90)\n    end\n    set [xのやつ v] to ((xのやつ) * (0.9))\n    change x by (xのやつ)\n    if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n        change y by (1)\n        if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n            change y by (1)\n            if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n                change y by (1)\n                if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n                    change y by (1)\n                    if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n                        change y by (1)\n                        if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n                            change x by ((xのやつ) * (-1))\n                            change y by (-5)\n                            if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n                                start sound [ニュッ v]\n                                if <(xのやつ) > [0]> then\n                                    set [xのやつ v] to [-7]\n                                else\n                                    set [xのやつ v] to [7]\n                                end\n                                set [ｙだー 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 <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n        if <<key (up arrow v) pressed?> or <<(mouse y) > (y position)> and <mouse down?>>> then\n            set [ｙだー v] to [16.3]\n            start sound [ニュッ v]\n        end\n    end\n    change y by (1)\n    change [ｙだー v] by (-1)\n    change y by (ｙだー)\n    if <<touching (地面 v)?> or <touching (レーザー麓 v)?>> then\n        change y by ((ｙだー) * (-1))\n        set [ｙだー v] to [0]\n    end\n    if <(x position) > [230]> then\n        broadcast (next v)\n        start sound [Rip v]\n        go to x: (-216) y: (50)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        start sound [神武器キターーー！ v]\n        repeat (3)\n            change [ライフ v] by (1)\n        end\n        wait until <not <(costume [number v]) = [3]>>\n    end\nend\n\n@地面\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nshow\nswitch costume to (コスチューム1 v)\ngo to x: (0) y: (0)\nforever\n    set [背景 v] to (costume [number v])\nend\n\n@レーザー麓\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nset size to (65) %\nshow\n\nwhen I receive [next v]\nnext costume\n\n@レーザー\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\nshow\nforever\n    set size to (75) %\nend\n\nwhen I receive [next v]\nnext costume\n\nwhen flag clicked\nset [brightness v] effect to (10)\nforever\n    change [color v] effect by (0.5)\nend\n\n@ポリ公ここまでおーいで\n\nwhen flag clicked\nclear graphic effects\nhide\nforever\n    switch costume to (コスチューム1 v)\n    if <<(背景) = [5]> or <(背景) = [8]>> then\n        show\n        set rotation style [left-right v]\n        point in direction (-90)\n        glide (1.5) secs to x: (-148) y: (-32)\n        wait (0.3) seconds\n        point in direction (90)\n        glide (1.9) secs to x: (148) y: (-32)\n    end\n    if <(背景) = [10]> then\n        show\n        go to x: (120) y: (-40)\n        set size to (80) %\n    end\nend\n\nwhen flag clicked\nhide\nclear graphic effects\nforever\n    if <not <(背景) = [10]>> then\n        set size to (100) %\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <<(背景) = [10]> or <<(背景) = [5]> or <(背景) = [8]>>>> then\n        hide\n    end\nend\n\n@Ha-to\n\nwhen flag clicked\nshow\nshow variable [ライフ v]\nset [ライフ v] to [7]\nforever\n    switch costume to (コスチューム1 v)\n    go to x: (0) y: (0)\n    if <(ライフ) = [0]> then\n        broadcast (あ，終わったねw v)\n        stop [all v]\n    end\n    if <(背景) = [11]> then\n        hide\n        hide variable [ライフ v]\n    end\nend\n\n@サムネ脱獄失敗w乙泥\n\nwhen flag clicked\nhide\nforever\n    go to [front v] layer\n    go to x: (0) y: (0)\nend\n\nwhen I receive [あ，終わったねw v]\nshow\nstart sound [F1 v]\nhide variable [ライフ v]\n\n@サムネ詐欺\n\nwhen flag clicked\nset [ghost v] effect to (100)\nshow\ngo to [front v] layer\n\n