‐color‐ a platformer

Instructions: English↓\n矢印キーで操作します。\nスペースキーを押しながら操作すると速く移動できます。\nＺキーで色を変えることができます。\nＱキーで初期位置に戻れます。地形にめり込んで動けなくなった時に使います。\n自分の色と違う色の地面の上には立つことができます。同じ色の地面はすり抜けます。\nゲーム内にも説明はあります。\n\nEnglish\nOperate with the arrow keys.\n\nYou can move faster by pressing the arrow key while\n \nholding down the space key.\n\nYou can change the color by pressing the Z key.\n\nPress the Q key to return to the starting point.\n\nYou can stand on the ground of a color different from \nyour own color.The same color ground will slip through.\n\nThere is also an explanation in the game.\n\n

@Stage\n\n@操作キャラ\n\nwhen I receive [スタート v]\nhide variable [☁ all coin collectors v]\nhide variable [☁ winners v]\nset size to (100) %\ngo to [front v] layer\nshow\ngo to x: (-159) y: (-120)\nset [速度x v] to [0]\nset [速度y v] to [0]\nset [制限してやるぜ？ v] to [0]\nset [死んだのか v] to [0]\nswitch costume to (コスチューム1 v)\nforever\n    動き\nend\n\nwhen I receive [チェンジ v]\nset [制限してやるぜ？ v] to [1]\nset [速度x v] to [0]\nset [速度y v] to [0]\npoint in direction (90)\nhide\nwait (0.5) seconds\nset [制限してやるぜ？ v] to [0]\nshow\n\nwhen I receive [チェンジ v]\npoint in direction (90)\nwait (0.5) seconds\nif <(ステージ番号) = [2]> then\n    go to x: (-198) y: (-120)\nend\nif <(ステージ番号) = [3]> then\n    go to x: (-161) y: (-139)\nend\nif <(ステージ番号) = [4]> then\n    go to x: (-160) y: (-154)\nend\nif <(ステージ番号) = [5]> then\n    go to x: (196) y: (-133)\nend\nif <(ステージ番号) = [6]> then\n    go to x: (-175) y: (-141)\nend\nif <(ステージ番号) = [7]> then\n    go to x: (-174) y: (-126)\nend\nif <(ステージ番号) = [8]> then\n    go to x: (182) y: (-123)\nend\nif <(ステージ番号) = [9]> then\n    go to x: (-167) y: (142)\nend\nif <(ステージ番号) = [10]> then\n    go to x: (200) y: (127)\nend\nif <(ステージ番号) = [11]> then\n    go to x: (200) y: (-102)\nend\nif <(ステージ番号) = [12]> then\n    go to x: (-132) y: (-113)\nend\nif <(ステージ番号) = [13]> then\n    go to x: (-193) y: (151)\nend\nif <(ステージ番号) = [14]> then\n    go to x: (191) y: (-118)\nend\nif <(ステージ番号) = [15]> then\n    go to x: (-187) y: (-96)\nend\n\nwhen I receive [スタート v]\nforever\n    if <not <<touching (ゴール旗 v)?> or <touching (コイン v)?>>> then\n        if <<touching color (#000000)?> and <<touching (ステージ v)?> or <<touching (変わる者2 v)?> or <<touching (変わる者 v)?> or <touching (変わる者3 v)?>>>>> then\n            if <<touching (ステージ v)?> or <<touching (変わる者2 v)?> or <<touching (変わる者 v)?> or <touching (変わる者3 v)?>>>> then\n                死\n            end\n        end\n    end\nend\n\ndefine 死\nhide\nset [制限してやるぜ？ v] to [1]\nif <(ステージ番号) = [1]> then\n    go to x: (-159) y: (-120)\nend\nif <(ステージ番号) = [2]> then\n    go to x: (-198) y: (-140)\nend\nif <(ステージ番号) = [3]> then\n    go to x: (-171) y: (-129)\nend\nif <(ステージ番号) = [4]> then\n    go to x: (-159) y: (-120)\nend\nif <(ステージ番号) = [5]> then\n    go to x: (196) y: (-133)\nend\nif <(ステージ番号) = [6]> then\n    go to x: (-175) y: (-141)\nend\nif <(ステージ番号) = [7]> then\n    go to x: (176) y: (-126)\nend\nif <(ステージ番号) = [8]> then\n    go to x: (182) y: (-123)\nend\nif <(ステージ番号) = [9]> then\n    go to x: (-167) y: (142)\nend\nif <(ステージ番号) = [10]> then\n    go to x: (200) y: (127)\nend\nif <(ステージ番号) = [11]> then\n    go to x: (200) y: (-102)\nend\nif <(ステージ番号) = [12]> then\n    go to x: (-132) y: (-113)\nend\nif <(ステージ番号) = [13]> then\n    go to x: (-193) y: (151)\nend\nif <(ステージ番号) = [14]> then\n    go to x: (191) y: (-118)\nend\nif <(ステージ番号) = [15]> then\n    go to x: (-187) y: (-96)\nend\nset [死んだのか v] to [1]\nbroadcast (死にやがった v)\nwait (0.2) seconds\nset [制限してやるぜ？ v] to [0]\nshow\n\nwhen [z v] key pressed\nnext costume\nstart sound [Tap Conga v]\nwait until <not <key (z v) pressed?>>\n\ndefine 動き\nif on edge, bounce\nchange [速度y v] by (-1)\nset [速度x v] to ((速度x) * (0.9))\nchange x by (速度x)\nif <touching color (#cccccc)?> then\n    change y by (1)\nend\nif <touching color (#cccccc)?> then\n    change y by (1)\nend\nif <touching color (#cccccc)?> then\n    change y by (1)\nend\nif <touching color (#cccccc)?> then\n    change y by (1)\nend\nif <touching color (#cccccc)?> then\n    change y by (-4)\n    change x by ((速度x) * (-1))\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        set [速度y v] to [15]\n        if <(速度x) > [0]> 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\nend\nchange y by (速度y)\nif <touching color (#cccccc)?> then\n    change y by ((0) - (速度y))\n    set [速度y v] to [0]\nend\nchange y by (-2)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <touching color (#cccccc)?>> then\n    set [速度y v] to [13]\nend\nchange y by (3.0)\n\nwhen I receive [スタート v]\nforever\n    if <(制限してやるぜ？) = [0]> then\n        if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n            change [速度x v] by (-1)\n        end\n        if <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n            change [速度x v] by (1)\n        end\n        if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> and <key (space v) pressed?>> then\n            change [速度x v] by (-1.2)\n            set [brightness v] effect to (-20)\n        end\n        if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> and <key (space v) pressed?>> then\n            change [速度x v] by (1.2)\n            set [brightness v] effect to (-20)\n        end\n    end\nend\n\ndefine 色動き1\nif <touching color (#ff8686)?> then\n    change y by (1)\nend\nif <touching color (#ff8686)?> then\n    change y by (1)\nend\nif <touching color (#ff8686)?> then\n    change y by (1)\nend\nif <touching color (#ff8686)?> then\n    change y by (1)\nend\nif <touching color (#ff8686)?> then\n    change y by (-4)\nend\nif <touching color (#ff8686)?> then\n    change y by ((0) - (速度y))\n    set [速度y v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and > then\n    set [速度y v] to [13]\nend\nchange y by (1)\nif <touching color (#ff8686)?> then\n    change y by (速度y)\n    change x by ((速度x) * (-1))\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(速度x) > [0]> then\n            set [速度y v] to [15]\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\nend\nchange y by (-1)\n\ndefine 色動き2\nforever\n    if <(costume [number v]) = [2]> then\n        色動き1\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    色動き2\nend\n\ndefine 色動き3\nif <touching color (#87ffd9)?> then\n    change y by (1)\nend\nif <touching color (#87ffd9)?> then\n    change y by (1)\nend\nif <touching color (#87ffd9)?> then\n    change y by (1)\nend\nif <touching color (#87ffd9)?> then\n    change y by (1)\nend\nif <touching color (#87ffd9)?> then\n    change y by (-4)\nend\nif <touching color (#87ffd9)?> then\n    change y by ((0) - (速度y))\n    set [速度y v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> and <<touching color (#87ffd9)?> or <<[] = [1]> or <[] = [2]>>>> then\n    set [速度y v] to [13]\nend\nchange y by (1)\nif <touching color (#87ffd9)?> then\n    change y by (速度y)\n    change x by ((速度x) * (-1))\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(速度x) > [0]> then\n            set [速度y v] to [15]\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\nend\nchange y by (-1)\n\ndefine 色動き4\nforever\n    if <(costume [number v]) = [1]> then\n        色動き3\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    色動き4\nend\n\nwhen I receive [スタート v]\nforever\n    if <not <key (space v) pressed?>> then\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen [q v] key pressed\nif <(ステージ番号) = [2]> then\n    go to x: (-198) y: (-142)\nend\nif <(ステージ番号) = [3]> then\n    go to x: (-161) y: (-139)\nend\nif <(ステージ番号) = [4]> then\n    go to x: (-160) y: (-154)\nend\nif <(ステージ番号) = [5]> then\n    go to x: (196) y: (-133)\nend\nif <(ステージ番号) = [6]> then\n    go to x: (-175) y: (-141)\nend\nif <(ステージ番号) = [7]> then\n    go to x: (-174) y: (-126)\nend\nif <(ステージ番号) = [8]> then\n    go to x: (182) y: (-123)\nend\nif <(ステージ番号) = [9]> then\n    go to x: (-167) y: (142)\nend\nif <(ステージ番号) = [10]> then\n    go to x: (200) y: (127)\nend\nif <(ステージ番号) = [11]> then\n    go to x: (200) y: (-102)\nend\nif <(ステージ番号) = [12]> then\n    go to x: (-132) y: (-113)\nend\nif <(ステージ番号) = [13]> then\n    go to x: (-193) y: (151)\nend\nif <(ステージ番号) = [14]> then\n    go to x: (191) y: (-118)\nend\nif <(ステージ番号) = [15]> then\n    go to x: (-187) y: (-96)\nend\nshow\nbroadcast (死にやがった v)\nset [死んだのか v] to [1]\nwait until <not <key (q v) pressed?>>\n\nwhen I receive [スタート v]\nforever\n    if <touching (トランポリン v)?> then\n        set [速度y v] to [22]\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    point in direction (90)\nend\n\nwhen I receive [ゴール完了！ v]\nshow variable [☁ all coin collectors v]\nchange [☁ winners v] by (1)\nshow variable [☁ winners v]\nif <[13] < (point)> then\n    change [☁ all coin collectors v] by (1)\nend\n\nwhen flag clicked\nhide\n\n@ステージ\n\nwhen I receive [チェンジ v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nnext costume\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [スタート v]\nshow\nswitch costume to (コスチューム1 v)\n\nwhen I receive [チェンジ v]\nif <(ステージ番号) = [16]> then\n    broadcast (ゴール完了！ v)\nend\n\nwhen flag clicked\nhide\n\n@ゴール旗\n\nwhen I receive [スタート v]\nset [ステージ番号 v] to [1]\nforever\n    if <touching (操作キャラ v)?> then\n        broadcast (チェンジ v)\n        change [ステージ番号 v] by (1)\n    end\nend\n\nwhen I receive [スタート v]\nshow\ngo to x: (238) y: (-159)\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen I receive [チェンジ v]\nhide\nif <(ステージ番号) = [2]> then\n    go to x: (273) y: (-163)\nend\nif <(ステージ番号) = [3]> then\n    go to x: (266) y: (23)\nend\nif <(ステージ番号) = [4]> then\n    go to x: (-141) y: (105)\nend\nif <(ステージ番号) = [5]> then\n    go to x: (226) y: (107)\nend\nif <(ステージ番号) = [6]> then\n    go to x: (272) y: (92)\nend\nif <(ステージ番号) = [7]> then\n    go to x: (252) y: (73)\nend\nif <(ステージ番号) = [8]> then\n    go to x: (259) y: (-58)\nend\nif <(ステージ番号) = [9]> then\n    go to x: (254) y: (104)\nend\nif <(ステージ番号) = [10]> then\n    go to x: (-114) y: (81)\nend\nif <(ステージ番号) = [11]> then\n    go to x: (147) y: (-18)\nend\nif <(ステージ番号) = [12]> then\n    go to x: (250) y: (96)\nend\nif <(ステージ番号) = [13]> then\n    go to x: (273) y: (-163)\nend\nif <(ステージ番号) = [14]> then\n    go to x: (263) y: (47)\nend\nif <(ステージ番号) = [15]> then\n    go to x: (-135) y: (16)\nend\nwait (0.2) seconds\nshow\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [16]> then\n        hide\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nforever\n    play sound [カービィWii v] until done\nend\n\n@コイン\n\nwhen I receive [スタート v]\nset [point v] to [0]\nshow\ngo to x: (28) y: (-60)\nset size to (30) %\n\nwhen I receive [チェンジ v]\nhide\nwait (0.2) seconds\nif <(ステージ番号) = [2]> then\nif <(ステージ番号) = [3]> then\n    go to x: (10) y: (142)\n    show\nend\nif <(ステージ番号) = [4]> then\n    go to x: (185) y: (-118)\n    show\nend\nif <(ステージ番号) = [5]> then\n    go to x: (-189) y: (120)\n    show\nend\nif <(ステージ番号) = [6]> then\n    go to x: (211) y: (-126)\n    show\nend\nif <(ステージ番号) = [7]> then\n    go to x: (203) y: (-20)\n    show\nend\nif <(ステージ番号) = [8]> then\n    go to x: (-2) y: (-1)\n    show\nend\nif <(ステージ番号) = [9]> then\n    go to x: (159) y: (-48)\n    show\nend\nif <(ステージ番号) = [10]> then\n    go to x: (-166) y: (-82)\n    show\nend\nif <(ステージ番号) = [11]> then\n    go to x: (-172) y: (110)\n    show\nend\nif <(ステージ番号) = [12]> then\n    go to x: (205) y: (25)\n    show\nend\nif <(ステージ番号) = [13]> then\n    go to x: (205) y: (-10)\n    show\nend\nif <(ステージ番号) = [14]> then\n    go to x: (-193) y: (-128)\n    show\nend\nif <(ステージ番号) = [15]> then\n    go to x: (-9) y: (160)\n    show\nend\n\nwhen I receive [スタート v]\nforever\n    if <touching (操作キャラ v)?> then\n        start sound [Collect v]\n        change [point v] by (1)\n        set [コインとったぜ v] to [1]\n        hide\n    end\nend\n\nwhen I receive [死にやがった v]\nshow\nif <(コインとったぜ) = [1]> then\n    change [point v] by (-1)\n    set [コインとったぜ v] to [0]\nend\n\nwhen I receive [チェンジ v]\nset [コインとったぜ v] to [0]\n\nwhen flag clicked\nhide\n\n@トランポリン\n\nwhen I receive [スタート v]\nhide\nforever\n    if <<(ステージ番号) = [5]> or <<(ステージ番号) = [10]> or <<(ステージ番号) = [11]> or <<(ステージ番号) = [12]> or <(ステージ番号) = [16]>>>>> then\n        next costume\n        wait (0.2) seconds\n    end\nend\n\nwhen I receive [チェンジ v]\nhide\nwait (0.5) seconds\nif <(ステージ番号) = [5]> then\n    go to x: (-180) y: (-120)\n    show\nend\nif <(ステージ番号) = [10]> then\n    go to x: (-29) y: (-68)\n    show\nend\nif <(ステージ番号) = [11]> then\n    go to x: (-101) y: (-122)\n    show\nend\nif <(ステージ番号) = [12]> then\n    go to x: (137) y: (-115)\n    show\nend\nif <(ステージ番号) = [16]> then\n    go to x: (156) y: (-110)\n    show\nend\n\nwhen flag clicked\nhide\n\n@変わる者\n\nwhen I receive [スタート v]\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [チェンジ v]\nhide\nwait (0.5) seconds\nif <(ステージ番号) = [13]> then\n    switch costume to (コスチューム1 v)\n    show\nend\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [13]> then\n        switch costume to (コスチューム1 v)\n        start sound [Small Cowbell v]\n        wait (2) seconds\n        switch costume to (コスチューム2 v)\n        start sound [Small Cowbell v]\n        wait (2) seconds\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [14]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@変わる者2\n\nwhen I receive [スタート v]\ngo to x: (36) y: (28)\nhide\n\nwhen I receive [チェンジ v]\nhide\nwait (0.5) seconds\nif <(ステージ番号) = [14]> then\n    switch costume to (コスチューム3 v)\n    show\nend\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [14]> then\n        switch costume to (コスチューム3 v)\n        start sound [Small Cowbell v]\n        wait (3) seconds\n        switch costume to (コスチューム4 v)\n        start sound [Small Cowbell v]\n        wait (3) seconds\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [15]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@変わる者3\n\nwhen I receive [チェンジ v]\nhide\nif <(ステージ番号) = [15]> then\n    show\n    go to x: (189) y: (-107)\nend\n\nwhen I receive [スタート v]\nhide\nforever\n    if <(ステージ番号) = [15]> then\n        wait (3) seconds\n        start sound [Small Cowbell v]\n        next costume\n    end\nend\n\nwhen I receive [スタート v]\nforever\n    if <(ステージ番号) = [16]> then\n        hide\n        stop [other scripts in sprite v]\n    end\nend\n\nwhen flag clicked\nhide\n\n@スプライト1\n\nwhen flag clicked\nhide\n\n@スプライト2\n\nwhen flag clicked\ngo to x: (-3) y: (-53)\nshow\n\nwhen I receive [スタート v]\nhide\n\nwhen I receive [？ v]\nhide\n\nwhen I receive [分かった v]\nshow\n\n@スプライト3\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n        play sound [Smiled_2 v] until done\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (スタート v)\nhide\n\nwhen I receive [？ v]\nhide\n\nwhen I receive [分かった v]\nshow\n\n@スプライト4\n\nwhen I receive [？ v]\nhide variable [☁ winners v]\nhide variable [☁ all coin collectors v]\nshow\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nhide\n\nwhen I receive [分かった v]\nhide\n\n@スプライト5\n\nwhen flag clicked\nshow\nforever\n    if <touching (mouse-pointer v)?> then\n        change [brightness v] effect by (-10)\n        play sound [Smiled_2 v] until done\n        wait until <not <touching (mouse-pointer v)?>>\n    end\nend\n\nwhen flag clicked\nshow variable [☁ winners v]\nshow variable [☁ all coin collectors v]\nforever\n    if <not <touching (mouse-pointer v)?>> then\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen this sprite clicked\nbroadcast (？ v)\nhide\n\nwhen I receive [分かった v]\nshow variable [☁ all coin collectors v]\nshow variable [☁ winners v]\nshow\n\nwhen I receive [スタート v]\nhide\n\n@スプライト6\n\nwhen I receive [？ v]\ngo to x: (191) y: (120)\nshow\n\nwhen this sprite clicked\nhide\nbroadcast (分かった v)\n\nwhen flag clicked\nhide\n\nwhen I receive [スタート v]\nhide\n\n