Simple 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＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝

@Stage\n\nwhen flag clicked\nset volume to (50) %\nforever\n    play sound [12707 v] until done\nend\n\n@キャラ\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\nwhen [timer v] > (0)\nhide\n\nwhen I receive [大ジャンプ v]\nstart sound [大ジャンプ v]\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 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 <(ステージ) = [10]>\n    show\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 (#1aff00)?> then\n        change y by (1)\n    end\n    if <touching color (#1aff00)?> then\n        change y by (1)\n    end\n    if <touching color (#1aff00)?> then\n        change y by (1)\n    end\n    if <touching color (#1aff00)?> then\n        change y by (1)\n    end\n    if <touching color (#1aff00)?> 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            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        else\n            set [速度x v] to [0]\n        end\n    end\n    change y by (速度y)\n    if <touching color (#1aff00)?> 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 (#1aff00)?>> or <<<mouse down?> and <(y position) < (mouse y)>> and <touching color (#1aff00)?>>> then\n        set [速度y v] to [13]\n        broadcast (ジャンプ v)\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 <<<(y position) < [-178]> or <touching color (#ff6464)?>> or <touching (敵 v)?>> then\n        go to x: (-220) y: (-50)\n        broadcast (死亡 v)\n    end\n    if <<(costume [number v]) = [3]> and <(y position) < [-172]>> then\n        go to x: (-220) y: (-50)\n        broadcast (死亡 v)\n    end\n    if <touching color (#63a5ff)?> then\n        set [速度y v] to [15]\n        broadcast (大ジャンプ v)\n    end\nend\nstop [all v]\n\nwhen I receive [ジャンプ v]\nstart sound [ジャンプ v]\n\n@地形\n\nwhen flag clicked\nshow\nforever\n    switch costume to (ステージ)\nend\n\n@敵\n\nwhen I receive [大ジャンプ v]\nstart sound [大ジャンプ v]\n\nwhen [timer v] > (0)\nhide\n\nwhen flag clicked\nswitch costume to (キャラ1 v)\nhide\ngo to x: (14) y: (-130)\nforever\n    create clone of (_myself_ v)\n    if <(ステージ) = [7]> then\n        show\n        if on edge, bounce\n        move (8) steps\n    else\n        hide\n    end\nend\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 I start as a clone\nswitch costume to (キャラ2 v)\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\nwhen I receive [ジャンプ v]\nstart sound [ジャンプ v]\n\n@スプライト1\n\nwhen flag clicked\npoint in direction (90)\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\ngo to [front v] layer\nshow\nset [ghost v] effect to (100)\nswitch backdrop to (背景2 v)\nshow\npoint in direction (120)\nrepeat (10)\n    change [ghost v] effect by (-10)\n    turn left (3) degrees\nend\n\n