Lost in a Candy World || A Scrolling Platformer 

Instructions: YAY #34 on trending games! Can we get it up to #16 ? Thanks so much!!!!!!\nHello there! \nMay I present to you, after many long hours, my newest (and greatest) platformer….\nLost in a Candy World!\n                      ♦︎♦︎♦︎ Controls♦︎♦︎♦︎\n\n✔︎Arrow keys to move.\n✔︎W-A-D keys to move.\n(Sorry there are no mobile controls yet but I will add them if people want me to.)\n✔︎M key to mute.\n✔︎U key to unmute.\n\n                      ♦︎♦︎♦︎Instructions♦︎♦︎♦︎\n✔︎Avoid spikes.\n✔︎Avoid lava.\n✔︎Collect ALL the coins and proceed to the portal.\n\nWith perseverance and patience all levels are 100% possible. I tested it out.\n\nUmmm yeah there is nothing more to really say. It's pretty self-explanatory. You will also receive instructions in the game.\n                       ♦︎♦︎♦︎Story♦︎♦︎♦︎\nThe world has lost all its candy and is now doomed to eternal misery. (Yes very dramatic.) You are the Chosen One and have been tasked with bringing back the candy to the world and with it, happiness.\n\n(Why am I so bad at telling stories??)\nComment if you get to the end! (Idk why I just want to know =D)\nPLS DO NOT ASK TO MAKE THE GAME EASIER! I have another game I'm working on and want to make that the best it can be.

@Stage\n\nwhen I receive [setup v]\nif <(LEVEL) = [1]> then\n    switch backdrop to (candy v)\nelse\n    if <(LEVEL) = [2]> then\n        switch backdrop to (halloween v)\n    else\n        if <(LEVEL) = [3]> then\n            switch backdrop to (christmas v)\n        else\n            if <(LEVEL) = [4]> then\n                switch backdrop to (lvl 4 v)\n            end\n        end\n    end\nend\n\nwhen [m v] key pressed\n\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [, ] ((mouse y) + (SCROLL Y))))\nshow variable [mouse v]\n\nwhen flag clicked\nswitch backdrop to (pink v)\n\n@Blank\n\n@Player\n\nwhen I receive [tick v]\nset [color v] effect to (COLOR)\nif <(LEVEL) = [1]> then\n    set [color v] to [0]\nend\nif <(LEVEL) = [2]> then\n    set [color v] to [156]\nend\nif <(LEVEL) = [3]> then\n    set [color v] to [120]\nend\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n    switch costume to (player left v)\n    change [sx v] by (-2)\nend\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    switch costume to (player right v)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n    if <(in air) < [4]> then\n        set [sy v] to [16]\n    end\nend\nif <(sy) > [-20]> then\n    change [sy v] by (-2)\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\n\ndefine Game On\nset rotation style [left-right v]\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset size to (100) %\nset [ghost v] effect to (0)\nshow\n\nwhen I receive [play game 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        Clone [20]\n        Game - Die\n    end\nend\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\nswitch costume to (player forward v)\n\nwhen flag clicked\nwait (3) seconds\nbroadcast (Green Flag v) and wait\n\ndefine Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\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 Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    if <touching (launch pad v)?> then\n        if <(Faster Speed) = [1]> then\n            set [sy v] to [30]\n        else\n            set [sy v] to [27]\n        end\n    end\n    repeat until <not <touching (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 []\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\nend\nwait (0.5) seconds\nswitch costume to (player forward v)\n\nwhen flag clicked\nhide\n\ndefine Test - Die\nif <touching (danger v)?> then\n    set [exit v] to [die]\nend\n\nwhen flag clicked\nhide variable [collected v]\n\nwhen I receive [setup v]\n\ndefine Game - Win\nset rotation style [all around v]\nstart sound [Whiz v]\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\nclear graphic effects\nset rotation style [left-right v]\npoint in direction (90)\nswitch costume to (player forward v)\n\nwhen [timer v] > (0.1)\nhide\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Clone (num)\nrepeat (num)\n    create clone of (particles v)\nend\n\nwhen flag clicked\nforever\n    reset timer\nend\n\n@Platforms\n\nwhen I receive [setup v]\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: [700] y: [-100]\n    Clone at x: [400] y: [0]\n    Clone at x: [380] y: [0]\n    Clone at x: [0] y: [400]\n    Clone at x: [360] y: [-260]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (level 2 1 v)\n        Clone at x: [450] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [500] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [550] y: [0]\n        Clone at x: [530] y: [390]\n        Clone at x: [630] y: [300]\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: [750] y: [-100]\n            Clone at x: [360] y: [0]\n            Clone at x: [600] y: [200]\n            Clone at x: [620] y: [400]\n            Clone at x: [450] y: [400]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (level 4 1 v)\n                Clone at x: [580] y: [0]\n                Clone at x: [580] y: [0]\n                Clone at x: [580] y: [0]\n            end\n        end\n    end\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\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\nwhen flag clicked\nhide\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\n@Danger\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\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: [833] y: [75]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [0] y: [400]\n    Clone at x: [360] y: [-500]\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: [400] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [360] y: [0]\n        Clone at x: [500] y: [5]\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: [550] y: [0]\n            Clone at x: [450] y: [-80]\n            Clone at x: [700] y: [0]\n            Clone at x: [600] y: [200]\n            Clone at x: [650] y: [400]\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\nwhen flag clicked\ngo [backward v] (1) layers\nhide\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\n@Collectables\n\nwhen flag clicked\nforever\n    repeat (20)\n        change [y v] by (2)\n    end\n    repeat (20)\n        change [y v] by (-2)\n    end\nend\n\nwhen I receive [green flag v]\ngo to [front v] layer\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Collect v]\n    change [collected v] by (1)\n    if <(COLLECTED) = (COLLECTED MAX)> then\n        broadcast (Open Portal v)\n    end\n    delete this clone\nend\n\nwhen I receive [setup v]\nhide\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    switch costume to (candy v)\n    Clone at x: [687] y: [104]\n    Clone at x: [870] y: [-25]\n    Clone at x: [1086] y: [102]\n    Clone at x: [1915] y: [22]\n    Clone at x: [1832] y: [308]\n    Clone at x: [2261] y: [452]\n    Clone at x: [2855] y: [110]\n    Clone at x: [2213] y: [-35]\n    Clone at x: [2402] y: [9]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (candy corn v)\n        Clone at x: [-81] y: [90]\n        Clone at x: [86] y: [173]\n        Clone at x: [415] y: [-15]\n        Clone at x: [663] y: [117]\n        Clone at x: [797] y: [94]\n        Clone at x: [1038] y: [51]\n        Clone at x: [1416] y: [91]\n        Clone at x: [1503] y: [248]\n        Clone at x: [1706] y: [73]\n        Clone at x: [1995] y: [34]\n        Clone at x: [2494] y: [-1]\n        Clone at x: [2578] y: [472]\n        Clone at x: [3073] y: [681]\n        Clone at x: [3290] y: [781]\n        Clone at x: [3700] y: [960]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (mint v)\n            Clone at x: [-108] y: [-32]\n            Clone at x: [340] y: [-22]\n            Clone at x: [839] y: [-28]\n            Clone at x: [967] y: [-28]\n            Clone at x: [1031] y: [43]\n            Clone at x: [977] y: [255]\n            Clone at x: [223] y: [309]\n            Clone at x: [560] y: [159]\n            Clone at x: [1278] y: [132]\n            Clone at x: [1585] y: [143]\n            Clone at x: [1448] y: [-133]\n            Clone at x: [3094] y: [490]\n            Clone at x: [3556] y: [956]\n        else\n            if <(LEVEL) = [4]> then\n        end\n    end\nend\nset [x v] to [-99999]\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\nwhen flag clicked\nhide\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nchange [collected max v] by (1)\ncreate clone of (_myself_ v)\n\n@Exit\n\nwhen I receive [tick v]\nset [color v] effect to (COLOR)\n\nwhen I receive [green flag v]\ngo [backward v] (10) layers\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<(costume [name v]) = [Open]> and <touching (player v)?>> then\n    set [exit v] to [win]\nend\n\nwhen I receive [setup v]\nhide\nset [collected v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone at x: [2609] y: [17]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (closed v)\n        Clone at x: [3796] y: [972]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (closed v)\n            Clone at x: [3757] y: [955]\n        else\n            set [x v] to [-99999]\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\nwhen flag clicked\nhide\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]\nclear sound effects\nswitch costume to (open v)\nplay sound [Doorbell v] until done\n\n@Play\n\nwhen flag clicked\nhide\ngo to x: (-40) y: (-120)\nshow\nforever\n    point in direction (90)\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n    else\n        switch costume to (2 v)\n    end\nend\n\nwhen I receive [play game v]\nswitch backdrop to (candy v)\nhide\n\nwhen flag clicked\nclear graphic effects\nshow\ngo to x: (0) y: (0)\n\nwhen this sprite clicked\nbroadcast (Play Game v)\n\nwhen flag clicked\nforever\n    if <touching (mouse-pointer v)?> then\n        set size to (120) %\n        repeat (10)\n            change [pixelate v] effect by (5)\n        end\n        repeat (10)\n            change [pixelate v] effect by (-5)\n        end\n        wait until <not <touching (mouse-pointer v)?>>\n    else\n        clear graphic effects\n    end\nend\n\nwhen this sprite clicked\nstop all sounds\nwait (0.5) seconds\nforever\n    play sound [Tobu - Candyland v] until done\nend\n\nwhen flag clicked\nwait (4) seconds\nstop all sounds\nset volume to (100) %\nrepeat until <<mouse down?> and <touching (mouse-pointer v)?>>\n    play sound [Dance Energetic v] until done\nend\nbroadcast (play button clicked v)\n\nwhen [m v] key pressed\nif <(volume) = [100]> then\n    set volume to (0) %\nend\n\nwhen [u v] key pressed\nif <(volume) = [0]> then\n    set volume to (100) %\nend\n\n@Effect\n\nwhen flag clicked\nhide\nrepeat (7)\n    wait (0.2) seconds\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(pick random (1) to (2)) = [1]> then\n    forever\n        turn right (1) degrees\n    end\nelse\n    forever\n        turn left (1) degrees\n    end\nend\n\nwhen I start as a clone\nshow\ngo to [front v] layer\nswitch costume to (pick random (1) to (3))\ngo to x: (pick random (-240) to (240)) y: (180)\npoint in direction (pick random (1) to (360))\nrepeat (72)\n    change y by (-5)\nend\ndelete this clone\n\n@Text\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (world out of candy v)\n    Clone at x: [0] y: [0]\n    switch costume to (collect these v)\n    Clone at x: [668] y: [20]\n    switch costume to (there r also spikes v)\n    Clone at x: [1541] y: [0]\n    switch costume to (jump in here! v)\n    Clone at x: [2594] y: [0]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (halloween themed v)\n        Clone at x: [390] y: [231]\n        switch costume to (lava pit!! v)\n        Clone at x: [782] y: [-2]\n        switch costume to (don't look down! v)\n        Clone at x: [1339] y: [231]\n        switch costume to (lollipop walk v)\n        Clone at x: [2790] y: [582]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (its christmas now v)\n            Clone at x: [29] y: [57]\n            switch costume to (candy cane walk v)\n            Clone at x: [2553] y: [459]\n            switch costume to (costume1 v)\n            Clone at x: [3089] y: [562]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume2 v)\n                Clone at x: [142] y: [105]\n                switch costume to (costume3 v)\n                Clone at x: [671] y: [91]\n                switch costume to (costume4 v)\n                Clone at x: [1304] y: [66]\n                switch costume to (costume5 v)\n                Clone at x: [1804] y: [72]\n            end\n        end\n    end\nend\nset [x v] to [-99999]\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\nwhen flag clicked\nhide\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\n@Decor\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [play game v]\ngo [backward v] (10) layers\nshow\ngo to x: (0) y: (0)\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [green flag v]\nhide\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 [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (sign lvl 1 v)\n    Clone at x: [-127] y: [0]\n    switch costume to (lollipops lvl 1 v)\n    Clone at x: [487] y: [-36]\n    Clone at x: [1864] y: [222]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (sign blue lvl 2 v)\n        Clone at x: [] y: []\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (sign green lvl 3 v)\n            Clone at x: [] y: []\n            switch costume to (arrow lvl 3 v)\n            Clone at x: [392] y: [214]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (lvl 4 v)\n            end\n        end\n    end\nend\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nwait (3) seconds\nrepeat (25)\n    change [ghost v] effect by (4)\nend\nset [ghost v] effect to (100)\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo to [front v] layer\nshow\nplay sound [Wand v] until done\n\n@Particles\n\nwhen I start as a clone\ngo to (player v)\nset [xv v] to (pick random (-10) to (10))\nclear graphic effects\nshow\nset size to (pick random (80) to (120)) %\nset [color v] effect to (COLOR)\nset [yv v] to (pick random (5) to (30))\nrepeat (50)\n    change [yv v] by (-2)\n    go to x: ((x position) + (Xv)) y: ((y position) + (Yv))\n    change [ghost v] effect by (2)\n    if <touching (_edge_ v)?> then\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen [timer v] > (0.1)\nhide\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to [front v] layer\nwait (3.5) seconds\nshow\nrepeat until <(backdrop [number v]) = [2]>\n    repeat (10)\n        change size by (2)\n    end\n    wait (0.1) seconds\n    repeat (10)\n        change size by (-2)\n    end\nend\n\nwhen I receive [play game v]\nhide\n\n@Menu\n\nwhen flag clicked\nswitch costume to (costume1 v)\nhide\nwait (3) seconds\nshow\ngo to x: (10) y: (-120)\n\nwhen I receive [play game v]\nhide\n\nwhen this sprite clicked\nrepeat until <key (space v) pressed?>\n    switch costume to (instructions  v)\nend\n\nwhen flag clicked\ngo to [front v] layer\nforever\n    if <touching (mouse-pointer v)?> then\n        switch costume to (costume2 v)\n    end\n    if <not <touching (mouse-pointer v)?>> then\n        switch costume to (costume1 v)\n    end\nend\n\nwhen [space v] key pressed\nswitch costume to (costume1 v)\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen flag clicked\nhide\n\n@button\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <<touching (player v)?> and <(costume [number v]) = [1]>> then\n    change [☁ votes v] by (1)\n    switch costume to (costume2 v)\n    stop [this script v]\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\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [100000] y: [100000]\nelse\n    if <(LEVEL) = [2]> then\n        Clone at x: [100000] y: [100000]\n    else\n        if <(LEVEL) = [3]> then\n            Clone at x: [100000] y: [100000]\n        else\n            go [backward v] (20) layers\n            Clone at x: [170] y: [-15]\n        end\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I receive [tick v]\nif <touching (player v)?> then\n    show variable [☁ votes v]\nelse\n    hide variable [☁ votes v]\nend\n\nwhen I receive [green flag v]\nhide\n\n