BLOCKY || A scrolling platformer

Instructions: ✪✪✪✪✪✪BLOCKY || A scrolling platformer✪✪✪✪✪✪✪ \n\nWelcome to BLOCKY, a game made out of only one shape, the shapes may be wider or thicker than the original but they all came from the same shape\n\n⚠️WARNING⚠️\nI will close comments if I get too many people saying stuff like:\n"I can see many different shapes there"\nor:\n"their not all made from the same shape, your lying"\n\notherwise this is a test game so feel free to comment what you think

@Stage\n\n@blanc\n\nwhen flag clicked\nforever\n    play sound [JJD - Adventure \[NCS Release\] v] until done\nend\n\n@levels2\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\ngo to [back v] layer\n\nwhen I receive [setup v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [360] y: [100]\n        Clone at x: [360] y: [100]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume5 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume9 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                end\n            end\n        end\n    end\nend\n\nswitch costume to (end v)\n\nClone at x: [400] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nset [level v] to [3]\n\nwhen I receive [start menu v]\nhide\n\nshow\n\nhide\n\nshow\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nforever\n    hide\nend\n\n@levels\n\nwhen I receive [green flag v]\nshow\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nshow\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [180]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [360] y: [100]\n        Clone at x: [360] y: [100]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume4 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume9 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                end\n            end\n        end\n    end\nend\n\nswitch costume to (end v)\n\nClone at x: [400] y: [0]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\n\nset [level v] to [3]\n\nwhen I receive [start menu v]\nhide\n\nshow\n\nhide\n\nwhen flag clicked\nhide\n\nif <key (space v) pressed?> then\n    show\nend\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen I receive [play game v]\n\nforever\n\ngo to [back v] layer\n\nif <(LEVEL) = [3]> then\n    broadcast (Outro v)\nend\n\nwhen I receive [outro v]\nrepeat (50)\n    hide\nend\n\nforever\n\nwhen I receive [outro v]\nforever\n    hide\nend\n\nwhen flag clicked\nbroadcast (Play Game v)\n\nset [y v] to [0]\n\nset [y v] to [0]\n\n@lava\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (([sin v] of ((timer) * (300)) ) * (7)))\nif <touching (you v)?> then\n    broadcast (headed v)\nend\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (level 3 1 v)\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n            Clone at x: [360] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume5 v)\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n                Clone at x: [360] y: [0]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume9 v)\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                    Clone at x: [360] y: [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        broadcast (Outro v)\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nforever\n\nwhen I receive [bring the action! v]\n\nforever\n\nwhen I receive [bring the action! v]\n\nforever\n\nwhen I receive [headed v]\nstart sound [fatality v]\nwait until <not <touching (you v)?>>\n\nswitch costume to (end v)\n\nwhen I receive [outro v]\nhide\n\n@you\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\nset size to (150) %\npoint in direction (90)\n\ncreate clone of (_myself_ v)\n\nwhen I receive [play game v]\nshow\nhide variable [mouse v]\nset [ghost v] effect to (0)\nswitch costume to (costume1 v)\nset [level v] to [1]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        Tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [win]> then\n        Game - Win\n    else\n        Game - Die\n    end\nend\n\ndefine Game On\nset size to (80) %\npoint in direction (90)\nset [ghost v] effect to (0)\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nshow\n\ndefine Tick\nset rotation style [left-right v]\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < (x position)>>> then\n    point in direction (-90)\n    Change Player x by [-7]\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(x position) < (mouse x)>>> then\n    point in direction (90)\n    Change Player x by [7]\nend\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(y position) < (mouse y)>>> then\n    if <(in air) < [4]> then\n        set [sy v] to [20]\n    end\nend\nchange [sy v] by (-2)\nChange Player y by (sy)\nPosition\nTest - Die\nchange [scroll x v] by (round (((x) - (SCROLL X)) / (30)))\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (5)))\nif <(SCROLL Y) < [5]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\nswitch costume to (costume2 v)\n\nswitch costume to (costume1 v)\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <<not <touching (levels v)?>> and <not <touching (moving platforms v)?>>>\n    if <(sy) > [0]> then\n        change [y v] by (-0.5)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <<touching (levels v)?> or <touching (moving platforms v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (levels v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    repeat until <not <<touching (levels v)?> and <not <touching (moving platforms v)?>>>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\ndefine Game - Die\nset [exit v] to []\nclear graphic effects\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nwait (0.5) seconds\n\ndefine Test - Die\nif <<touching (lava v)?> or <<touching (coins2 v)?> and <(DAI) = [1]>>> then\n    set [exit v] to [die]\nend\n\nchange [ghost v] effect by (10)\nset [scroll y v] to [0]\n\ndefine Game - Win\nhide\nchange [level v] by (1)\n\nwait (0.009) seconds\nshow\n\nwhen I receive [start game v]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to ([costume # v] of [costume selection v])\n\nswitch costume to (costume2 v)\n\nswitch costume to (([costume # v] of [costume selection v]) - (1))\n\nswitch costume to ([costume # v] of [costume selection v])\n\nwhen I receive [die v]\ngo to x: (0) y: (-62)\n\nwhen flag clicked\n\nbroadcast (Play Game v)\n\nhide\n\nshow\n\nrepeat (2)\n    change size by (-25)\nend\nwait (0.1) seconds\nrepeat (2)\n    change size by (25)\nend\nwait (0.1) seconds\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nif <<touching (moving enemies v)?> and <(DAI) = [1]>> then\n\nwhen I receive [hehe v]\nChange Player y by [6]\n\nwhen I receive [setup v]\nswitch costume to (LEVEL)\n\nwhen flag clicked\n\nforever\nend\n\nplay sound [526063_Heretical-Mysticism.mp3 v] until done\n\nchange [x v] by (8)\n\nif  then\nend\n\nwhen I receive [play game v]\nset [y v] to [0]\nset [x v] to [0]\n\nGame - Die\n\n@coins\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (([sin v] of ((timer) * (100)) ) * (10)))\nif <touching (you v)?> then\n    start sound [Coin v]\n    change [collected v] by (1)\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nswitch costume to (coin v)\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [200] y: [0]\n    Clone at x: [400] y: [0]\n    Clone at x: [500] y: [200]\n    Clone at x: [600] y: [50]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [-210] y: [-50]\n        Clone at x: [400] y: [250]\n        Clone at x: [550] y: [350]\n        Clone at x: [1400] y: [100]\n    else\n        if <(LEVEL) = [3]> then\n            set [color v] effect to (-20)\n            Clone at x: [340] y: [150]\n            Clone at x: [806] y: [0]\n            Clone at x: [1370] y: [0]\n        else\n            if <(LEVEL) = [4]> then\n                set [color v] effect to (70)\n                Clone at x: [500] y: [0]\n                Clone at x: [1495] y: [28]\n                Clone at x: [1600] y: [6]\n            else\n                if <(LEVEL) = [5]> then\n                    set [color v] effect to (70)\n                    Clone at x: [495] y: [100]\n                    Clone at x: [700] y: [28]\n                    Clone at x: [1200] y: [6]\n                end\n            end\n        end\n    end\nend\nset [x v] to [-999999999999999]\n\nClone at x: [850] y: [50]\nset [color v] effect to (60)\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nchange [collected max v] by (1)\n\nwhen I receive [tick v]\nif <(COLLECTED) = (COLLECTED MAX)> then\n    broadcast (open portal v)\nend\nnext costume\n\nwhen I start as a clone\nif <touching (you v)?> then\n    change [collected v] by (1)\n    delete this clone\nend\n\nClone at x: [715] y: [40]\nClone at x: [1100] y: [110]\n\nswitch costume to (coin v)\n\nswitch costume to (coin v)\n\ndelete this clone\n\nwhen I receive [elsa v]\nstop [other scripts in sprite v]\n\nwhen I receive [elsa v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [elsa v]\n\nforever\n    next costume\n    hide\n    stop [other scripts in sprite v]\nend\n\nClone at x: [795] y: [55]\nClone at x: [1634] y: [-70]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nClone at x: [1370] y: [115]\n\n@exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) (((y) - (SCROLL Y)) + (([sin v] of ((timer) * (400)) ) * (20)))\npoint in direction ((([cos v] of ((timer) * (400)) ) * (20)) + (90))\nif <<(costume [name v]) = [open]> and <touching (you v)?>> then\n    stop [other scripts in sprite v]\n    if <(broadcast) = [0]> then\n        broadcast (Transition v) and wait\n        set [broadcast v] to [1]\n    end\nend\n\nset [exit v] to [win]\n\nwhen I receive [setup v]\ngo to [back v] layer\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    go to [back v] layer\n    switch costume to (closed v)\n    Clone at x: [1800] y: [300]\nelse\n    if <(LEVEL) = [2]> then\n        set [color v] effect to (90)\n        clear graphic effects\n        go to [back v] layer\n        switch costume to (closed v)\n        Clone at x: [1550] y: [150]\n    else\n        if <(LEVEL) = [3]> then\n            set [color v] effect to (140)\n            clear graphic effects\n            go to [back v] layer\n            switch costume to (closed v)\n            Clone at x: [1550] y: [150]\n        else\n            if <(LEVEL) = [4]> then\n                set [color v] effect to (40)\n                go to [back v] layer\n                switch costume to (closed v)\n                Clone at x: [1700] y: [-5]\n            else\n                if <(LEVEL) = [5]> then\n                    set [color v] effect to (40)\n                    go to [back v] layer\n                    switch costume to (closed v)\n                    Clone at x: [2000] y: [-5]\n                else\n                    set [x v] to [-999999999]\n                end\n            end\n        end\n    end\nend\n\nset [x v] to [-999999999]\n\nif <(LEVEL) = [3]> then\n    switch costume to (closed v)\n    Clone at x: [30] y: [393]\nend\n\nClone at x: [240] y: [16]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset [broadcast v] to [0]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [open portal v]\nswitch costume to (open v)\n\nClone at x: [1317] y: [16]\nClone at x: [240] y: [16]\n\nset [y v] to (y)\n\nset [exit v] to [win]\n\nswitch costume to (closed v)\n\nset [x v] to [-999999999]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nwhen I receive [bring the action! v]\nbroadcast (Play Game v)\n\nwhen I receive [outro v]\nhide\n\nbroadcast (Transition v)\n\n@coins2\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition (((x) - (SCROLL X)) + (([sin v] of ((timer) * (50)) ) * (80))) ((y) - (SCROLL Y))\nif <touching (you v)?> then\n    set [dai v] to [1]\nend\n\nif <([y v] of [you v]) > ((y position) + (5))> then\n    set [dai v] to [0]\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\nswitch costume to (coin v)\nset [collected v] to [0]\nset [collected max v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [10000] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [1400] y: [45]\n    else\n        if <(LEVEL) = [3]> then\n            set [color v] effect to (-20)\n        else\n        end\n    end\nend\nset [x v] to [-999999999999999]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nchange [collected max v] by (1)\n\nwhen I receive [tick v]\n\nif <(COLLECTED) = (COLLECTED MAX)> then\n    broadcast (open portal v)\nend\nnext costume\n\nwhen I start as a clone\nif <touching (you v)?> then\n    change [collected v] by (1)\n    delete this clone\nend\n\nClone at x: [715] y: [40]\nClone at x: [1100] y: [110]\n\nswitch costume to (coin v)\n\nswitch costume to (coin v)\n\ndelete this clone\n\nwhen I receive [elsa v]\nstop [other scripts in sprite v]\n\nwhen I receive [elsa v]\nhide\nstop [other scripts in sprite v]\n\nwhen I receive [elsa v]\n\nforever\n    next costume\n    hide\n    stop [other scripts in sprite v]\nend\n\nClone at x: [795] y: [55]\nClone at x: [1634] y: [-70]\n\nwhen I receive [outro v]\nstop [other scripts in sprite v]\nstop [this script v]\n\nwhen flag clicked\nhide\n\nClone at x: [1370] y: [115]\n\nClone at x: [400] y: [0]\nClone at x: [500] y: [200]\nClone at x: [600] y: [50]\nClone at x: [850] y: [50]\nClone at x: [1300] y: [-50]\n\nClone at x: [-210] y: [-50]\n\nset [color v] effect to (60)\n\nClone at x: [400] y: [0]\n\nstart sound [Coin v]\nchange [collected v] by (1)\ndelete this clone\n\n@THUMBNAIL\n\nwhen flag clicked\nwait (0.5) seconds\nclear graphic effects\ngo to [front v] layer\ngo to x: (0) y: (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\n@transide\n\nwhen flag clicked\n\nwhen I start as a clone\nshow\nclear graphic effects\nif <(costume [number v]) = [1]> then\n    go to x: (-300) y: (300)\nelse\n    if <(costume [number v]) = [2]> then\n        go to x: (300) y: (300)\n    else\n        if <(costume [number v]) = [3]> then\n            go to x: (300) y: (-300)\n        else\n            go to x: (-300) y: (-300)\n        end\n    end\nend\nset [ghost v] effect to (100)\nstart sound [Low Whoosh v]\nrepeat (14)\n    change [ghost v] effect by (-10)\n    change [color v] effect by (5)\n    change x by (((0) - (x position)) / (3))\n    change y by (((0) - (y position)) / (3))\nend\ngo to x: (0) y: (0)\nwait (0.5) seconds\nif <(costume [number v]) = [1]> then\n    set [exit v] to [win]\nend\nstart sound [Zoop v]\nrepeat (10)\n    change x by (((costume [number v]) - (2.5)) * (-20))\n    change y by (((costume [number v]) - (2.5)) * (-20))\n    change [color v] effect by (5)\n    change [ghost v] effect by (10)\nend\n\nwait (0.1) seconds\n\nchange x by (10)\n\nwhen I receive [transition v]\nswitch costume to (costume2 v)\nhide\nrepeat (4)\n    create clone of (_myself_ v)\n    next costume\n    wait (0.1) seconds\nend\n\n