TALL platformer----トールプラットフォーマー

Instructions: ---------------------------操作方法----------------------------\n矢印キー、WASDキー、タップ操作。\n世界記録を目指して頑張ってください！\n\nEnglish\n↓\n---------------------Method of operation---------------------\nArrow keys, WASD keys, tap operation.\nDo your best to aim for the world record!\n(Google Translate)\n\n\n\n新しいスタジオ\nhttps://scratch.mit.edu/studios/32697281\n\nnew studio\nhttps://scratch.mit.edu/studios/32697281

@Stage\n\nwhen flag clicked\nforever\n    play sound [3_03_PM v] until done\nend\n\n@プレイヤー\n\nwhen flag clicked\nswitch costume to (コスチューム5 v)\nclear graphic effects\nset size to (100) %\nset rotation style [left-right v]\npoint in direction (90)\ngo to [front v] layer\nset [x v] to [0]\nset [y v] to [0]\nset [ステージ v] to [1]\nclear graphic effects\ngo to x: (-200) y: (50)\nshow\nforever\n    if <touching (地面3 v)?> then\n        switch costume to (コスチューム1 v)\n    else\n        switch costume to (コスチューム5 v)\n    end\n    if <<<key (a v) pressed?> or <key (left arrow v) pressed?>> or <<(mouse x) < (x position)> and <mouse down?>>> then\n        change [x v] by (-1)\n        point in direction (-90)\n    end\n    if <<<key (d v) pressed?> or <key (right arrow v) pressed?>> or <<(x position) < (mouse x)> and <mouse down?>>> then\n        change [x v] by (1)\n        point in direction (90)\n    end\n    set [x v] to ((x) * (0.92))\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 (w v) pressed?> or <key (up arrow v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>> then\n                                    if <[0] < (x)> 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    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 (w v) pressed?> or <key (up arrow v) pressed?>> or <<[0] < (mouse y)> and <mouse down?>>> and <touching (地面 v)?>> then\n        start sound [Pop v]\n        set [y v] to [15]\n    end\n    change y by (1)\n    if <<[-170] > (y position)> or <touching (地面2 v)?>> then\n        start sound [Crunch v]\n        repeat (15)\n            change [ghost v] effect by (5)\n            change [brightness v] effect by (5)\n        end\n        hide\n        clear graphic effects\n        go to x: (-200) y: (0)\n        set [x v] to [0]\n        set [y v] to [0]\n        show\n    end\n    if <[239] < (x position)> then\n        if <not <(ステージ) = [15]>> then\n            hide\n            clear graphic effects\n            go to x: (-200) y: (0)\n            set [x v] to [0]\n            set [y v] to [0]\n            change [ステージ v] by (1)\n            show\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (ばね v)?> then\n        start sound [jump-anime1 v]\n        set [y v] to [22.5]\n    end\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nhide\n\n@地面\n\nwhen flag clicked\nif <(☁ 世界記録) = [0]> then\n    set [☁ 世界記録 v] to [20]\nend\n\nhide variable [かかった時間 v]\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nhide variable [かかった時間 v]\nhide variable [☁ 世界記録 v]\nwait (1) seconds\nforever\n    if <(costume [name v]) = [15]> then\n        show variable [☁ 世界記録 v]\n        show variable [かかった時間 v]\n        if <(かかった時間) < (☁ 世界記録)> then\n            set [☁ 世界記録 v] to (かかった時間)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <<[14] > (costume [name v])> or <[14] = (costume [number v])>> then\n        change [かかった時間 v] by (1)\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nset [かかった時間 v] to [0]\n\nwhen flag clicked\nchange [☁ プレイした回数 v] by (1)\n\nset [☁ 世界記録 v] to [888]\n\n@地面2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nforever\n    if <<[15] > (costume [name v])> or <[15] = (costume [number v])>> then\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nchange [☁ プレイした回数 v] by (1)\n\nswitch costume to (コスチューム1 v)\n\nswitch costume to (コスチューム1 v)\n\n@地面3\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nforever\n    if <<[15] > (costume [name v])> or <[15] = (costume [number v])>> then\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nchange [☁ プレイした回数 v] by (1)\n\n@地面4\n\nwhen flag clicked\ngo to x: (0) y: (0)\nforever\n    go to [back v] layer\n    switch costume to (ステージ)\nend\n\nwhen flag clicked\nforever\n    if <<[15] > (costume [name v])> or <[15] = (costume [number v])>> then\n        wait (1) seconds\n    end\nend\n\nwhen flag clicked\nchange [☁ プレイした回数 v] by (1)\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n