TIME ATTACK PLATFORMER v1.5
@Stage\n\n@プレーヤー\n\nwhen flag clicked\nhide variable [タイム v]\nhide\nswitch backdrop to (サムネイル v)\nwait (1) seconds\nswitch backdrop to (背景 v)\nbroadcast (スタート v)\n\ndefine 初期位置\nset size to (120) %\ngo to x: (-216) y: (-8)\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\n\nwhen I receive [スタート v]\nshow\nset [ステージ v] to [1]\n初期位置\nforever\n    if <<key (d v) pressed?> or <key (right arrow v) pressed?>> then\n        change [x v] by (1.75)\n        point in direction (90)\n    end\n    if <<key (a v) pressed?> or <key (left arrow v) pressed?>> then\n        change [x v] by (-1.75)\n        point in direction (-90)\n    end\n    set [x v] to ((X) * (0.8))\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 (w v) pressed?> or <key (up arrow v) pressed?>> then\n                                if <(X) > [0]> then\n                                    set [x v] to [-15]\n                                else\n                                    set [x v] to [15]\n                                end\n                                set [y v] to [14.5]\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 v] by (-1)\n    change y by (Y)\n    if <touching (ステージ v)?> then\n        change y by ((Y) * (-1))\n        set [y v] to [0]\n    end\n    change y by (-1)\n    if <<touching (ステージ v)?> and <<key (w v) pressed?> or <key (up arrow v) pressed?>>> then\n        change [y v] by (16)\n    end\n    change y by (1)\n    if <<touching (とげ・マグマ v)?> or <(y position) < [-175]>> then\n        wait (0.05) seconds\n        初期位置\n    end\n    if <not <(ステージ) = [10]>> then\n        if <(x position) > [200]> then\n            hide\n            broadcast (NEXT LEVEL v)\n            change [ステージ v] by (1)\n            wait (0.05) seconds\n            初期位置\n            初期位置\n            初期位置\n            初期位置\n        end\n    end\n    if <not <<<<(ステージ) = [4]> or <(ステージ) = [6]>> or <(ステージ) = [8]>> or <(ステージ) = [9]>>> then\n        if <(y position) < [-72]> then\n            初期位置\n        end\n    end\n    if <(ステージ) = [4]> then\n        if <<(x position) < [-104]> and <(y position) < [-72]>> then\n            初期位置\n        end\n    end\n    if <(ステージ) = [6]> then\n        if <<(x position) < [-118]> and <(y position) < [-72]>> then\n            初期位置\n        end\n    end\nend\n\nwhen I receive [次 v]\nshow\n\nwhen I receive [スタート v]\nshow variable [タイム v]\nset [タイム v] to [0]\nrepeat until <(ステージ) = [10]>\n    wait (1) seconds\n    change [タイム v] by (1)\n    if <(ステージ) = [10]> then\n        broadcast (ゴール v)\n    end\nend\n\nwhen I receive [ゴール v]\nforever\n    change [タイム v] by (0)\nend\n\n@ステージ\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nshow\nswitch costume to (ステージ1 v)\ngo to x: (0) y: (0)\nset size to (100) %\nforever\n    switch costume to (ステージ)\nend\n\n@とげ・マグマ\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nshow\ngo to x: (0) y: (0)\nshow\ngo to [back v] layer\nforever\n    switch costume to (ステージ)\nend\n\n@NEXT LEVEL\n\nwhen I receive [next level v]\nshow\ngo to x: (0) y: (0)\nwait (1) seconds\nforever\n    change x by (-10)\n    if <(x position) = [-465]> then\n        hide\n        broadcast (次 v)\n    end\nend\n\nwhen flag clicked\nhide\n\n@ターボ対策\n\nwhen flag clicked\nforever\n    if <(ターボ対策) > [50]> then\n        broadcast (ターボ検知 v)\n    end\nend\n\nwhen I receive [ターボ検知 v]\nstop [all v]\n\nwhen flag clicked\nforever\n    wait (0.01) seconds\n    set [ターボ対策 v] to [0]\nend\n\nwhen flag clicked\nset [ターボ対策 v] to [0]\nforever\n    change [ターボ対策 v] by (10)\nend\n\n
▼新作　new work\n   https://scratch.mit.edu/projects/752652993\n▼TAKE0221のスタジオ　TAKE0221's studio\n   https://scratch.mit.edu/studios/32253629/\n▼PLATFORMERのスタジオ　PLATFORMER studio\n   https://scratch.mit.edu/studios/32317562/\n--------------------------------------------------------------------------［日本語］\n◯操作方法　\n　WSDA・上下左右キー操作\n［English］\n◯ How to operate\n　WSDA/up/down/left/right key operation　\n--------------------------------------------------------------------------\n　ぜひタイムをコメントに書いて下さい。\n 　作者のタイム→55秒\n    Please write your time in the comments.\n    Author's time → 55 seconds\n　フォローと♡・☆もお願いします！\n　Please follow me and ♡・☆!