Synesthesia - A Text Platformer

Instructions: This is the sequel to the Sushi Platformer! Here's the link if you haven't played it yet: https://scratch.mit.edu/projects/103676705/\n\n~~~~~~~~~~~~~~~~~D I R E C T I O N S~~~~~~~~~~~~~~~~~\n☆ use arrow keys (up, left, right) or WAD to navigate the sushi (keys down and S are not needed)\n☆ to replay a certain stage you're on, press "r"\n☆ to skip a level, press "p"\n☆ try to reach the right end of the table\n☆ avoid METAL spoons, forks, knives, chopsticks, etc (especially moving ones too)\n☆ the orangish-pinkish meat is sashimi! It's very bouncy ^^\n☆ the green paste is wasabi! it's sticky.. but you can walk through or on top of it (slowly)..\n☆ the dark brown liquid is soy sauce! it's very slippery and makes you move faster than normal (and you can't stop if u keep running)!\n       ***hint: if you want to go slow on the soy sauce, you have to \n                 "tap" on the arrow/WAD keys, not press down.\n☆ HELP THE SUSHIS ESCAPE THE RESTAURANT!! \n\n

@Stage\n\nwhen flag clicked\nforever\n    play sound [３ v] until done\nend\n\n@プレイヤー\n\nwhen flag clicked\nset [xx v] to [0]\nset [yy v] to [0]\nhide\n\ndefine prayer\nif <(！) = [0]> then\n    if <not <<<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<(mouse x) > [0]> and <mouse down?>>>> or <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<[0] > (mouse x)> and <mouse down?>>>>>> then\n        switch costume to (中央 v)\n    end\n    if <<<mouse down?> and <[50] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [x v] by (2)\n        switch costume to (プレイヤー右 v)\n    end\n    if <<<mouse down?> and <(mouse x) < [-50]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [x v] by (-2)\n        switch costume to (プレイヤー左 v)\n    end\n    set [x v] to ((x) * (0.77))\n    change x by (round (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 y by (1)\n                        end\n                    end\n                end\n            end\n        end\n    end\n    if <touching (ステージ v)?> then\n        壁\n    end\n    change [y v] by (-1.5)\n    change y by (y)\n    if <touching (ステージ v)?> then\n        床\n    end\n    change y by (-1)\n    if <<touching (ステージ v)?> and <<<mouse down?> and <[0] < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n        set [y v] to [20]\n        start sound [Low Whoosh v]\n    end\n    change y by (1)\n    change [scroll x v] by (round ((x position) / (10)))\n    change x by ((0) - ((round ((x position) / (10))) * <not <<(scroll x) < [0]> or <[4500] < (scroll x)>>>))\n    if <(scroll x) < [0]> then\n        set [scroll x v] to [0]\n    end\n    if <[4500] < (scroll x)> then\n        set [scroll x v] to [4500]\n    end\n    change [scroll y v] by (round ((y position) / (10)))\n    change y by ((0) - ((round ((y position) / (10))) * <not <(scroll y) < [0]>>))\n    if <(scroll y) < [0]> then\n        set [scroll y v] to [0]\n    end\n    if <<(y position) < [-150]> and <not <(scroll y) = [0]>>> then\n        set y to (-150)\n        change [y v] by (2)\n    end\nend\n\ndefine 初期化\nstart sound [Rip v]\nhide\nrepeat until <<([abs v] of ((scroll y) - (YY)) ) < [3]> and <([abs v] of ((scroll x) - (XX)) ) < [3]>>\n    change [scroll x v] by (round (((XX) - (scroll x)) / (5)))\n    change [scroll y v] by (round (((YY) - (scroll y)) / (5)))\nend\nset [x v] to [0]\nset [y v] to [0]\ngo to x: (0) y: (0)\nbroadcast (monster v)\nshow\n\ndefine 壁\nchange y by (-4)\nset [？ v] to [0]\nrepeat until <<[100] < (？)> or <not <touching (ステージ v)?>>>\n    change [？ v] by (1)\n    change x by ((-1) * ((x) / ([abs v] of (x) )))\nend\nif <<<mouse down?> and <[0] < (mouse y)>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    set [y v] to [20]\n    start sound [Low Whoosh v]\n    set [x v] to ((-10) * ((x) / ([abs v] of (x) )))\nelse\n    set [x v] to [0]\nend\n\ndefine 床\nset [？ v] to [0]\nrepeat until <<[100] < (？)> or <not <touching (ステージ v)?>>>\n    change [？ v] by (1)\n    change y by ((-1) * ((y) / ([abs v] of (y) )))\nend\nset [y v] to [0]\n\nwhen I receive [start v]\nshow\nset [！ v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\ngo to x: (0) y: (50)\nset [x v] to [0]\nset [y v] to [0]\nforever\n    prayer\nend\n\nwhen I receive [start v]\nforever\n    set size to (80) %\n    if <<<mouse down?> and <[50] < (mouse x)>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (プレイヤー右 v)\n    end\n    if <<<mouse down?> and <(mouse x) < [-50]>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (プレイヤー左 v)\n    end\nend\n\nwhen I receive [start v]\nset [！ v] to [0]\nforever\n    if <<(y position) < [-180]> or <touching (とげとげ v)?>> then\n        set [！ v] to [1]\n        初期化\n        set [！ v] to [0]\n    end\nend\n\nwhen I receive [初期化 v]\nset [！ v] to [1]\n初期化\nset [！ v] to [0]\n\nwhen I receive [クリア v]\nhide\n\n@チェックポイント\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (scroll x)) y: ((2) - (scroll y))\n    if <<(x position) = ((1) - (scroll x))> and <(y position) = ((2) - (scroll y))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\n配置 [1985] [90] [1]\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        start sound [Collect v]\n        set [xx v] to (1)\n        set [yy v] to (2)\n        change [3 v] by (1)\n        stop [this script v]\n    end\nend\n\n@ゴール\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (scroll x)) y: ((2) - (scroll y))\n    if <<(x position) = ((1) - (scroll x))> and <(y position) = ((2) - (scroll y))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\n配置 [4150] [453] [1]\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        start sound [Magic Spell v]\n        set [xx v] to (1)\n        set [yy v] to (2)\n        change [3 v] by (1)\n        set [！ v] to [1]\n        broadcast (クリア v)\n        stop [this script v]\n    end\nend\n\n@ステージ\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (scroll x)) y: ((2) - (scroll y))\n    if <<(x position) = ((1) - (scroll x))> and <(y position) = ((2) - (scroll y))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen flag clicked\nhide\n配置 [0] [0] [1]\n配置 [500] [0] [2]\n配置 [1000] [0] [3]\n配置 [1500] [0] [4]\n配置 [1850] [0] [5]\n配置 [2400] [200] [6]\n配置 [3000] [200] [7]\n配置 [3300] [100] [8]\n配置 [3700] [100] [9]\n\n@コイン\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [start v]\nswitch costume to (1 v)\n配置 [-100] [-75] [1]\n配置 [280] [40] [1]\n配置 [450] [40] [1]\n配置 [545] [-42] [1]\n配置 [675] [220] [1]\n配置 [1050] [-5] [1]\n配置 [1110] [-15] [1]\n配置 [1170] [-5] [1]\n配置 [1632] [30] [1]\n配置 [2380] [103] [1]\n配置 [2800] [443] [1]\n配置 [3200] [170] [1]\n配置 [3300] [170] [1]\n配置 [3398] [170] [1]\nswitch costume to (0 v)\n\nwhen I start as a clone\nwait (0.01) seconds\nforever\n    if <touching (プレイヤー v)?> then\n        start sound [Coin v]\n        change [coin v] by (1)\n        repeat (5)\n            change [ghost v] effect by (10)\n            change size by (((0) - (size)) / (4))\n        end\n        stop [other scripts in sprite v]\n        change [2 v] by (30)\n        clear graphic effects\n        switch costume to (+1 v)\n        go to [front v] layer\n        set size to (100) %\n        repeat (20)\n            移動 ((1) - (scroll x)) ((2) - (scroll y))\n            change size by ((((0) - (size)) + (-5)) / (10))\n            change [ghost v] effect by (5)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [モンスターコイン v]\nif <(costume [number v]) = [1]> then\n    wait (0.5) seconds\n    配置 (monster coin X) ((monster coin Y) + (10)) [1]\nend\n\nwhen I start as a clone\nforever\n    switch costume to (1 v)\n    repeat until <(costume [number v]) = [9]>\n        wait (0.05) seconds\n        next costume\n    end\nend\n\ndefine 移動 (ｘ) (ｙ)\ngo to x: (ｘ) y: (ｙ)\nif <<(x position) = (ｘ)> and <(y position) = (ｙ)>> then\n    show\nelse\n    hide\nend\n\nwhen I start as a clone\nforever\n    移動 ((1) - (scroll x)) (((2) - (scroll y)) + (yショック))\nend\n\nwhen I receive [切り替え v]\ndelete this clone\n\n@チェックポイント2\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [back v] layer\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (scroll x)) y: ((2) - (scroll y))\n    if <<(x position) = ((1) - (scroll x))> and <(y position) = ((2) - (scroll y))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen I receive [start v]\nhide\n配置 [3070] [445] [1]\n\nwhen I start as a clone\nforever\n    if <touching (プレイヤー v)?> then\n        start sound [Collect v]\n        set [xx v] to (1)\n        set [yy v] to (2)\n        change [3 v] by (1)\n        stop [this script v]\n    end\nend\n\n@スプライト1\n\nwhen flag clicked\ngo to [front v] layer\nshow\n\nwhen this sprite clicked\nstart sound [Collect v]\nbroadcast (START v)\nhide\n\n@スプライト2\n\nwhen I receive [クリア v]\nwait (1) seconds\ngo to [front v] layer\nshow\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@とげとげ\n\nwhen I start as a clone\nforever\n    switch costume to (コスチューム1 v)\n    go to x: ((1) - (scroll x)) y: ((2) - (scroll y))\n    if <<(x position) = ((1) - (scroll x))> and <(y position) = ((2) - (scroll y))>> then\n        show\n    else\n        hide\n    end\n    switch costume to ((1) + (3))\nend\n\nwhen flag clicked\ngo to [back v] layer\nhide\n配置 [400] [15] [1]\n配置 [1000] [0] [2]\n配置 [1500] [0] [3]\n配置 [1800] [0] [4]\n配置 [2000] [0] [5]\n配置 [2500] [300] [6]\n配置 [3000] [200] [7]\n配置 [3500] [0] [8]\n配置 [4000] [0] [9]\n配置 [4500] [0] [10]\n\ndefine 配置 (x) (y) (コスチューム)\nset [1 v] to (x)\nset [2 v] to (y)\nset [3 v] to (コスチューム)\ncreate clone of (_myself_ v)\n\n@オンライン\n\nwhen I receive [オンライン v]\nset [online v] to [1]\nwait (1) seconds\nset [☁ 1p v] to [0]\nset [☁ 2p v] to [0]\nset [☁ 3p v] to [0]\nset [☁ 4p v] to [0]\nset [☁ 5p v] to [0]\nset [☁ 6p v] to [0]\nset [☁ 7p v] to [0]\nset [☁ 8p v] to [0]\nset [☁ 9p v] to [0]\nset [☁ 10p v] to [0]\nset [1p？ v] to [0]\nwait (1) seconds\nif <(☁ 1p) = [0]> then\n    ユーザー名数値化\n    forever\n        set [1p？ v] to [1]\n        set [☁ 1p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n    end\nelse\n    if <(☁ 2p) = [0]> then\n        ユーザー名数値化\n        forever\n            set [1p？ v] to [2]\n            set [☁ 2p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n        end\n    else\n        if <(☁ 3p) = [0]> then\n            ユーザー名数値化\n            forever\n                set [1p？ v] to [3]\n                set [☁ 3p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n            end\n        else\n            if <(☁ 4p) = [0]> then\n                ユーザー名数値化\n                forever\n                    set [1p？ v] to [4]\n                    set [☁ 4p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                end\n            else\n                if <(☁ 5p) = [0]> then\n                    ユーザー名数値化\n                    forever\n                        set [1p？ v] to [5]\n                        set [☁ 5p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                    end\n                else\n                    if <(☁ 6p) = [0]> then\n                        ユーザー名数値化\n                        forever\n                            set [1p？ v] to [6]\n                            set [☁ 6p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                        end\n                    else\n                        if <(☁ 7p) = [0]> then\n                            ユーザー名数値化\n                            forever\n                                set [1p？ v] to [7]\n                                set [☁ 7p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                            end\n                        else\n                            if <(☁ 8p) = [0]> then\n                                ユーザー名数値化\n                                forever\n                                    set [1p？ v] to [8]\n                                    set [☁ 8p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                                end\n                            else\n                                if <(☁ 9p) = [0]> then\n                                    ユーザー名数値化\n                                    forever\n                                        set [1p？ v] to [9]\n                                        set [☁ 9p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                                    end\n                                else\n                                    if <(☁ 10p) = [0]> then\n                                        ユーザー名数値化\n                                        forever\n                                            set [1p？ v] to [10]\n                                            set [☁ 10p v] to (join (user2) (join (join ((1500) + ((scroll x) + ([x position v] of [プレイヤー v]))) (((scroll y) + ([y position v] of [プレイヤー v])) + (1500))) (join (([costume # v] of [プレイヤー v]) + (10)) (join ((chat) + (10)) (join (letter (length of ([floor v] of (timer) )) of ([floor v] of (timer) )) (！))))))\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nbroadcast (オンライン！ v)\nforever\nend\n\ndefine ユーザー名数値化\nset [user v] to [0]\nset [user2 v] to []\nrepeat (length of (username))\n    change [user v] by (1)\n    switch costume to (letter (user) of (username))\n    set [user2 v] to (join (user2) (costume [number v]))\nend\nrepeat ((40) - (length of (user2)))\n    set [user2 v] to (join (user2) [0])\nend\n\nwhen I receive [オンライン v]\nbroadcast (言う v)\nforever\n    復元1\nend\n\ndefine 復元1\ndelete all of [user v]\nset [% v] to [0]\nrepeat (10)\n    switch costume to ( v)\n    change [% v] by (1)\n    set [〜 v] to [0]\n    set [4 v] to []\n    repeat (20)\n        if <not <(join (letter ((〜) + (1)) of (item (%) of [p1〜10 v])) (letter ((〜) + (2)) of (item (%) of [p1〜10 v]))) = [00]>> then\n            change [〜 v] by (2)\n            switch costume to (join (letter ((〜) - (1)) of (item (%) of [p1〜10 v])) (letter (〜) of (item (%) of [p1〜10 v])))\n            set [4 v] to (join (4) (costume [name v]))\n        end\n    end\n    add (4) to [user v]\nend\n\nwhen flag clicked\nforever\n    delete all of [p1〜10 v]\n    add (☁ 1p) to [p1〜10 v]\n    add (☁ 2p) to [p1〜10 v]\n    add (☁ 3p) to [p1〜10 v]\n    add (☁ 4p) to [p1〜10 v]\n    add (☁ 5p) to [p1〜10 v]\n    add (☁ 6p) to [p1〜10 v]\n    add (☁ 7p) to [p1〜10 v]\n    add (☁ 8p) to [p1〜10 v]\n    add (☁ 9p) to [p1〜10 v]\n    add (☁ 10p) to [p1〜10 v]\nend\n\nwhen I receive [オンライン！ v]\nforever\n    delete all of [1〜10 2 v]\n    add (☁ 1p) to [1〜10 2 v]\n    add (☁ 2p) to [1〜10 2 v]\n    add (☁ 3p) to [1〜10 2 v]\n    add (☁ 4p) to [1〜10 2 v]\n    add (☁ 5p) to [1〜10 2 v]\n    add (☁ 6p) to [1〜10 2 v]\n    add (☁ 7p) to [1〜10 2 v]\n    add (☁ 8p) to [1〜10 2 v]\n    add (☁ 9p) to [1〜10 2 v]\n    add (☁ 10p) to [1〜10 2 v]\n    wait (1.5) seconds\n    if <(letter (53) of (item (1) of [p1〜10 v])) = (letter (53) of (item (1) of [1〜10 2 v]))> then\n        set [☁ 1p v] to [0]\n    end\n    if <(letter (53) of (item (2) of [p1〜10 v])) = (letter (53) of (item (2) of [1〜10 2 v]))> then\n        set [☁ 2p v] to [0]\n    end\n    if <(letter (53) of (item (3) of [p1〜10 v])) = (letter (53) of (item (3) of [1〜10 2 v]))> then\n        set [☁ 3p v] to [0]\n    end\n    if <(letter (53) of (item (4) of [p1〜10 v])) = (letter (53) of (item (4) of [1〜10 2 v]))> then\n        set [☁ 4p v] to [0]\n    end\n    if <(letter (53) of (item (5) of [p1〜10 v])) = (letter (53) of (item (5) of [1〜10 2 v]))> then\n        set [☁ 5p v] to [0]\n    end\n    if <(letter (53) of (item (6) of [p1〜10 v])) = (letter (53) of (item (6) of [1〜10 2 v]))> then\n        set [☁ 6p v] to [0]\n    end\n    if <(letter (53) of (item (7) of [p1〜10 v])) = (letter (53) of (item (7) of [1〜10 2 v]))> then\n        set [☁ 7p v] to [0]\n    end\n    if <(letter (53) of (item (8) of [p1〜10 v])) = (letter (53) of (item (8) of [1〜10 2 v]))> then\n        set [☁ 8p v] to [0]\n    end\n    if <(letter (53) of (item (9) of [p1〜10 v])) = (letter (53) of (item (9) of [1〜10 2 v]))> then\n        set [☁ 9p v] to [0]\n    end\n    if <(letter (53) of (item (10) of [p1〜10 v])) = (letter (53) of (item (10) of [1〜10 2 v]))> then\n        set [☁ 10p v] to [0]\n    end\nend\n\nwhen flag clicked\nbroadcast (オンライン v)\n\n@スプライト8\n\nwhen flag clicked\ngo to x: (114) y: (-116)\nset [ghost v] effect to (100)\n\nwhen I receive [start v]\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (-5)\nend\nwait (3) seconds\nshow\nrepeat (25)\n    change [ghost v] effect by (5)\nend\n\nwhen this sprite clicked\nplay sound [ポップ v] until done\n\nwhen I receive [スタート v]\nrepeat (25)\n    change [ghost v] effect by (5)\nend\nif <[3] < (ターボ)> then\n    hide\nelse\n    go to [front v] layer\n    show\nend\n\nwhen I receive [バック v]\ngo to [front v] layer\nrepeat (25)\n    change [ghost v] effect by (-5)\nend\n\n