Long Gimmick Platformer　ロングギミックプラットフォーマー

Instructions: WASD〇→↑↓←〇touch〇\n全部で35ステージあります！\nThere are a total of 35 stages!\n結構前作から素材を持ってきてます()\nI brought materials from the previous work ()\nF4F〇☆♡〇\n

@Stage\n\nwhen flag clicked\nswitch backdrop to (サムネ v)\n\nwhen flag clicked\nwait (3) seconds\nbroadcast (ｋ v)\nswitch backdrop to (空 v)\n\nwhen I receive [ｋ v]\nforever\n    play sound [看板猫は今日も歩く v] until done\n    wait (１) seconds\nend\n\nwhen I receive [i v]\nswitch backdrop to (サムネ v)\n\nwhen I receive [i v]\nstop all sounds\n\n@ステージ\n\nwhen I receive [ｓ v]\nhide\nchange [ステージのコスチューム番号 v] by (1)\nnext costume\nshow\n\nwhen I receive [n v]\nswitch costume to (1 v)\n\nwhen flag clicked\ngo to [front v] layer\nset [ステージのコスチューム番号 v] to [1]\ngo to x: (-2) y: (9)\nswitch costume to (1 v)\nshow\nforever\n    if <(ステージのコスチューム番号) = [36]> then\n        switch costume to (1 v)\n    end\nend\n\n@NEXT\n\nwhen I receive [ｓ v]\nwait (0.011) seconds\ngo to [front v] layer\ngo to x: (7) y: (-43)\nshow\nwait (1.2) seconds\nbroadcast (a v)\nhide\n\nwhen flag clicked\nhide\n\n@プラット君\n\ndefine 初期位置\ngo to x: (-231) y: (-60)\n\nwhen I receive [i v]\nhide\n\nwhen backdrop switches to [空 v]\nshow\nforever\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse x)>>> then\n        switch costume to (↓ v)\n    else\n        switch costume to (通常 v)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        switch costume to (← v)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        switch costume to (→ v)\n    end\n    if <<<<key (down arrow v) pressed?> and <key (left arrow v) pressed?>> or <<key (s v) pressed?> and <key (a v) pressed?>>> or <<<mouse down?> and <(y position) > (mouse y)>> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (↓ v)\n    end\n    if <<<<key (down arrow v) pressed?> and <key (right arrow v) pressed?>> or <<key (s v) pressed?> and <key (d v) pressed?>>> or <<<mouse down?> and <(y position) > (mouse y)>> and <<mouse down?> and <(mouse x) > (x position)>>>> then\n        switch costume to (↓ v)\n    end\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        switch costume to (↑ v)\n    end\n    if <<<<key (down arrow v) pressed?> and <key (up arrow v) pressed?>> or <<key (s v) pressed?> and <key (w v) pressed?>>> or <<<mouse down?> and <(y position) > (mouse y)>> and <<mouse down?> and <(mouse y) > (y position)>>>> then\n        switch costume to (↓ v)\n    end\n    if <<<key (up arrow v) pressed?> and <key (left arrow v) pressed?>> or <<key (w v) pressed?> and <key (a v) pressed?>>> then\n        switch costume to (←↑ v)\n    end\n    if <<<key (up arrow v) pressed?> and <key (right arrow v) pressed?>> or <<key (w v) pressed?> and <key (d v) pressed?>>> then\n        switch costume to (→↑ v)\n    end\n    if <<<key (up arrow v) pressed?> and <key (down arrow v) pressed?>> or <<key (w v) pressed?> and <key (s v) pressed?>>> then\n        switch costume to (↓ v)\n    end\n    if <<<<<key (up arrow v) pressed?> and <key (down arrow v) pressed?>> and <key (left arrow v) pressed?>> or <<<key (w v) pressed?> and <key (s v) pressed?>> and <key (a v) pressed?>>> or <<<<mouse down?> and <(x position) > (mouse x)>> and <(mouse y) > (y position)>> and <(y position) > (mouse y)>>> then\n        switch costume to (↓ v)\n    end\n    if <<<<<key (up arrow v) pressed?> and <key (down arrow v) pressed?>> and <key (right arrow v) pressed?>> or <<<key (w v) pressed?> and <key (s v) pressed?>> and <key (d v) pressed?>>> or <<<<mouse down?> and <(mouse x) > (x position)>> and <(mouse y) > (y position)>> and <(y position) > (mouse y)>>> then\n        switch costume to (↓ v)\n    end\nend\n\nwhen backdrop switches to [空 v]\nforever\n    if <<<[0.0000000000001] < (X)> or <(X) < [0.0000000000001]>> or <<[0] < (Y)> or <(Y) < [0]>>> then\n        if <<(死亡) = [0]> and <not <(ステージのコスチューム番号) = [36]>>> then\n            create clone of (_myself_ v)\n            if <(スタート) = [0]> then\n                switch costume to (→↑ v)\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(スタート) = [1]> then\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        switch costume to (↓クローン v)\n    else\n        switch costume to (クローン v)\n    end\n    set [ghost v] effect to (0)\n    repeat (8)\n        change [ghost v] effect by (12.5)\n        change size by (-10)\n    end\n    delete this clone\nend\n\nwhen I receive [ｓ v]\nwait (1.2) seconds\n初期位置\n\nwhen I receive [ｓ v]\nrepeat (9)\n    初期位置\n    wait (0.1) seconds\nend\n\nwhen backdrop switches to [空 v]\nset [x v] to [0]\nset [y v] to [0]\n\nwhen backdrop switches to [空 v]\nset [死亡 v] to [0]\ngo to [front v] layer\nforever\n    if <<(y position) < [-197]> or <touching (スパイク v)?>> then\n        set [死亡 v] to [1]\n        set [x座標死んだ場所 v] to (x position)\n        set [y座標死んだ場所 v] to (y position)\n        start sound [死音 v]\n        set [x v] to [0]\n        set [y v] to [0]\n        repeat (10)\n            change [ghost v] effect by (10)\n            wait (0.01) seconds\n        end\n        wait (0.1) seconds\n        初期位置\n        set [死亡 v] to [0]\n        set [ghost v] effect to (0)\n    end\nend\n\nwhen I receive [i v]\nstop [all v]\n\nwhen flag clicked\nwait (3) seconds\nclear graphic effects\n\nwhen flag clicked\nshow\nset [スタート v] to [0]\ngo to [front v] layer\nforever\n    if <(スタート) = [1]> then\n        set size to (100) %\n        初期位置\n        set rotation style [left-right v]\n        forever\n            if <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n                change [x v] by (1.75)\n            end\n            if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>>> then\n                change [x v] by (-1.75)\n            end\n            set [x v] to ((X) * (0.8))\n            change x by (X)\n            if <touching (ステージ v)?> then\n                change y by (1)\n                if <touching (ステージ v)?> then\n                    change y by (1)\n                    if <touching (ステージ v)?> then\n                        change y by (1)\n                        if <touching (ステージ v)?> then\n                            change y by (1)\n                            if <touching (ステージ v)?> then\n                                change y by (1)\n                                if <touching (ステージ v)?> then\n                                    change x by ((0) - (X))\n                                    change y by (-5)\n                                    if <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>> then\n                                        if <(X) > [0]> then\n                                            set [x v] to [-10]\n                                        else\n                                            set [x v] to [10]\n                                        end\n                                        set [y v] to [18]\n                                    else\n                                        set [x v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n            if <touching (水 v)?> then\n                change [y v] by (-0.15)\n                if <[182] < [50]> then\n                    change [y v] by (-1)\n                end\n            else\n                change [y v] by (-1)\n            end\n            change y by (Y)\n            if <<touching (ステージ v)?> or <touching color (#029800)?>> then\n                change y by ((0) - (Y))\n                set [y v] to [0]\n            end\n            change y by (-2)\n            if <<touching (水 v)?> and <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>>> then\n                if <(Y) < [0.1]> then\n                    set [y v] to [0]\n                end\n                change [y v] by (0.5)\n            else\n                if <<touching (ステージ v)?> and <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <[0] < (mouse y)>>>>> then\n                    set [y v] to [17]\n                    start sound [ジャンプ音 v]\n                end\n            end\n        end\n    else\n        repeat until <(スタート) = [1]>\n            set size to (125) %\n            go to x: (-119) y: (-65)\n        end\n    end\nend\n\nwhen backdrop switches to [空 v]\nforever\n    if <(死亡) = [1]> then\n        repeat until <(死亡) = [0]>\n            set [x v] to [0]\n            switch costume to (通常 v)\n            go to x: (X座標死んだ場所) y: (Y座標死んだ場所)\n            set [y v] to [0]\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\nset [あ v] to [0]\nwait (3) seconds\nset [スタート v] to [1]\n\nwhen I start as a clone\nif <(スタート) = [0]> then\n    switch costume to (クローン v)\n    set [ghost v] effect to (0)\n    repeat (8)\n        change [ghost v] effect by (12.5)\n        change size by (-10)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nforever\n    if <[210] < (x position)> then\n        set [あ v] to [1]\n        broadcast (ｓ v)\n    end\nend\n\nwhen flag clicked\nforever\n    set [プラット君のx座標 v] to (x position)\n    set [プラット君のy座標 v] to (y position)\nend\n\nwhen flag clicked\nforever\n    if <touching (ザ・ワールド！ v)?> then\n        broadcast (i v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<touching (ステージ v)?> and <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\n        start sound [ジャンプ音 v]\n    end\n    if <<touching (水 v)?> and <<key (w v) pressed?> or <<key (up arrow v) pressed?> or <<mouse down?> and <(y position) < (mouse y)>>>>> then\nend\n\nwhen I receive [a v]\n初期位置\n\nwhen I receive [ｓ v]\nrepeat until <(あ) = [0]>\n    初期位置\n    set [y v] to [0]\nend\n\nwhen I receive [a v]\nset [あ v] to [0]\n\nwhen flag clicked\nforever\n    if <<touching (ばね v)?> and <(死亡) = [0]>> then\n        set [y v] to [35]\n        start sound [ジャンプ音 v]\n        broadcast (ピコん v)\n    end\nend\n\nwhen flag clicked\nset [死亡 v] to [0]\nwait (3) seconds\ngo to [back v] layer\nforever\n    if <touching (コイン v)?> then\n        broadcast (チャリン v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <<<<(ステージのコスチューム番号) = [2]> or <(ステージのコスチューム番号) = [5]>> or <(ステージのコスチューム番号) = [14]>> or <(ステージのコスチューム番号) = [27]>> then\n        if <[-121] > (y position)> then\n            set y to (-121)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (加速 v)?> then\n        set [x v] to ((X) + (1.5))\n    end\n    if <touching (鈍足 v)?> then\n        set [x v] to ((X) - (1))\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージのコスチューム番号) = [32]> then\n        if <[-121] > (y position)> then\n            set y to (-121)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージのコスチューム番号) = [36]> then\n        初期位置\n    end\nend\n\n@スプライト1\n\nwhen backdrop switches to [空 v]\nwait (0.01) seconds\ngo to [back v] layer\nshow\nforever\n    change size by ([cos v] of (太陽cos) )\nend\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [空 v]\ngo to x: (220) y: (171)\nset size to (100) %\nforever\n    change [太陽cos v] by (5)\nend\n\nwhen I receive [i v]\nhide\n\n@スプライト2\n\nwhen flag clicked\nhide\n\nwhen backdrop switches to [空 v]\ngo to [back v] layer\nshow\nforever\n    change size by ([cos v] of (太陽cos) )\nend\n\nwhen backdrop switches to [空 v]\ngo to x: (200) y: (165)\nset size to (100) %\nforever\n    change [太陽cos v] by (5)\nend\n\nwhen flag clicked\nhide\n\n@太陽拳\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\n\nwhen I receive [i v]\nhide\n\n@Cool Text - code platformer 422437019278991\n\nwhen flag clicked\nwait (0.01) seconds\nshow\ngo to [front v] layer\nwait (2.99) seconds\nhide\n\nwhen flag clicked\nhide variable [☁ 世界記録（world record\) v]\nhide variable [☁ 自分の記録（my record\) v]\nhide\nset [☁ 自分の記録（my record\) v] to [0]\nset [自分の記録（my record\) v] to [0]\nwait (3) seconds\nforever\n    repeat until <(ステージのコスチューム番号) = [36]>\n        wait (0.1) seconds\n        change [自分の記録（my record\) v] by (0.1)\n    end\n    if <(ステージのコスチューム番号) = [37]> then\n        set [☁ 自分の記録（my record\) v] to (自分の記録（my record\))\n        if <(☁ 世界記録（world record\)) < (☁ 自分の記録（my record\))> then\n            set [☁ 世界記録（world record\) v] to (☁ 自分の記録（my record\))\n        end\n        show variable [コイン（coin\) v]\n        show variable [☁ 世界記録（world record\) v]\n        show variable [☁ 自分の記録（my record\) v]\n        show\n    end\nend\n\nwhen I receive [i v]\nchange [☁ miss v] by (1)\n\n@スパイク\n\nwhen flag clicked\nshow\nswitch costume to (コスチューム1 v)\nwait (3) seconds\ngo to [back v] layer\nhide\nforever\n    if <(ステージのコスチューム番号) = [4]> then\n        point in direction (90)\n        switch costume to (コスチューム1 v)\n        go to x: (-13) y: (22)\n        show\n    end\n    if <(ステージのコスチューム番号) = [5]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [8]> then\n        switch costume to (コスチューム2 v)\n        go to x: (-13) y: (-50)\n        show\n    end\n    if <(ステージのコスチューム番号) = [9]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [11]> then\n        point in direction (90)\n        switch costume to (コスチューム3 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [12]> then\n        point in direction (90)\n        switch costume to (コスチューム4 v)\n    end\n    if <(ステージのコスチューム番号) = [13]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [16]> then\n        point in direction (90)\n        switch costume to (コスチューム5 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [17]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [18]> then\n        point in direction (90)\n        switch costume to (コスチューム6 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [19]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [20]> then\n        point in direction (90)\n        switch costume to (コスチューム7 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [21]> then\n        point in direction (90)\n        switch costume to (コスチューム8 v)\n    end\n    if <(ステージのコスチューム番号) = [22]> then\n        point in direction (90)\n        switch costume to (コスチューム9 v)\n    end\n    if <(ステージのコスチューム番号) = [23]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [25]> then\n        point in direction (90)\n        switch costume to (コスチューム10 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [26]> then\n        switch costume to (コスチューム11 v)\n    end\n    if <(ステージのコスチューム番号) = [27]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [29]> then\n        switch costume to (コスチューム12 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [30]> then\n        switch costume to (コスチューム13 v)\n    end\n    if <(ステージのコスチューム番号) = [31]> then\n        switch costume to (コスチューム14 v)\n    end\n    if <(ステージのコスチューム番号) = [32]> then\n        switch costume to (コスチューム15 v)\n    end\n    if <(ステージのコスチューム番号) = [33]> then\n        switch costume to (コスチューム16 v)\n    end\n    if <(ステージのコスチューム番号) = [34]> then\n        switch costume to (コスチューム17 v)\n    end\n    if <(ステージのコスチューム番号) = [35]> then\n        switch costume to (コスチューム18 v)\n    end\n    if <(ステージのコスチューム番号) = [36]> then\n        hide\n    end\nend\n\nswitch costume to (コスチューム16 v)\ngo to x: (-13) y: (-50)\n\nset [ステージのコスチューム番号 v] to [22]\n\nwhen flag clicked\nforever\n    if <(死亡) = [1]> then\n        repeat until <(死亡) = [0]>\n            set [y v] to [0]\n            set [x v] to [0]\n        end\n    end\nend\n\n@スプライト3\n\nwhen flag clicked\nhide\nforever\n    if <(ステージのコスチューム番号) = [14]> then\n        go to x: (36) y: (28)\n        switch costume to (コスチューム1 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [15]> then\n        go to x: (36) y: (28)\n        switch costume to (コスチューム2 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [19]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [27]> then\n        go to x: (36) y: (28)\n        switch costume to (コスチューム3 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [28]> then\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    if <touching (プラット君 v)?> then\n        set [ghost v] effect to (60)\n    else\n        set [ghost v] effect to (0)\n    end\nend\n\n@水\n\nwhen flag clicked\nset [ステージのコスチューム番号 v] to [1]\nhide\nforever\n    if <touching (プラット君 v)?> then\n        if <(X) > [6]> then\n            set [x v] to [6]\n        end\n        if <(Y) > [8]> then\n            set [y v] to [8]\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(ステージのコスチューム番号) = [9]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (50) y: (-15)\n        switch costume to (コスチューム1 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [10]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-11) y: (42)\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [11]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-11) y: (42)\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [12]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-11) y: (42)\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [13]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-11) y: (42)\n        switch costume to (コスチューム3 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [14]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [21]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        go to x: (-17) y: (-36)\n        switch costume to (コスチューム4 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [22]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [23]> then\n        go to [front v] layer\n        go [backward v] (1) layers\n        switch costume to (コスチューム2 v)\n        set [ghost v] effect to (55)\n        show\n    end\n    if <(ステージのコスチューム番号) = [24]> then\n        hide\n    end\nend\n\n@クリア\n\nwhen flag clicked\nset [ステージのコスチューム番号 v] to [1]\nhide\nforever\n    if <(ステージのコスチューム番号) = [14]> then\n        go to x: (-14) y: (107)\n        show\n        switch costume to (クリア？ v)\n    end\n    if <(ステージのコスチューム番号) = [15]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [36]> then\n        go to [front v] layer\n        show\n        switch costume to (クリア！ v)\n    end\nend\n\n@コスチューム2\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\n\n@空の雲\n\nwhen I start as a clone\nshow\ngo to [back v] layer\nglide (pick random (3) to (10)) secs to x: (-276) y: (y position)\nhide\ndelete this clone\n\nwhen flag clicked\nclear graphic effects\nhide\nwait (3) seconds\nforever\n    switch costume to (pick random (1) to (3))\n    set [ghost v] effect to (pick random (20) to (50))\n    wait (0.2) seconds\n    create clone of (_myself_ v)\n    go to x: (276) y: (pick random (140) to (180))\nend\n\n@ハート星フォロー\n\nwhen flag clicked\nhide\nwait (3) seconds\nforever\n    wait (pick random (20) to (30)) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nclear graphic effects\nset size to (50) %\nshow\ngo to x: (-119) y: (113)\nrepeat (27)\n    change y by (-1)\nend\nwait (2) seconds\nrepeat (27)\n    change y by (1)\nend\nhide\n\n@コイン\n\nwhen flag clicked\ngo to [back v] layer\nhide\nwait (3) seconds\nshow\nswitch costume to (コスチューム1 v)\n\nwhen I receive [ｓ v]\nhide\nnext costume\nwait (1.2) seconds\nshow\n\nwhen I receive [チャリン v]\nchange [コイン（coin\) v] by (1)\nset [自分の記録（my record\) v] to ((自分の記録（my record\)) - (0.1))\nstart sound [Coin v]\nhide\n\nwhen flag clicked\nhide variable [コイン（coin\) v]\nset [コイン（coin\) v] to [0]\n\nwhen flag clicked\nforever\n    if <(ステージのコスチューム番号) = [27]> then\n        hide\n    end\nend\n\n@コイン2\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\n\n@加速\n\nwhen flag clicked\nset [ghost v] effect to (20)\nswitch costume to (コスチューム7 v)\nshow\nwait (3) seconds\nhide\nforever\n    if <(ステージのコスチューム番号) = [6]> then\n        switch costume to (コスチューム1 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [7]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [12]> then\n        switch costume to (コスチューム2 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [13]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [16]> then\n        switch costume to (コスチューム3 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [17]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [20]> then\n        switch costume to (コスチューム4 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [21]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [26]> then\n        switch costume to (コスチューム5 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [27]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [35]> then\n        switch costume to (コスチューム6 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [36]> then\n        hide\n    end\nend\n\n@鈍足\n\nwhen flag clicked\nset [ghost v] effect to (20)\nswitch costume to (コスチューム1 v)\nshow\nwait (3) seconds\nhide\nforever\n    if <(ステージのコスチューム番号) = [6]> then\n        show\n    end\n    if <(ステージのコスチューム番号) = [7]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [12]> then\n        switch costume to (コスチューム2 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [13]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [18]> then\n        switch costume to (コスチューム3 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [19]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [35]> then\n        switch costume to (コスチューム4 v)\n        show\n    end\n    if <(ステージのコスチューム番号) = [36]> then\n        hide\n    end\nend\n\n@ばね\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\nforever\n    if <(ステージのコスチューム番号) = [22]> then\n        switch costume to (コスチューム2 v)\n        go to x: (-40) y: (125)\n        show\n    end\n    if <(ステージのコスチューム番号) = [23]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [25]> then\n        switch costume to (コスチューム2 v)\n        go to x: (10) y: (-28)\n        show\n    end\n    if <(ステージのコスチューム番号) = [26]> then\n        switch costume to (コスチューム2 v)\n        go to x: (10) y: (-28)\n        show\n    end\n    if <(ステージのコスチューム番号) = [27]> then\n        hide\n    end\n    if <(ステージのコスチューム番号) = [33]> then\n        switch costume to (コスチューム2 v)\n        go to x: (10) y: (-28)\n        show\n    end\n    if <(ステージのコスチューム番号) = [34]> then\n        hide\n    end\nend\n\nwhen I receive [ピコん v]\nswitch costume to (コスチューム1 v)\nwait (0.2) seconds\nswitch costume to (コスチューム2 v)\n\n@スプライト4\n\nwhen flag clicked\nforever\n    if <(ステージのコスチューム番号) = [28]> then\n        show\n    else\n        hide\n    end\nend\n\n@スプライト6\n\nwhen flag clicked\nshow\nwait (3) seconds\nhide\n\n@スプライト5\n\nwhen flag clicked\nwait (3) seconds\nhide\n\n