（スマホ対応）トリック屋敷 2/Platformer

Instructions: ＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿＿\n-----------------日本語の説明は下にあります----------------\n￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣￣\n【English】\n＝≪how to play≫＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\nUse the left key to move to the left and the right key to move to the right.\nJump with the up key. Crouch down. When it hits red, you go back to the beginning of the stage...\nTouch the blue and jump!\n＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\n【日本語】\n＝≪遊び方≫＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝\n左キーで左、右キーで右に動きます。\n上キーでジャンプ。下ーでしゃがみます。赤色に当たると、そのステージの初めに戻ります...\n青に触れると大ジャンプ！\nボタンを押すと...　ツタは上キー長押しで登れます！\n＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

@Stage\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [12707 v] until done\nend\n\n@キャラ\n\nwhen flag clicked\nforever\n    if <<key (down arrow v) pressed?> or <<mouse down?> and <(mouse y) < [-105]>>> then\n        switch costume to (キャラ2 v)\n    else\n        switch costume to (キャラ1 v)\n    end\nend\n\nwhen I receive [大ジャンプ v]\nstart sound [大ジャンプ v]\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\nset [ghost v] effect to (0)\ngo to [front v] layer\nset [ステージ v] to [1]\nswitch costume to (キャラ1 v)\nset size to (50) %\nset rotation style [left-right v]\nshow\ngo to x: (-220) y: (-50)\nset [速度x v] to [0]\nset [速度y v] to [0]\nrepeat until <(ステージ) = [16]>\n    create clone of (_myself_ v)\n    change [速度y v] by (-0.8)\n    if <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < (x position)>>> then\n        point in direction (-90)\n        change [速度x v] by (-1)\n    end\n    if <<key (right arrow v) pressed?> or <<mouse down?> and <(x position) < (mouse x)>>> then\n        point in direction (90)\n        change [速度x v] by (1)\n    end\n    set [速度x v] to ((速度x) * (0.9))\n    change x by (速度x)\n    if <touching color (#652a00)?> then\n        change y by (1)\n    end\n    if <touching color (#652a00)?> then\n        change y by (1)\n    end\n    if <touching color (#652a00)?> then\n        change y by (1)\n    end\n    if <touching color (#652a00)?> then\n        change y by (1)\n    end\n    if <touching color (#652a00)?> then\n        change y by (-4)\n        change x by ((速度x) * (-1))\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            if <not <touching color (#ff6262)?>> then\n                set [速度y v] to [10]\n                broadcast (ジャンプ v)\n                if <([abs v] of (速度x) ) = (速度x)> then\n                    set [速度x v] to [-10]\n                else\n                    set [速度x v] to [10]\n                end\n            end\n        else\n            set [速度x v] to [0]\n        end\n    end\n    change y by (速度y)\n    if <touching color (#652a00)?> then\n        change y by ((0) - (速度y))\n        set [速度y v] to [0]\n    end\n    change y by (-1)\n    if <<<key (up arrow v) pressed?> and <touching color (#652a00)?>> or <<<mouse down?> and <(y position) < (mouse y)>> and <touching color (#652a00)?>>> then\n        if <not <touching color (#2fff00)?>> then\n            set [速度y v] to [13]\n            broadcast (ジャンプ v)\n        end\n    end\n    change y by (1)\n    if <[239] < (x position)> then\n        change [ステージ v] by (1)\n        go to x: (-220) y: (-50)\n    end\n    if <touching color (#00a0a3)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            set [速度y v] to [17]\n            broadcast (大ジャンプ v)\n        else\n            set [速度y v] to [13]\n            broadcast (大ジャンプ v)\n        end\n    end\n    if <touching color (#ff6262)?> then\n        go to x: (-220) y: (-50)\n        broadcast (死亡 v)\n    end\n    if <touching color (#2fff00)?> then\n        if <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>> then\n            change [速度y v] by (1)\n            change y by ((速度y) / (2))\n        end\n    end\nend\nstop [all v]\n\nwhen I receive [死亡 v]\nstart sound [しょげる v]\n\nwhen I receive [ジャンプ v]\nstart sound [ジャンプ v]\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    switch costume to (キャラ1残像 v)\nelse\n    switch costume to (キャラ2残像 v)\nend\nclear graphic effects\nset size to (50) %\nrepeat (5)\n    change [ghost v] effect by (10)\n    change size by (-5)\nend\ndelete this clone\n\n@サムネ\n\nwhen flag clicked\nhide\ngo to [front v] layer\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nshow\n\n@地形\n\nwhen flag clicked\nshow\nforever\n    switch costume to (ステージ)\n    if <(ステージ) = [9]> then\n        play sound [男性の悲鳴 v] until done\n    end\nend\n\n