tied up platformer 4
@Stage\n\nwhen I receive [開始 v]\nforever\n    play sound [シャボン玉と猫 v] until done\nend\n\n@スプライト1\n\nwhen I receive [開始 v]\nforever\n    if <<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>> then\n        switch costume to (ブロックくん2 v)\n        wait until <not <<key (down arrow v) pressed?> or <<(y position) > (mouse y)> and <mouse down?>>>>\n        change y by (6)\n    else\n        switch costume to (ブロックくん v)\n    end\nend\n\nwhen I receive [開始 v]\nset [記録（プレイ中）　record \(playing\) v] to [0]\nforever\n    set rotation style [left-right v]\n    if <<<mouse down?> and <(x position) > (mouse x)>> or <key (left arrow v) pressed?>> then\n        change [xv v] by (-1)\n        point in direction (-90)\n    end\n    if <<<mouse down?> and <(x position) < (mouse x)>> or <key (right arrow v) pressed?>> then\n        change [xv v] by (1)\n        set [加速度 v] to [1]\n        point in direction (90)\n    else\n        if <not <<(加速度) < [0]> or <(加速度) = [0]>>> then\n            change [加速度 v] by (-0.1)\n            change x by (加速度)\n        end\n    end\n    set [xv v] to ((Xv) * (0.9))\n    change x by (Xv)\n    if <touching color (#33ff00)?> then\n        change y by (1)\n        if <touching color (#33ff00)?> then\n            change y by (1)\n            if <touching color (#33ff00)?> then\n                change y by (1)\n                if <touching color (#33ff00)?> then\n                    change y by (1)\n                    if <touching color (#33ff00)?> then\n                        change y by (1)\n                        if <touching color (#33ff00)?> then\n                            change x by ((Xv) * (-1))\n                            change y by (-5)\n                            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                                if <not <(壁キックカウント　Wall kick count) = [3]>> then\n                                    if <(Xv) > [0]> then\n                                        set [xv v] to [-7]\n                                    else\n                                        set [xv v] to [7]\n                                    end\n                                    set [yv v] to [10]\n                                    change [壁キックカウント　wall kick count v] by (1)\n                                end\n                            else\n                                set [xv 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 color (#33ff00)?> then\n        if <(自爆) = [0]> then\n            if <<<mouse down?> and <(y position) < (mouse y)>> or <key (up arrow v) pressed?>> then\n                if <not <(ジャンプカウント　Jump count) = [3]>> then\n                    set [yv v] to [15]\n                    change [ジャンプカウント　jump count v] by (1)\n                    start sound [ジャンプ v]\n                end\n            end\n        end\n    end\n    change y by (1)\n    change [yv v] by (-1)\n    change y by (Yv)\n    if <touching color (#33ff00)?> then\n        change y by ((Yv) * (-1))\n        set [yv v] to [0]\n    end\n    hide variable [xv v]\n    if <(x position) > [230]> then\n        set [yv v] to [0]\n        set [xv v] to [0]\n        go to x: (-201) y: (-50)\n        broadcast (次へ v) and wait\n        broadcast (next level v)\n        set [壁キックカウント　wall kick count v] to [0]\n        set [ジャンプカウント　jump count v] to [0]\n        set [xv v] to [0]\n        set [yv v] to [0]\n    end\n    if <<touching color (#ff0000)?> or <<key (space v) pressed?> or <<(自爆) = [1]> or <(y position) < [-170]>>>> then\n        start sound [ナイフを投げる v]\n        go to x: (-201) y: (-50)\n        set [yv v] to [0]\n        set [xv v] to [0]\n        set [壁キックカウント　wall kick count v] to [0]\n        set [ジャンプカウント　jump count v] to [0]\n        if <(待機？) = [1]> then\n            broadcast (待機 v)\n        end\n    end\nend\n\nwhen flag clicked\nshow\nset size to (50) %\nset drag mode [not draggable v]\ngo to x: (-201) y: (-50)\npoint in direction (90)\nset [xvel v] to [0]\nset [yvel v] to [0]\nhide variable [記録（プレイ中）　record \(playing\) v]\nhide variable [記録　record v]\nhide variable [☁ 最高記録　highest record v]\nif <key (any v) pressed?> then\n    set [color v] effect to (pick random (0) to (200))\nend\n\nwhen I receive [開始 v]\nforever\n    if <touching color (#ffff00)?> then\n        set [yv v] to [20]\n    end\nend\n\nwhen flag clicked\nhide variable [ジャンプカウント　jump count v]\nhide variable [壁キックカウント　wall kick count v]\nset [壁キックカウント　wall kick count v] to [0]\nset [ジャンプカウント　jump count v] to [0]\nset [自爆 v] to [0]\nset [待機？ v] to [1]\n\nwhen I receive [待機 v]\nset [待機？ v] to [0]\nwait (0.5) seconds\nset [自爆 v] to [0]\nset [待機？ v] to [1]\n\nwhen I receive [動かないと台パン v]\nif <(☁ 最高記録　Highest record) > (タイム)> then\n    set [☁ 最高記録　highest record v] to (タイム)\nend\nbroadcast (最高記録 v)\n\nwhen I receive [開始 v]\nwait until <(ステージ) > [9]>\nbroadcast (動かないと台パン v)\n\n@スプライト2\n\nwhen I receive [next level v]\nnext costume\nchange [ステージ v] by (1)\n\nwhen flag clicked\nswitch costume to (コスチューム1 v)\ngo to [back v] layer\nset [ステージ v] to [1]\n\n@スプライト3\n\nwhen flag clicked\nplay sound [ロストワンの号哭katto v] until done\n\nwhen flag clicked\nshow\ngo to [front v] layer\ngo [backward v] (2) layers\ngo to x: (0) y: (0)\npoint in direction (90)\nrepeat (10)\n    turn right (5) degrees\nend\nrepeat (20)\n    turn left (5) degrees\nend\nrepeat (10)\n    turn right (5) degrees\nend\nrepeat (10)\n    turn right (5) degrees\nend\nrepeat (20)\n    turn left (5) degrees\nend\nrepeat (10)\n    turn right (5) degrees\nend\nbroadcast (上昇 v)\nrepeat (180)\n    change y by (2)\nend\nbroadcast (開始 v)\nhide\n\nwhen flag clicked\ngo to [front v] layer\n\n@スプライト4\n\nwhen flag clicked\nshow\n\nwhen I receive [開始 v]\nhide\n\nwhen I receive [上昇 v]\nrepeat (180)\n    change y by (2)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide variable [ジャンプカウント　jump count v]\nhide variable [壁キックカウント　wall kick count v]\nhide variable [記録（プレイ中）　record \(playing\) v]\nhide variable [記録　record v]\nhide variable [☁ 最高記録　highest record v]\n\n@スプライト5\n\nwhen [timer v] > (0.05)\nset [ghost v] effect to (100)\nhide variable [☁ 最高記録　highest record v]\nhide variable [記録　record v]\ngo to [front v] layer\nshow\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\n\n@スプライト6\n\nwhen flag clicked\nhide\n\nwhen this sprite clicked\nset [自爆 v] to [1]\n\nwhen I receive [開始 v]\nshow\n\n@スプライト8\n\nwhen I start as a clone\nif <(切り替え) = [0]> then\n    wait (1.025) seconds\nelse\n    wait (0) seconds\nend\ndelete this clone\n\ndefine 一瞬で\nif <(costume [number v]) = [11]> then\n    set [雑用 v] to [1]\n    go to x: (40) y: (-160)\n    set size to (100) %\n    repeat (length of (タイマー))\n        switch costume to (letter (雑用) of (タイマー))\n        create clone of (_myself_ v)\n        change x by (12)\n        change [雑用 v] by (1)\n    end\n    switch costume to (タイム v)\n    set size to (100) %\n    go to x: (0) y: (-160)\nend\n\nwhen I receive [開始 v]\nset [切り替え v] to [0]\nforever\n    一瞬で\n    wait (1) seconds\n    change [タイマー v] by (1)\n    change [タイム v] by (1)\nend\n\nwhen flag clicked\ngo to x: (0) y: (-160)\nswitch costume to (タイム v)\nset [タイマー v] to [0]\nset [タイム v] to [0]\n\nwhen I receive [開始 v]\nwait until <([costume # v] of [スプライト2 v]) = [10]>\nstop [other scripts in sprite v]\nswitch costume to (最高記録 v)\nset [切り替え v] to [1]\nforever\n    一瞬で\nend\n\n@スプライト7\n\nwhen I start as a clone\nwait (0) seconds\ndelete this clone\n\ndefine 一瞬で\nif <(costume [number v]) = [11]> then\n    switch costume to (ジャンプカウント　Jump count)\n    go to x: (-100) y: (120)\n    set size to (100) %\n    create clone of (_myself_ v)\n    switch costume to (タイム v)\n    set size to (100) %\n    go to x: (-180) y: (120)\nelse\nend\n\nwhen I receive [開始 v]\nforever\n    一瞬で\nend\n\nwhen flag clicked\ngo to x: (-180) y: (120)\nswitch costume to (タイム v)\nset [タイマー v] to [0]\nset [タイム v] to [0]\n\n@スプライト10\n\nwhen I start as a clone\nwait (0) seconds\ndelete this clone\n\nwhen I receive [最高記録 v]\nshow\nforever\n    一瞬で\nend\n\nwhen flag clicked\ngo to x: (-50) y: (-130)\nswitch costume to (タイム v)\nset [タイマー v] to [0]\nset [タイム v] to [0]\nhide\n\ndefine 一瞬で\nif <(costume [number v]) = [11]> then\n    set [雑用 v] to [1]\n    go to x: (40) y: (-130)\n    set size to (100) %\n    repeat (length of (☁ 最高記録　Highest record))\n        switch costume to (letter (雑用) of (☁ 最高記録　Highest record))\n        create clone of (_myself_ v)\n        change x by (12)\n        change [雑用 v] by (1)\n    end\n    switch costume to (タイム v)\n    set size to (100) %\n    go to x: (-50) y: (-130)\nend\n\n@スプライト11\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [次へ v]\ngo to x: (-200) y: (0)\nshow\nglide (1) secs to x: (200) y: (0)\nhide\n\n@スプライト9\n\nwhen I start as a clone\nwait (0) seconds\ndelete this clone\n\ndefine 一瞬で\nif <(costume [number v]) = [11]> then\n    switch costume to (壁キックカウント　Wall kick count)\n    go to x: (-70) y: (160)\n    set size to (100) %\n    create clone of (_myself_ v)\n    switch costume to (タイム v)\n    set size to (100) %\n    go to x: (-165) y: (160)\nend\n\nwhen I receive [開始 v]\nforever\n    一瞬で\nend\n\nwhen flag clicked\ngo to x: (-165) y: (160)\nswitch costume to (タイム v)\nset [タイマー v] to [0]\nset [タイム v] to [0]\n\n
日本語は下\n\nJumping and wall kicking are disabled after 3 times each.\nRight tap / Right key to go right\nTap Left / Left key to go left.\nUp tap / Up key Jump\nDown tap / Down key Crouch\nButton tap / Spacebar Self-destruct\nGreen Ground\nRed Start from the beginning of the stage when you touch it\nYellow Jump high when touched\nJump & Move Wall Kick\n\nジャンプ・壁キックはそれぞれ3回すると出来なくなります。\n右タップ・右キー　　　　　　右に進む\n左タップ・左キー　　　　　　左に進む\n上タップ・上キー　　　　　　ジャンプ\n下タップ・下キー　　　　　　しゃがむ\nボタンタップ・スペースキー　自爆\n緑　　　地面\n赤　　　触れるとステージの最初からになる\n黄色　　触れると高くジャンプする\nジャンプ＆移動　　壁キック