〜Cat's simple platformer〜

Instructions: 日本語は↓\n＿＿＿＿＿English＿＿＿＿＿＿＿＿＿\nMove with arrow keys or wasd.\nIt ’s a self-destruct with k.\nThere are 15 stages\nDifficulty ★★★☆☆\n＿＿＿＿＿＿＿＿＿＿日本語＿＿＿＿＿＿＿＿＿＿＿＿\n矢印キーまたは wasd で動かします。\nkで自爆でｓ（（殴\n15ステージあります\n難しさ　★★★☆☆

@Stage\n\nwhen flag clicked\nforever\n    switch backdrop to (背景)\nend\n\nwhen flag clicked\nhide variable [やられた v]\nswitch backdrop to (背景1 v)\nset [タイム v] to [0]\nrepeat until <(backdrop [number v]) = [15]>\n    if <(いまあだめ) = [いいよ]> then\n        wait (0.1) seconds\n        change [タイム v] by (0.1)\n        if <(無重力) = [1]> then\n            stop [this script v]\n        end\n    end\nend\nshow variable [やられた v]\n\nwhen [timer v] > (0.1)\nswitch backdrop to (背景15 v)\n\nwhen flag clicked\nforever\n    play sound [Candyland v] until done\nend\n\nwhen flag clicked\nhide variable [☁ 世界記録 v]\nwait until <(backdrop [number v]) = [15]>\nshow variable [☁ 世界記録 v]\nif <(☁ 世界記録) > (タイム)> then\n    set [☁ 世界記録 v] to (タイム)\nend\n\nset [☁ 世界記録 v] to [100]\n\n@スプライト1\n\n@スプライト2\n\nwhen flag clicked\nset [やられた v] to [0]\nshow variable [タイム v]\nset [背景 v] to [1]\ngo to [front v] layer\nswitch costume to (1 v)\nset size to (50) %\npoint in direction (90)\nset rotation style [left-right v]\nshow\ngo to x: (-217) y: (0)\nset [x v] to [0]\nset [y v] to [0]\nrepeat until <(背景) = [17]>\n    if <(無重力) = [1]> then\n        set [タイム v] to [infinite]\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> 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 (#22ce00)?> or <touching color (#9e5800)?>> or <touching color (#6b6b6b)?>> then\n        end\n        if <touching color (#23d500)?> then\n            change y by (2)\n        end\n        if <<<touching color (#ff0000)?> or <touching color (#c30000)?>> or <<touching color (#00ceff)?> or <touching color (#00b2de)?>>> then\n            change [やられた v] by (1)\n            set [y v] to [0]\n            go to x: (-217) y: (0)\n            start sound [Crunch v]\n        end\n        if <touching color (#0016ff)?> then\n            start sound [Jump v]\n            set [y v] to [16]\n            start sound [Jump3 v]\n        end\n        if <[239] < (x position)> then\n            go to x: (-217) y: (0)\n            hide\n            hide variable [タイム v]\n            set [いまあだめ v] to [だめ]\n            change [背景 v] by (1)\n            broadcast (次 v) and wait\n            set [x v] to [0]\n            set [y v] to [0]\n            set [いまあだめ v] to [いいよ]\n            show\n            show variable [タイム v]\n        end\n        if <(y position) = [-189]> then\n            change [やられた v] by (1)\n            set [y v] to [0]\n            start sound [Crunch v]\n            go to x: (-217) y: (0)\n        end\n        if <key (k v) pressed?> then\n            set [y v] to [0]\n            start sound [Crunch v]\n            go to x: (-217) y: (0)\n            wait until <not <key (k v) pressed?>>\n        end\n        if <<<<<touching color (#22ce00)?> or <touching color (#6b6b6b)?>> or <touching color (#9e5800)?>> or <touching color (#2bff00)?>> or <touching color (#23d500)?>> then\n            change y by ((y) * (-1))\n            change y by ((YY) * (-1))\n            change y by (1)\n            set [y v] to [0]\n        end\n    else\n        if <touching color (#6b6b6b)?> then\n        end\n        change [y v] by (-0.8)\n        change y by (y)\n        if <<<<<touching color (#22ce00)?> or <touching color (#6b6b6b)?>> or <touching color (#9e5800)?>> or <touching color (#2bff00)?>> or <touching color (#23d500)?>> then\n            change y by ((y) * (-1))\n            set [y v] to [0]\n            if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>>> then\n                start sound [High Whoosh v]\n                set [y v] to [11]\n            end\n        end\n        if <touching color (#00ff47)?> then\n        if <not <touching color (#00ff47)?>> then\n        if <<key (d v) pressed?> or <<key (right arrow v) pressed?> or <<mouse down?> and <[0] < (mouse x)>>>> then\n            point in direction (90)\n            change [x v] by (1)\n        end\n        if <<key (a v) pressed?> or <<key (left arrow v) pressed?> or <<mouse down?> and <(mouse x) < [0]>>>> 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 (#22ce00)?> or <touching color (#9e5800)?>> or <touching color (#6b6b6b)?>> then\n            change x by ((x) * (-1.001))\n        end\n        if <touching color (#23d500)?> then\n            change y by (2)\n        end\n        if <<<touching color (#ff0000)?> or <touching color (#c30000)?>> or <<touching color (#00ceff)?> or <touching color (#00b2de)?>>> then\n            change [やられた v] by (1)\n            set [y v] to [0]\n            go to x: (-217) y: (0)\n            start sound [Crunch v]\n        end\n        if <touching color (#0016ff)?> then\n            start sound [Jump v]\n            set [y v] to [16]\n            start sound [Jump3 v]\n        end\n        if <[239] < (x position)> then\n            go to x: (-217) y: (0)\n            hide\n            hide variable [タイム v]\n            set [いまあだめ v] to [だめ]\n            change [背景 v] by (1)\n            broadcast (次 v) and wait\n            set [x v] to [0]\n            set [y v] to [0]\n            set [いまあだめ v] to [いいよ]\n            show\n            show variable [タイム v]\n        end\n        if <(y position) = [-189]> then\n            change [やられた v] by (1)\n            set [y v] to [0]\n            start sound [Crunch v]\n            go to x: (-217) y: (0)\n        end\n        if <key (k v) pressed?> then\n            set [y v] to [0]\n            start sound [Crunch v]\n            go to x: (-217) y: (0)\n            wait until <not <key (k v) pressed?>>\n        end\n    end\nend\nstop [all v]\n\nwhen [timer v] > (0.1)\nhide variable [タイム v]\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nchange x by ((x) * (-1.001))\n\nrepeat until <(y) < [-1]>\nend\n\nwhen flag clicked\nset [yy v] to [0]\nrepeat until <(背景) = [17]>\n    if <(無重力) = [1]> then\n        set [タイム v] to [infinite]\n        if <(無重力) = [1]> then\n            change y by (y)\n            change y by (YY)\n        else\n        end\n    else\n    end\nend\nstop [all v]\n\nwhen flag clicked\nrepeat until <(背景) = [17]>\n    if <(無重力) = [1]> then\n        if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>>> then\n            set [y v] to [5]\n        else\n            change [y v] by (-0.5)\n            if <(y) = [-1.5]> then\n                set [y v] to [1]\n            end\n        end\n        if <<key (s v) pressed?> or <<key (down arrow v) pressed?> or <<mouse down?> and <[-50] < (mouse y)>>>> then\n            set [yy v] to [-5]\n        else\n            change [yy v] by (0.5)\n            if <(YY) = [1.5]> then\n                set [yy v] to [-1]\n            end\n        end\n    else\n    end\nend\nstop [all v]\n\nif <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>>> then\nif <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[50] < (mouse y)>>>> then\nend\n\n@next2\n\nwhen flag clicked\nset [無重力 v] to []\nwait (0.1) seconds\nset [nexts v] to [無重力]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nif <(nexts) = [無重力]> then\n    go to x: (-150) y: (-150)\n    set [ghost v] effect to (100)\n    set size to (80) %\n    wait (0.3) seconds\n    switch costume to (コスチューム15 v)\n    show\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    set [無重力 v] to []\n    repeat until <<touching (mouse-pointer v)?> and <mouse down?>>\n        show\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [無重力 v] to [1]\n        end\n        if <touching (mouse-pointer v)?> then\n            set [brightness v] effect to (30)\n        else\n            set [brightness v] effect to (0)\n        end\n    end\n    set [無重力 v] to [1]\n    set [タイム v] to [infinite]\n    repeat (10)\n        show\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(nexts) = [0]> then\n    start sound [High Whoosh v]\n    switch costume to (コスチューム1 v)\n    show\n    go to x: (547) y: (28)\n    repeat (40)\n        change x by ((x position) / (-5))\n    end\n    delete this clone\nend\nif <(nexts) = [1]> then\n    switch costume to (コスチューム2 v)\n    show\n    go to x: (547) y: (28)\n    repeat (40)\n        change x by ((x position) / (-5))\n    end\n    delete this clone\nend\nif <(nexts) = [2]> then\n    go to x: (547) y: (28)\n    show\n    switch costume to (コスチューム3 v)\n    repeat (40)\n        change x by ((x position) / (-5))\n    end\n    delete this clone\nend\nif <(nexts) = [3]> then\n    set [ghost v] effect to (0)\n    show\n    switch costume to (コスチューム4 v)\n    go to x: (547) y: (28)\n    repeat (40)\n        change x by ((x position) / (-5))\n    end\n    wait (1.5) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <(nexts) = [g]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム11 v)\n    go to x: (-93) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [o]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム12 v)\n    go to x: (-43) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [a]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム13 v)\n    go to x: (7) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [l]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム16 v)\n    go to x: (57) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [!]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム14 v)\n    go to x: (87) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [n]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム5 v)\n    go to x: (-93) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [e]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム6 v)\n    go to x: (-43) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [x]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム7 v)\n    go to x: (7) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\nif <(nexts) = [t]> then\n    go to [front v] layer\n    show\n    switch costume to (コスチューム8 v)\n    go to x: (57) y: (163)\n    repeat (40)\n        change y by ((y position) / (-5))\n    end\n    wait (0.10) seconds\n    delete this clone\nend\n\nwhen I receive [次 v]\nif <not <(背景) = [15]>> then\n    hide\n    set [color v] effect to (pick random (-200) to (200))\n    set [nexts v] to [0]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [1]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [2]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [3]\n    create clone of (_myself_ v)\n    wait (1) seconds\n    set [nexts v] to [n]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [e]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [x]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [t]\n    create clone of (_myself_ v)\n    wait (2) seconds\nelse\n    hide\n    set [color v] effect to (pick random (-200) to (200))\n    set [nexts v] to [0]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [1]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [2]\n    create clone of (_myself_ v)\n    wait (0.09) seconds\n    set [nexts v] to [3]\n    create clone of (_myself_ v)\n    wait (1) seconds\n    set [nexts v] to [g]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [o]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [a]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [l]\n    create clone of (_myself_ v)\n    wait (0.01) seconds\n    set [nexts v] to [!]\n    create clone of (_myself_ v)\n    wait (2) seconds\nend\n\nwhen flag clicked\nhide\n\nwhen [timer v] > (0.1)\ngo to x: (0) y: (0)\nshow\nswitch costume to (コスチューム10 v)\nset size to (100) %\nswitch costume to (コスチューム9 v)\nhide variable [やられた v]\nhide variable [☁ 世界記録 v]\n\n