Submerged - a scrolling platformer collab! #games #all

Instructions: ----------------------------------------------------------------------------\ntop loved! 1-11-21\n----------------------------------------------------------------------------\nPlay his version!!! https://scratch.mit.edu/projects/469942287/\n----------------------------------------------------------------------------\nI dared @sterlon to love... And he did >:)\n----------------------------------------------------------------------------\nSubmerged - a scrolling platformer collab\n----------------------------------------------------------------------------\nFeatures:\n----------------------------------------------------------------------------\n includes fun levels, many cool obstacles, nice art and best of all, a super cool shop with unique skins (most of them lol), all of them having their own special powers like super speed, fast accelerating, rainbow effect, invincibility, the ability to evaporate water, and magnetism. Pro tip: get magnetism upgrade and find the coin jackpot. Trust me. It's so satisfying to attract them! Comment if you found the jackpot in the comment section below! #games #all\n----------------------------------------------------------------------------\nInfo:\n----------------------------------------------------------------------------\n-Use keys up, right, left and down\n-Collect coins to buy upgrades\n-Find the star (located in the cave) to win\n-Try to get the fastest time possible, comment you time below\n-Have fun!\n----------------------------------------------------------------------------\nStuck? Need a hint in game?\n----------------------------------------------------------------------------\nIn ocean:\nTurn on "coordinates" in settings, and go to about x: 2830 and y: -825\nIn cave:\nAt the spawning point, double jump to reveal a cave. If you continue up, you should find the code that will help you get out\n----------------------------------------------------------------------------

@Stage\n\nwhen [m v] key pressed\nshow variable [mouse v]\nset [mouse v] to (join ((mouse x) + (SCROLL X)) (join [,  ] ((mouse y) + (SCROLL Y))))\n\nwhen flag clicked\n\nwhen flag clicked\nset [play music v] to [yes]\nforever\n    if <(play music) = [yes]> then\n        if <(music on?) = [yes]> then\n            set volume to (100) %\n        else\n            set volume to (0) %\n        end\n    end\nend\n\nwhen flag clicked\nstop all sounds\nclear sound effects\n\nwhen I receive [official start v]\nforever\n    play sound [Amadeus - Euphoria v] until done\n    play sound [Amadeus - Legendary v] until done\n    play sound [capitol v] until done\n    play sound [Vexento - Forever v] until done\n    play sound [Amadeus- Dominance v] until done\n    play sound [bensound-summer v] until done\nend\n\nwhen flag clicked\nswitch backdrop to (backdrop2 v)\n\nwhen I receive [official start v]\nforever\n    if <(got to final level) = [not yet]> then\n        if <([costume # v] of [cube v]) = [18]> then\n            switch backdrop to (underwater 4 v)\n        else\n            switch backdrop to (underwater 4 v)\n        end\n    else\n        switch backdrop to (backdrop3 v)\n    end\nend\n\nwhen I receive [final level v]\nset [play music v] to [no]\nrepeat (50)\n    change volume by (-2)\nend\n\nwhen I receive [setup next world v]\nif <(music on?) = [yes]> then\n    repeat (50)\n        change volume by (2)\n    end\nend\nset [play music v] to [yes]\n\n@blank\n\n@Cube\n\ndefine Change Player x by (sx)\nchange [x v] by (sx)\nPosition\nTest Die\nif <<touching (sprite1 v)?> or <touching (collectibles12 v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<touching (sprite1 v)?> or <touching (collectibles12 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 <<mouse down?> and <(mouse y) > ((y position) + (20))>>> and <not <touching (collectibles3 v)?>>> 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    repeat until <not >\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\nwhen flag clicked\nforever\n    if <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n        if <(speed 5) < [10]> then\n            if <<(costume [number v]) < [7]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <(costume [number v]) = [18]>>>>> then\n                if <(speed 5) > [2.5]> then\n                    change [speed 5 v] by (0.5)\n                else\n                    change [speed 5 v] by (1.5)\n                end\n            else\n                if <(speed 5) > [2.5]> then\n                    change [speed 5 v] by (0.5)\n                else\n                    set [speed 5 v] to [3]\n                end\n            end\n        end\n    else\n        if <key (down arrow v) pressed?> then\n            set [speed 5 v] to [-5]\n        else\n            repeat until <(speed 5) < [-2]>\n                change [speed 5 v] by (-0.3)\n            end\n            set [speed 5 v] to [-2]\n        end\n    end\nend\n\nwhen I receive [flag v]\nset size to (100) %\nhide\ngo to [front v] layer\n\nwhen I receive [play game v]\nset [level v] to (world)\nforever\n    broadcast (reset v) and wait\n    broadcast (setup v) and wait\n    Game on\n    repeat until <(EXIT) > []>\n        broadcast (Tick v)\n        Tick\n    end\n    if <(EXIT) = [win]> then\n        broadcast (win 2 v)\n        Game - win\n    else\n        Game - Die\n    end\nend\n\ndefine Game on\nhide\nset size to (72) %\nset [sx v] to [0]\nset [lives v] to [3]\nif <not <(costume [number v]) = [12]>> then\n    set [x v] to [0]\n    set [y v] to [500]\nelse\n    set [x v] to [0]\n    set [y v] to [0]\nend\nset [in air v] to [0]\nset [sy v] to [0]\nset [speed x v] to [0]\nset [exit v] to []\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nclear graphic effects\nshow\n\ndefine Tick\nif <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    point in direction (-90)\n    if <touching (water v)?> then\n        if <<(costume [number v]) = [3]> or <<(costume [number v]) = [7]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [9]> or <<(costume [number v]) = [10]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <<(costume [number v]) = [18]> or <(costume [number v]) = [19]>>>>>>>>>> then\n            change [speed x v] by (-1)\n        else\n            if <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [13]> or <<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or >>>>>>>> then\n                change [speed x v] by (-2)\n            end\n        end\n    else\n        if <<(costume [number v]) = [3]> or <<(costume [number v]) = [7]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [9]> or <<(costume [number v]) = [10]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <(costume [number v]) = [18]>>>>>>>>> then\n            change [speed x v] by (-1.5)\n        else\n            if <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [13]> or <<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>>>>>>>> then\n                change [speed x v] by (-2)\n            else\n                change [speed x v] by (-2)\n            end\n        end\n    end\nend\nif <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    if <touching (water v)?> then\n        if <<(costume [number v]) = [3]> or <<(costume [number v]) = [7]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [9]> or <<(costume [number v]) = [10]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <<(costume [number v]) = [18]> or <(costume [number v]) = [19]>>>>>>>>>> then\n            change [speed x v] by (1)\n        else\n            if <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [13]> or <<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>>>>>>>> then\n                change [speed x v] by (2)\n            else\n                change [speed x v] by (1)\n            end\n        end\n    else\n        if <<(costume [number v]) = [3]> or <<(costume [number v]) = [7]> or <<(costume [number v]) = [8]> or <<(costume [number v]) = [9]> or <<(costume [number v]) = [10]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <(costume [number v]) = [18]>>>>>>>>> then\n            change [speed x v] by (1.5)\n        else\n            if <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [13]> or <<(costume [number v]) = [14]> or <<(costume [number v]) = [15]> or <(costume [number v]) = [16]>>>>>>>>> then\n                change [speed x v] by (2)\n            else\n                change [speed x v] by (2)\n            end\n        end\n    end\nend\nset [speed x v] to ((speed x) * (0.8))\nif <([abs v] of (speed x) ) > [0.9]> then\n    Change Player x by (round (speed x))\nend\nif <<key (up arrow v) pressed?> or <<mouse down?> and <(mouse y) > ((y position) + (20))>>> then\n    if <(in air) < [4]> then\n        if <<(costume [number v]) = [1]> or <<(costume [number v]) = [2]> or <<(costume [number v]) = [3]> or <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <<(costume [number v]) = [6]> or <<(costume [number v]) = [11]> or <<(costume [number v]) = [12]> or <<(costume [number v]) = [17]> or <<(costume [number v]) = [19]> or <(costume [number v]) = [18]>>>>>>>>>>> then\n            set [sy v] to [16]\n        else\n            set [sy v] to [20]\n        end\n    end\nend\nif <<touching (sprite1 v)?> or <touching (collectibles10 v)?>> then\nif  then\n    set [sy v] to (speed 5)\nend\nif <touching (collectibles9 v)?> then\nif <touching (collectibles9 v)?> then\nif <(sy) > [-15]> then\n    change [sy v] by (-2)\nend\nif <(sy) > [0]> then\n    set [jump through v] to [yes boiz]\nelse\n    set [jump through v] to [no whyyy]\nend\nChange player y by (sy)\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nif <(SCROLL X) > [5795]> then\n    set [scroll x v] to [5795]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [-1800]> then\n    set [scroll y v] to [0]\nend\nif <(SCROLL Y) > [580]> then\n    set [scroll y v] to [580]\nend\nif <(y) < [-2000]> then\n    set [exit v] to [restart]\nend\nchange [x v] by (8)\nchange [x v] by (-8)\n\n\nif <touching (collectibles4 v)?> then\n    set [sy v] to [40]\nend\n\nPosition\n\nif <key (space v) pressed?> then\n\ndefine Change player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nTest Die\nrepeat until <not <<touching (sprite1 v)?> or <touching (collectibles12 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\nrepeat until <not <<touching (sprite1 v)?> or <touching (collectibles12 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 Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine Change Player x by (sx)\n\nchange [x v] by (sx)\nPosition\nTest Die\nif <<touching (sprite1 v)?> or <<touching (collectibles10 v)?> or <touching (collectibles8 v)?>>> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <<touching (sprite1 v)?> or <<touching (collectibles10 v)?> or <touching (collectibles8 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 <<mouse down?> and <(mouse y) > ((y position) + (20))>>> 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    repeat until <not <<touching (sprite1 v)?> or <<touching (collectibles10 v)?> or <touching (collectibles8 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 (20)\n    change [ghost v] effect by (5)\nend\n\nrepeat (5)\n    hide\n    wait (0.1) seconds\n    show\n    wait (0.1) seconds\nend\nhide\n\nwait (0.5) seconds\n\nshow\n\nchange size by (-)\n\ndefine Game - win\nrepeat (50)\n    point towards (sprite3 v)\n    turn right (65) degrees\n    move ((distance to [sprite3 v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (1)\nend\nbroadcast (home screen v)\nhide\nchange [level v] by (1)\n\nif <(in air) < [4]> then\n    set [sy v] to [16]\nend\n\ndefine tick 2\n\nbroadcast (Tick v) and wait\n\nswitch costume to (cu v)\n\nwhen flag clicked\nforever\n\nif <<<key (right arrow v) pressed?> or <key (left arrow v) pressed?>> or <<<mouse down?> and <(x position) > (mouse x)>> or <<mouse down?> and <(mouse x) > (x position)>>>> then\n    if <not <<<(costume [number v]) = [9]> or <(costume [number v]) = [10]>> or <(costume [number v]) = [13]>>> then\n        if <<key (right arrow v) pressed?> or <<mouse down?> and <(mouse x) > (x position)>>> then\n            point in direction (90)\n        end\n        if <<key (left arrow v) pressed?> or <<mouse down?> and <(x position) > (mouse x)>>> then\n            point in direction (-90)\n        end\n    end\nelse\n    point in direction (90)\nend\n\nwhen I receive [hide home screen v]\n\nbroadcast (Flag v) and wait\nbroadcast (Play game v) and wait\n\ndefine win\nplay sound [Win v] until done\n\nwhen I receive [win 2 v]\nset volume to (100) %\nif <(EXIT) = [win]> then\n    if <(sound effects) = [on]> then\n        win\n    end\nend\n\nwhen I receive [crystal v]\nif <(sound effects) = [on]> then\n    set volume to (100) %\n    play sound [Collect v] until done\nend\n\nbroadcast (home screen v)\n\nwhen I receive [jump v]\nset [sy v] to [40]\n\nwhen flag clicked\nswitch costume to (costume10 v)\n\nwhen flag clicked\nhide\nswitch costume to (costume10 v)\n\nwhen flag clicked\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [1 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume2 v)\nclear graphic effects\n\nwhen I receive [2 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume3 v)\nclear graphic effects\n\nwhen I receive [3 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume4 v)\nclear graphic effects\n\nwhen I receive [4 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume5 v)\nclear graphic effects\n\nwhen I receive [5 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume6 v)\nclear graphic effects\n\nwhen I receive [6 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume7 v)\nclear graphic effects\n\nwhen I receive [7 v]\nset [effect 2 v] to [off]\nset [effect v] to [on]\nswitch costume to (costume8 v)\nrepeat until <(effect) = [off]>\n    change [color v] effect by (3)\nend\n\nwhen I receive [8 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume9 v)\nclear graphic effects\n\nwhen I receive [9 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume11 v)\nclear graphic effects\n\nwhen I receive [10 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume12 v)\nclear graphic effects\n\nwhen I receive [11 v]\nset [effect v] to [off]\nset [effect 2 v] to [on]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [12 v]\nset [effect v] to [off]\nset [effect 2 v] to [off]\nswitch costume to (costume13 v)\nclear graphic effects\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [11]> then\nend\n\nif <key (space v) pressed?> then\n    set [ghost v] effect to (80)\n    set [can get hurt v] to [false]\nelse\n    clear graphic effects\n    set [can get hurt v] to [true]\nend\n\nwhen I receive [jump 2  v]\nset [sy v] to [20]\n\nwhen I receive [14 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (costume10 v)\nclear graphic effects\n\nwhen I receive [13 v]\nset [effect 2 v] to [off]\nset [effect v] to [off]\nswitch costume to (box v)\nclear graphic effects\n\nwhen flag clicked\nrepeat until <touching (collectibles v)?>\n    go to [back v] layer\n    set [last check point x v] to [0]\n    set [last checkpoint y v] to [0]\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (8) layers\nend\n\ngo [backward v] (0) layers\n\nwhen flag clicked\nforever\n    set [x position v] to (x)\n    set [y position v] to (y)\nend\n\nwhen flag clicked\nforever\n\nif <(lives) = [0]> then\n    set [exit v] to [restart]\nend\n\nwhen flag clicked\nforever\n    if <<<touching (danger4 v)?> or <<touching (collectibles3 v)?> or <<touching (collectibles5 v)?> or <<<touching (collectibles7 v)?> and <(touching lazers?) = [yes]>> or <<<touching (collectibles4 v)?> or <touching (collectibles6 v)?>> or <touching (collectibles9 v)?>>>>>> and <[] < (join [apple ] [banana])>> then\n        if <(can get hurt) = [true]> then\n            broadcast (show v)\n            change [lives v] by (-1)\n            broadcast (refresh v)\n            repeat (2)\n                set [ghost v] effect to (50)\n                wait (0.5) seconds\n                set [ghost v] effect to (0)\n                wait (0.5) seconds\n            end\n        end\n    end\n    if <not <<<(costume [number v]) = [12]> and <touching (water v)?>> or <<<touching (danger4 v)?> or <<touching (collectibles3 v)?> or <<touching (danger2 v)?> or <<touching (sprite12 v)?> and <(LEVEL) = [4]>>>>> and <not <(costume [number v]) = [12]>>>>> then\n        if <not <(costume [number v]) = [17]>> then\n            set [ghost v] effect to (0)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [3]> then\n        change [color v] effect by (3)\n    else\n        set [color v] effect to (0)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(costume [number v]) = [17]> then\n        set [can get hurt v] to [false]\n    else\n        set [can get hurt v] to [true]\n    end\nend\n\nif <key (space v) pressed?> then\n\ndefine Test Die\nif <(lives) = [0]> then\n    set [exit v] to [restart]\nend\n\nwhen flag clicked\nset [can get hurt v] to [true]\nset [coins v] to [0]\n\nwhen flag clicked\nset [1 v] to []\nset [2 v] to []\nset [3 v] to []\nset [4 v] to []\nset [5 v] to []\nset [6 v] to []\nset [7 v] to []\nset [8 v] to []\nset [9 v] to []\nset [10 v] to []\nset [11 v] to []\nset [12 v] to []\nset [13 v] to []\nset [14 v] to []\nset [15 v] to []\nset [16 v] to []\nset [17 v] to []\nset [18 v] to []\nset [costume # v] to [19]\nforever\n    switch costume to (costume #)\nend\n\nset [x v] to (last check point x)\nset [y v] to (last checkpoint y)\n\nwhen flag clicked\nforever\n    set [lazer count v] to [0]\n    wait (2) seconds\n    set [lazer count v] to [1]\n    wait (2) seconds\nend\n\nwhen I receive [official start v]\nset [got to final level v] to [not yet]\nshow\nbroadcast (Flag v) and wait\nbroadcast (Play game v) and wait\n\nwhen flag clicked\nset [costume # v] to [19]\n\nset [speed 5 v] to [3]\n\nwhen I receive [setup next world v]\nset [exit v] to [restart]\n\nwhen flag clicked\nforever\n    if <key (up arrow v) pressed?> then\n        if <<(in air) > [10]> and <(got to final level) = [yes]>> then\n            set [sy v] to [20]\n            wait until <(touching ground) = [yes]>\n        end\n    end\nend\n\nwhen I receive [final level v]\nforever\n    go to [front v] layer\n    go [backward v] (120) layers\nend\n\nwhen flag clicked\nforever\n    if <(got to final level) = [50]> then\n        go to [back v] layer\n    end\nend\n\nwhen I start as a clone\nswitch costume to (box v)\nset [ghost v] effect to (100)\nforever\n    if <touching (sprite1 v)?> then\n        go to x: (x pos) y: (y pos)\n        set [touching ground v] to [yes]\n    else\n        go to x: (x pos) y: (y pos)\n        set [touching ground v] to [nope]\n    end\nend\n\nwhen flag clicked\nforever\n    set [x pos v] to (x position)\n    set [y pos v] to (y position)\nend\n\nif <key (up arrow v) pressed?> then\n    set [sy v] to [5]\nelse\n    set [sy v] to [-0.2]\nend\n\nwhen I receive [setup next world v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    if <(lives) > [3]> then\n        set [lives v] to [3]\n    end\nend\n\n@collectibles2\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nif <(attracting) = [nope]> then\n    position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nend\n\nbroadcast (Tick v) and wait\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]\n\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\n\nClone at x: [5700] y: [270]\nClone at x: [5700] y: [225]\nClone at x: [5650] y: [225]\nClone at x: [5650] y: [270]\n\nClone at x: [100000] y: [40]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    if <(Reduce lag?) = [no]> then\n        if <(costume [number v]) = [17]> then\n            switch costume to (coin v)\n        else\n            next costume\n        end\n    end\n    go [backward v] (34) layers\nend\n\nif <not <touching (cube v)?>> then\n    switch costume to (coin v)\n    repeat (15)\nend\n\nwhen [space v] key pressed\n\ndelete this clone\n\nwhen I receive [setup v]\n\nClone at x: [-28] y: [-50]\nClone at x: [-28] y: [-100]\nClone at x: [-28] y: [-150]\nClone at x: [-28] y: [-200]\nClone at x: [-28] y: [-250]\nClone at x: [-28] y: [-300]\nClone at x: [-28] y: [-350]\n\nClone at x: [450] y: [-475]\nClone at x: [650] y: [-400]\nClone at x: [750] y: [-500]\nClone at x: [9999999] y: [9999999]\n\nClone at x: [455] y: [-325]\nClone at x: [555] y: [-325]\nClone at x: [655] y: [-325]\nClone at x: [755] y: [-325]\nClone at x: [855] y: [-325]\n\nwhen this sprite clicked\nClone at x: [455] y: [-500]\n\nwhen I receive [1 v]\n\nClone at x: [3150] y: [-750]\n\nClone at x: [3100] y: [-700]\n\ndefine attract (speed)\n\nattract (distance to [cube v])\n\npoint towards (cube v)\nrepeat (20)\n    move (10) steps\nend\n\nrepeat until <touching (cube v)?>\n\nif <not <touching (cube v)?>> then\n\nwhen flag clicked\nbroadcast (start v)\n\nwhen I start as a clone\nset [attracting v] to [nope]\nforever\n    if <<touching (cube v)?> or <touching (sprite10 v)?>> then\n        if <(size) = [350]> then\n            set [mosaic effect v] to [10]\n            repeat until <(mosaic effect) = [0]>\n                change [mosaic v] effect by (mosaic effect)\n                change [mosaic effect v] by (-1)\n            end\n            wait (1) seconds\n            repeat (10)\n                change [ghost v] effect by (10)\n            end\n        end\n        if <touching (sprite10 v)?> then\n            set [attracting v] to [yes]\n            glide (0.5) secs to (cube v)\n            set [attracting v] to [nope]\n        end\n        if <(size) = [100]> then\n            change [coins v] by (1)\n        else\n            if <(size) = [180]> then\n                change [coins v] by (100)\n            else\n                change [coins v] by (500)\n            end\n        end\n        start sound [Collect v]\n        repeat (20)\n            if <(size) = [100]> then\n                switch costume to (+1 v)\n            else\n                switch costume to (+100 v)\n            end\n            change [ghost v] effect by (5)\n            change [y v] by (2)\n        end\n        delete this clone\n    end\n    clear sound effects\nend\n\nClone at x: [3250] y: [650]\nClone at x: [3300] y: [650]\nClone at x: [3150] y: [-700]\n\nClone at x: [3350] y: [650]\nClone at x: [3400] y: [650]\nClone at x: [3450] y: [650]\nClone at x: [3500] y: [650]\nClone at x: [3550] y: [650]\n\nClone at x: [3000] y: [650]\nClone at x: [3050] y: [650]\nClone at x: [3100] y: [650]\nClone at x: [3150] y: [650]\nClone at x: [3200] y: [650]\nClone at x: [999999999] y: [0]\n\nClone at x: [3210] y: [550]\n\nwhen I receive [official start v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    Clone at x: [-28] y: [300]\n    Clone at x: [-28] y: [200]\n    Clone at x: [-28] y: [100]\n    Clone at x: [-28] y: [0]\n    Clone at x: [-28] y: [-100]\n    Clone at x: [-28] y: [200]\n    Clone at x: [-28] y: [300]\n    Clone at x: [-28] y: [400]\n    Clone at x: [155] y: [-325]\n    Clone at x: [255] y: [-325]\n    Clone at x: [355] y: [-325]\n    Clone at x: [455] y: [-400]\n    Clone at x: [555] y: [-500]\n    Clone at x: [655] y: [-500]\n    Clone at x: [755] y: [-500]\n    Clone at x: [750] y: [580]\n    Clone at x: [800] y: [590]\n    Clone at x: [850] y: [600]\n    Clone at x: [900] y: [608]\n    Clone at x: [950] y: [614]\n    Clone at x: [1000] y: [615]\n    Clone at x: [1050] y: [618]\n    Clone at x: [1100] y: [620]\n    Clone at x: [1150] y: [624]\n    Clone at x: [1200] y: [624]\n    Clone at x: [1250] y: [626]\n    Clone at x: [1300] y: [628]\n    Clone at x: [1350] y: [630]\n    Clone at x: [1400] y: [632]\n    Clone at x: [1450] y: [634]\n    Clone at x: [1500] y: [636]\n    Clone at x: [1550] y: [638]\n    Clone at x: [1600] y: [642]\n    Clone at x: [1650] y: [645]\n    Clone at x: [1700] y: [648]\n    Clone at x: [1750] y: [650]\n    Clone at x: [1800] y: [650]\n    Clone at x: [1400] y: [-105]\n    Clone at x: [1450] y: [-105]\n    Clone at x: [1500] y: [-105]\n    Clone at x: [1550] y: [-105]\n    Clone at x: [1600] y: [-105]\n    Clone at x: [1650] y: [-105]\n    Clone at x: [1700] y: [-105]\n    Clone at x: [1750] y: [-105]\n    Clone at x: [1800] y: [-105]\n    Clone at x: [1850] y: [-105]\n    Clone at x: [2950] y: [-800]\n    Clone at x: [3000] y: [-800]\n    Clone at x: [3050] y: [-800]\n    Clone at x: [3100] y: [-800]\n    Clone at x: [3150] y: [-800]\n    Clone at x: [2950] y: [-750]\n    Clone at x: [3000] y: [-750]\n    Clone at x: [3050] y: [-750]\n    Clone at x: [3100] y: [-750]\n    Clone at x: [2950] y: [-700]\n    Clone at x: [3000] y: [-700]\n    Clone at x: [3050] y: [-700]\n    Clone at x: [3000] y: [650]\n    Clone at x: [3050] y: [650]\n    Clone at x: [3100] y: [650]\n    Clone at x: [3150] y: [650]\n    Clone at x: [3200] y: [650]\n    Clone at x: [3010] y: [600]\n    Clone at x: [3060] y: [600]\n    Clone at x: [3110] y: [600]\n    Clone at x: [3160] y: [600]\n    Clone at x: [3210] y: [550]\n    Clone at x: [3010] y: [550]\n    Clone at x: [3060] y: [550]\n    Clone at x: [3110] y: [550]\n    Clone at x: [3160] y: [550]\n    Clone at x: [3210] y: [550]\n    Clone at x: [3010] y: [500]\n    Clone at x: [3060] y: [500]\n    Clone at x: [3110] y: [500]\n    Clone at x: [3160] y: [500]\n    Clone at x: [3210] y: [500]\n    Clone at x: [3000] y: [450]\n    Clone at x: [3050] y: [450]\n    Clone at x: [3100] y: [450]\n    Clone at x: [3150] y: [450]\n    Clone at x: [3200] y: [450]\n    Clone at x: [3000] y: [400]\n    Clone at x: [3050] y: [400]\n    Clone at x: [3100] y: [400]\n    Clone at x: [3150] y: [400]\n    Clone at x: [3200] y: [400]\n    Clone at x: [3000] y: [350]\n    Clone at x: [3050] y: [350]\n    Clone at x: [3100] y: [350]\n    Clone at x: [3150] y: [350]\n    Clone at x: [3200] y: [350]\n    Clone at x: [3000] y: [300]\n    Clone at x: [3050] y: [300]\n    Clone at x: [3100] y: [300]\n    Clone at x: [3150] y: [300]\n    Clone at x: [3200] y: [300]\n    change size by (80)\n    Clone at x: [3447] y: [-781]\n    Clone at x: [999999999] y: [0]\nelse\nend\n\nwhen I receive [setup next world v]\ndelete this clone\n\nwhen flag clicked\nhide\n\n@collectibles3\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [backward v] (40) layers\nend\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\ngo to [back v] layer\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    Clone at x: [-120] y: [250]\n    Clone at x: [-120] y: [50]\n    Clone at x: [-120] y: [-150]\n    Clone at x: [-120] y: [-350]\n    Clone at x: [60] y: [350]\n    Clone at x: [60] y: [150]\n    Clone at x: [60] y: [-50]\n    Clone at x: [60] y: [-250]\n    Clone at x: [999999999] y: [50]\nend\n\nClone at x: [5120] y: [175]\n\nwhen I start as a clone\nforever\n    if <(Reduce lag?) = [no]> then\n        turn right (5) degrees\n    end\nend\n\nClone at x: [-130] y: [-330]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nClone at x: [-120] y: [350]\nClone at x: [-120] y: [250]\nClone at x: [-120] y: [150]\n\nwhen flag clicked\nhide\n\n@Sprite4\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen flag clicked\n\nstop [this script v]\n\nwhen I receive [show v]\n\nset [menu v] to [no]\nnext costume\nbroadcast (clone v)\nSmooth Glide x: (0) y: (240) speed: (4)\nwait until <touching (mouse-pointer v)?>\nswitch costume to (costume1 v)\nbroadcast (close v)\nSmooth Glide x: (0) y: (280) speed: (5)\nset [menu v] to [yes]\n\nwhen I receive [front layer v]\nforever\n    if <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n        go to [front v] layer\n        go [forward v] (1000000000) layers\n    end\nend\n\nwhen I receive [official start v]\nwait (0.1) seconds\nset [print v] to [no]\nset [menu v] to [yes]\nswitch costume to (costume1 v)\ngo to x: (0) y: (280)\nforever\n    set [ghost v] effect to (20)\n    if <<(menu) = [yes]> and <(show menu) = [yes]>> then\n        if <touching (mouse-pointer v)?> then\n            next costume\n            broadcast (clone v)\n            set [print v] to [yes]\n            Smooth Glide x: (0) y: (240) speed: (4)\n            wait until <not <touching (mouse-pointer v)?>>\n            switch costume to (costume1 v)\n            broadcast (close v)\n            set [print v] to [no]\n            Smooth Glide x: (0) y: (280) speed: (5)\n        end\n    end\nend\n\nwhen I receive [official start v]\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\nwhen I receive [official start v]\nshow\nforever\n    if <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n        go to [front v] layer\n        go [forward v] (1000000000) layers\n        broadcast (front layer v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [final level v]\nswitch costume to (costume1 v)\nhide\nbroadcast (close v)\nset [print v] to [no]\nSmooth Glide x: (0) y: (280) speed: (5)\n\nwhen I receive [setup next world v]\nshow\n\nset [print v] to [no]\nSmooth Glide x: (0) y: (280) speed: (5)\n\nwhen I receive [win v]\nhide\n\n@Sprite6\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [close v]\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [ghost v] effect to (100)\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <not <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>>>> then\n        go to [front v] layer\n        if <touching (mouse-pointer v)?> then\n            if <(size) = [100]> then\n                if <(sound) = [yes]> then\n                    start sound [Touch v]\n                end\n            end\n            repeat until <(size) = [110]>\n                change size by (5)\n                change [brightness v] effect by (5)\n            end\n            set size to (110) %\n            set [brightness v] effect to (10)\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n                change [brightness v] effect by (-5)\n            end\n            set size to (100) %\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwait until <touching (mouse-pointer v)?>\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I receive [clone v]\nclone icon at x: [-215] y: [152] icon number [1]\nclone icon at x: [-160] y: [152] icon number [2]\nclone icon at x: [-75] y: [152] icon number [3]\nif <(lives) = [1]> then\n    clone icon at x: [15] y: [152] icon number [4]\nend\nif <(lives) = [2]> then\n    clone icon at x: [15] y: [152] icon number [5]\nend\nif <(lives) = [3]> then\n    clone icon at x: [15] y: [152] icon number [6]\nend\n\nclone icon at x: [215] y: [152] icon number [6]\n\ndefine clone icon at x: (x) y: (y) icon number (icon)\nswitch costume to (icon)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\n\nset size to (110) %\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    broadcast (settings v)\nend\nif <(costume [number v]) = [2]> then\n    set [exit v] to [restart]\n    stop [this script v]\nend\nif <(costume [number v]) = [3]> then\n    broadcast (open shop v)\n    stop [this script v]\nend\n\nwhen flag clicked\nset [music on? v] to [yes]\nset [sound v] to [yes]\n\nrepeat (2)\n\nwhen I receive [refresh v]\nbroadcast (menu v)\n\nwhen I receive [setup v]\nbroadcast (refresh v)\n\nwhen I start as a clone\nforever\n    wait (0.1) seconds\n    if <<(costume [number v]) = [4]> or <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>>> then\n        if <(lives) = [3]> then\n            switch costume to (6 v)\n        else\n            if <(lives) = [2]> then\n                switch costume to (5 v)\n            else\n                switch costume to (4 v)\n            end\n        end\n    end\nend\n\nswitch costume to (5 v)\nset [sound v] to [no]\nstop [this script v]\n\n@water\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (5) layers\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    set [ghost v] effect to (50)\n    if <([costume # v] of [cube v]) = [18]> then\n        switch costume to (costume2 v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [official start v]\nshow\n\nwhen I receive [setup next world v]\nhide\n\nchange [coins v] by (500)\n\n@Sprite7\n\nwhen flag clicked\nforever\n    front\n    front\nend\n\ndefine front\ngo to [front v] layer\ngo [backward v] (2) layers\n\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I receive [open shop v]\nset [ghost v] effect to (20)\nSmooth Glide x: (0) y: (-100) speed: (5)\nset [shop open? v] to [yes]\nwait (2) seconds\nwait until <not <touching (mouse-pointer v)?>>\nset [shop open? v] to [no]\nbroadcast (close shop v)\nSmooth Glide x: (0) y: (-310) speed: (4)\nrepeat (2)\n    change [ghost v] effect by (40)\nend\n\nwhen flag clicked\nset [shop open? v] to [no]\ngo to x: (0) y: (-310)\nset [ghost v] effect to (100)\n\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\n@Sprite8\n\ndefine clone (item) at x: (x) y: (y)\nswitch costume to (item)\ngo to x: (x) y: (y)\nset [clone id v] to [item]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [open shop v]\nclone [1] at x: [-190] y: [5]\nclone [2] at x: [-115] y: [5]\nclone [3] at x: [-40] y: [5]\nclone [4] at x: [35] y: [5]\nclone [5] at x: [110] y: [5]\nclone [6] at x: [185] y: [5]\nclone [7] at x: [-190] y: [-70]\nclone [8] at x: [-115] y: [-70]\nclone [9] at x: [-40] y: [-70]\nclone [10] at x: [35] y: [-70]\nclone [11] at x: [110] y: [-70]\nclone [12] at x: [185] y: [-70]\nclone [13] at x: [-190] y: [-145]\nclone [14] at x: [-115] y: [-145]\nclone [15] at x: [-40] y: [-145]\nclone [16] at x: [35] y: [-145]\nclone [17] at x: [110] y: [-145]\nclone [18] at x: [185] y: [-145]\nclone info\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\n    go to [front v] layer\nend\nforever\n    go to [front v] layer\nend\n\ngo [forward v] (160) layers\n\nwhen I receive [close shop v]\ndelete this clone\n\nwhen I start as a clone\nif <(clone ID) = [item]> then\n    forever\n        if <touching (mouse-pointer v)?> then\n            if <(size) = [100]> then\n                if <(sound) = [yes]> then\n                    set volume to (100) %\n                    start sound [Touch v]\n                end\n            end\n            repeat until <(size) = [110]>\n                change size by (5)\n                change [brightness v] effect by (5)\n            end\n            set size to (110) %\n            set [brightness v] effect to (10)\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n                change [brightness v] effect by (-5)\n            end\n            set size to (100) %\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\ngo to [front v] layer\n\nwhen I start as a clone\nif <(clone ID) = [item]> then\n    forever\n        if <(costume [number v]) = [3]> then\n            change [color v] effect by (3)\n        else\n            if <(costume [number v]) = [17]> then\n                repeat (5)\n                    set [ghost v] effect to (pick random (0) to (50))\n                    wait (pick random (0) to (0.1)) seconds\n                end\n                wait (pick random (0) to (0.5)) seconds\n            else\n                if <(costume [number v]) = [4]> then\n                    go [backward v] (1) layers\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(clone ID) = [item]> then\n    forever\n        check if touching mouse\n    end\nend\n\ndefine check if touching mouse\nif <touching (mouse-pointer v)?> then\n    set [item v] to (costume [name v])\nend\n\nwhen I start as a clone\nforever\n    if <touching (sprite16 v)?> then\n        set [touching mouse? v] to [yes]\n    else\n        set [touching mouse? v] to [no]\n    end\nend\n\nwhen this sprite clicked\nif <(costume [number v]) = [1]> then\n    if <(1) > []> then\n        set [costume # v] to (costume [number v])\n    else\n        if <(coins) > [9]> then\n            change [coins v] by (-10)\n            set [costume # v] to (costume [number v])\n            set [1 v] to [bought]\n        end\n    end\nelse\n    if <(costume [number v]) = [2]> then\n        if <(2) > []> then\n            set [costume # v] to (costume [number v])\n        else\n            if <(coins) > [9]> then\n                change [coins v] by (-10)\n                set [costume # v] to (costume [number v])\n                set [2 v] to [bought]\n            end\n        end\n    else\n        if <(costume [number v]) = [3]> then\n            if <(3) > []> then\n                set [costume # v] to (costume [number v])\n            else\n                if <(coins) > [9]> then\n                    change [coins v] by (-10)\n                    set [costume # v] to (costume [number v])\n                    set [3 v] to [bought]\n                end\n            end\n        else\n            if <(costume [number v]) = [4]> then\n                if <(4) > []> then\n                    set [costume # v] to (costume [number v])\n                else\n                    if <(coins) > [9]> then\n                        change [coins v] by (-10)\n                        set [costume # v] to (costume [number v])\n                        set [4 v] to [bought]\n                    end\n                end\n            else\n                if <(costume [number v]) = [5]> then\n                    if <(5) > []> then\n                        set [costume # v] to (costume [number v])\n                    else\n                        if <(coins) > [9]> then\n                            change [coins v] by (-10)\n                            set [costume # v] to (costume [number v])\n                            set [5 v] to [bought]\n                        end\n                    end\n                else\n                    if <(costume [number v]) = [6]> then\n                        if <(6) > []> then\n                            set [costume # v] to (costume [number v])\n                        else\n                            if <(coins) > [9]> then\n                                change [coins v] by (-10)\n                                set [costume # v] to (costume [number v])\n                                set [6 v] to [bought]\n                            end\n                        end\n                    else\n                        if <(costume [number v]) = [7]> then\n                            if <(7) > []> then\n                                set [costume # v] to (costume [number v])\n                            else\n                                if <(coins) > [19]> then\n                                    change [coins v] by (-20)\n                                    set [costume # v] to (costume [number v])\n                                    set [7 v] to [bought]\n                                end\n                            end\n                        else\n                            if <(costume [number v]) = [8]> then\n                                if <(8) > []> then\n                                    set [costume # v] to (costume [number v])\n                                else\n                                    if <(coins) > [19]> then\n                                        change [coins v] by (-20)\n                                        set [costume # v] to (costume [number v])\n                                        set [8 v] to [bought]\n                                    end\n                                end\n                            else\n                                if <(costume [number v]) = [9]> then\n                                    if <(9) > []> then\n                                        set [costume # v] to (costume [number v])\n                                    else\n                                        if <(coins) > [19]> then\n                                            change [coins v] by (-20)\n                                            set [costume # v] to (costume [number v])\n                                            set [9 v] to [bought]\n                                        end\n                                    end\n                                else\n                                    if <(costume [number v]) = [10]> then\n                                        if <(10) > []> then\n                                            set [costume # v] to (costume [number v])\n                                        else\n                                            if <(coins) > [19]> then\n                                                change [coins v] by (-20)\n                                                set [costume # v] to (costume [number v])\n                                                set [10 v] to [bought]\n                                            end\n                                        end\n                                    else\n                                        if <(costume [number v]) = [11]> then\n                                            if <(11) > []> then\n                                                set [costume # v] to (costume [number v])\n                                            else\n                                                if <(coins) > [19]> then\n                                                    change [coins v] by (-20)\n                                                    set [costume # v] to (costume [number v])\n                                                    set [11 v] to [bought]\n                                                end\n                                            end\n                                        else\n                                            if <(costume [number v]) = [12]> then\n                                                if <(12) > []> then\n                                                    set [costume # v] to (costume [number v])\n                                                else\n                                                    if <(coins) > [19]> then\n                                                        change [coins v] by (-20)\n                                                        set [costume # v] to (costume [number v])\n                                                        set [12 v] to [bought]\n                                                    end\n                                                end\n                                            else\n                                                if <(costume [number v]) = [13]> then\n                                                    if <(13) > []> then\n                                                        set [costume # v] to (costume [number v])\n                                                    else\n                                                        if <(coins) > [49]> then\n                                                            change [coins v] by (-50)\n                                                            set [costume # v] to (costume [number v])\n                                                            set [13 v] to [bought]\n                                                        end\n                                                    end\n                                                else\n                                                    if <(costume [number v]) = [14]> then\n                                                        if <(14) > []> then\n                                                            set [costume # v] to (costume [number v])\n                                                        else\n                                                            if <(coins) > [49]> then\n                                                                change [coins v] by (-50)\n                                                                set [costume # v] to (costume [number v])\n                                                                set [14 v] to [bought]\n                                                            end\n                                                        end\n                                                    else\n                                                        if <(costume [number v]) = [15]> then\n                                                            if <(15) > []> then\n                                                                set [costume # v] to (costume [number v])\n                                                            else\n                                                                if <(coins) > [49]> then\n                                                                    change [coins v] by (-50)\n                                                                    set [costume # v] to (costume [number v])\n                                                                    set [15 v] to [bought]\n                                                                end\n                                                            end\n                                                        else\n                                                            if <(costume [number v]) = [16]> then\n                                                                if <(16) > []> then\n                                                                    set [costume # v] to (costume [number v])\n                                                                else\n                                                                    if <(coins) > [49]> then\n                                                                        change [coins v] by (-50)\n                                                                        set [costume # v] to (costume [number v])\n                                                                        set [16 v] to [bought]\n                                                                    end\n                                                                end\n                                                            else\n                                                                if <(costume [number v]) = [17]> then\n                                                                    if <(17) > []> then\n                                                                        set [costume # v] to (costume [number v])\n                                                                    else\n                                                                        if <(coins) > [199]> then\n                                                                            change [coins v] by (-200)\n                                                                            set [costume # v] to (costume [number v])\n                                                                            set [17 v] to [bought]\n                                                                        end\n                                                                    end\n                                                                else\n                                                                    if <(costume [number v]) = [18]> then\n                                                                        if <(18) > []> then\n                                                                            set [costume # v] to (costume [number v])\n                                                                        else\n                                                                            if <(coins) > [199]> then\n                                                                                change [coins v] by (-200)\n                                                                                set [costume # v] to (costume [number v])\n                                                                                set [18 v] to [bought]\n                                                                            end\n                                                                        end\n                                                                    end\n                                                                end\n                                                            end\n                                                        end\n                                                    end\n                                                end\n                                            end\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine clone info\nset [clone id v] to [info]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(clone ID) = [info]> then\n    forever\n        go to x: ((mouse x) + (50)) y: ((mouse y) + (50))\n        set [ghost v] effect to (20)\n        go to [front v] layer\n        costume #\n    end\nend\n\ndefine costume #\nswitch costume to ((item) + (18))\n\nset [1 v] to [bought]\n\n@Sprite14\n\ndefine print\nbroadcast (delete v)\nset [element v] to [1]\nif <(length of (coins)) < [3]> then\n    go to x: (((length of [22]) * (152)) / (2)) y: (152)\nelse\n    go to x: (((length of [22]) * (138)) / (2)) y: (152)\nend\nrepeat (length of (coins))\n    switch costume to (letter (element) of (coins))\n    create clone of (_myself_ v)\n    if <(length of (coins)) < [3]> then\n        change x by (25)\n    else\n        change x by (20)\n    end\n    change [element v] by (1)\nend\n\nwhen I receive [delete v]\ndelete this clone\n\nwhen I start as a clone\nif <(length of (coins)) < [3]> then\n    set size to (100) %\nelse\n    set size to (75) %\nend\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [close v]\nbroadcast (delete v)\n\nset size to (100) %\n\nset size to (75) %\n\nwhen I receive [official start v]\nset [print v] to [no]\nforever\n    if <(print) = [yes]> then\n        print\n        wait (0.05) seconds\n    end\nend\n\n@Sprite16\n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to (mouse-pointer v)\nend\n\n@Sprite18\n\nwhen flag clicked\nshow\nforever\n    go to (cube v)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (1000) layers\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [cube v]) = [11]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite17\n\nwhen I receive [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]\nswitch costume to (costume1 v)\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [0] y: [500]\nClone at x: [360] y: [-500]\nClone at x: [600] y: [500]\nClone at x: [-240] y: [-500]\nClone at x: [360] y: [0]\nClone at x: [360] y: [100]\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [999999999] 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\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (40) layers\nend\n\n@collectibles13\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    broadcast (win v)\nend\ndelete this clone\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (115) layers\n    set size to (100) %\nend\n\nwhen I receive [open v]\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (key v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [yes]> then\n    Clone at x: [1100] y: [550]\nend\nClone at x: [1000000] y: [0m]\n\nClone at x: [2832] y: [-825]\nClone at x: [5665] y: [258]\n\n@Sprite15\n\nwhen flag clicked\nhide\n\nwhen I start as a clone\nshow\nwait (1) seconds\nforever\n    go to [front v] layer\n    front layer\n    front layer\n    front layer\n    front layer\n    set size to (100) %\nend\n\nwhen I start as a clone\nforever\n    go to x: ((mouse x) + (50)) y: ((mouse y) - (-25))\nend\n\ndefine front layer\ngo to [front v] layer\ngo to [front v] layer\n\ndefine check item\ngo to [front v] layer\nif <<(y position) < [60]> and <(shop open?) = [yes]>> then\n    go to [front v] layer\n    front layer\n    set [ghost v] effect to (20)\n    switch costume to (item)\nelse\n    repeat (5)\n        change [ghost v] effect by (20)\n    end\n    switch costume to (costume3 v)\n    wait until <(y position) < [60]>\nend\n\nif <(touching) = [yes]> then\nswitch costume to (costume3 v)\n\nwhen I start as a clone\nforever\n    check item\nend\n\nwhen I receive [open shop v]\ncreate clone of (_myself_ v)\n\nwhen I receive [close v]\ndelete this clone\n\n@Sprite2\n\nwhen I receive [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]\nswitch costume to (costume1 v)\nif <(got to final level) = [not yet]> then\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: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [0] y: [500]\n    Clone at x: [360] y: [-500]\n    Clone at x: [600] y: [500]\n    Clone at x: [-240] y: [-500]\n    Clone at x: [360] y: [0]\n    Clone at x: [360] y: [100]\n    Clone at x: [360] y: [0]\n    Clone at x: [500] y: [0]\n    Clone at x: [500] y: [0]\n    Clone at x: [360] y: [0]\nelse\n    switch costume to (costume18 v)\n    Clone at x: [10000] y: [0]\n    Clone at x: [10000] y: [0]\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 I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (150) layers\nend\n\nwhen flag clicked\nif <(costume [number v]) = [20]> then\n    forever\n        repeat (100)\n            change [y v] by (2)\n        end\n        repeat (100)\n            change [y v] by (-2)\n        end\n    end\nend\n\nClone at x: [360] y: [0]\n\nwhen flag clicked\nhide\n\n@Sprite1\n\nwhen I receive [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]\nswitch costume to (costume1 v)\nif <(got to final level) = [not yet]> then\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: [360] y: [0]\n    Clone at x: [2200] y: [-500]\n    Clone at x: [99999999] y: [0]\nelse\n    switch costume to (costume7 v)\n    Clone at x: [0] y: [360]\n    Clone at x: [500] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [10000] y: [0]\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 I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (115) layers\nend\n\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [0] y: [500]\nClone at x: [360] y: [-500]\nClone at x: [600] y: [500]\nClone at x: [-240] y: [-500]\nClone at x: [360] y: [0]\nClone at x: [360] y: [100]\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\n\nwhen flag clicked\nhide\n\nwhen [1 v] key pressed\nset [got to final level v] to [yes]\n\nwhen [2 v] key pressed\nchange [lives v] by (1)\nwait until <not <key (2 v) pressed?>>\n\nClone at x: [360] y: [0]\n\n@danger4\n\nwhen I receive [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]\nswitch costume to (costume5 v)\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\nClone at x: [360] 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\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [forward v] (50) layers\nend\n\nwhen flag clicked\nhide\n\n@collectibles4\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [backward v] (40) layers\nend\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\ngo to [back v] layer\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    Clone at x: [500] y: [-550]\n    Clone at x: [700] y: [-550]\n    Clone at x: [900] y: [-550]\n    Clone at x: [1100] y: [-550]\n    Clone at x: [9999999] y: [0]\nend\n\nwhen I start as a clone\nforever\n    if <(Reduce lag?) = [no]> then\n        turn right (5) degrees\n    end\nend\n\nClone at x: [-130] y: [-330]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nClone at x: [-120] y: [350]\nClone at x: [-120] y: [250]\nClone at x: [-120] y: [150]\n\nwhen I start as a clone\nforever\n    repeat (80)\n        change [y v] by (4)\n    end\n    repeat (80)\n        change [y v] by (-4)\n    end\nend\n\nClone at x: [500] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [700] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [-120] y: [-150]\nClone at x: [-120] y: [-350]\nClone at x: [60] y: [350]\nClone at x: [60] y: [150]\nClone at x: [60] y: [-50]\nClone at x: [60] y: [-250]\nClone at x: [999999999] y: [50]\nClone at x: [5120] y: [175]\n\nwhen flag clicked\nhide\n\n@collectibles5\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [back v] layer\n    go [backward v] (40) layers\nend\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\ngo to [back v] layer\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    Clone at x: [600] y: [-250]\n    Clone at x: [800] y: [-250]\n    Clone at x: [1000] y: [-250]\n    Clone at x: [1200] y: [-250]\n    Clone at x: [9999999] y: [0]\nend\n\nwhen I start as a clone\nforever\n    turn right (5) degrees\nend\n\nClone at x: [-130] y: [-330]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nClone at x: [-120] y: [350]\nClone at x: [-120] y: [250]\nClone at x: [-120] y: [150]\n\nwhen I start as a clone\nforever\n    repeat (80)\n        change [y v] by (-4)\n    end\n    repeat (80)\n        change [y v] by (4)\n    end\nend\n\nClone at x: [500] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [700] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [-120] y: [-150]\nClone at x: [-120] y: [-350]\nClone at x: [60] y: [350]\nClone at x: [60] y: [150]\nClone at x: [60] y: [-50]\nClone at x: [60] y: [-250]\nClone at x: [999999999] y: [50]\nClone at x: [5120] y: [175]\n\nwhen flag clicked\nhide\n\n@collectibles6\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    if <(got to final level) = [not yet]> then\n        go to [front v] layer\n        go [backward v] (175) layers\n    else\n        go to [front v] layer\n        go [backward v] (50) layers\n    end\nend\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\ngo to [back v] layer\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    clear graphic effects\n    Clone at x: [775] y: [175]\n    Clone at x: [975] y: [175]\n    Clone at x: [1175] y: [175]\n    Clone at x: [5120] y: [175]\n    Clone at x: [2450] y: [-70]\n    Clone at x: [2650] y: [-30]\n    Clone at x: [99999] y: [0]\nelse\n    set [brightness v] effect to (-100)\n    Clone at x: [450] y: [310]\n    Clone at x: [650] y: [310]\n    Clone at x: [999999] y: [0]\nend\n\nwhen I start as a clone\nforever\n\nClone at x: [-130] y: [-330]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nturn right (5) degrees\n\nwhen I start as a clone\nif <(got to final level) = [yes]> then\n    set [brightness v] effect to (-100)\nend\nwait (pick random (0) to (2)) seconds\nforever\n    repeat (20)\n        change [y v] by (-10)\n    end\n    repeat (50)\n        change [y v] by (4)\n    end\n    wait (pick random (0) to (2)) seconds\nend\n\nClone at x: [1175] y: [140]\n\nwhen flag clicked\nhide\n\n@collectibles7\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwait (0.05) seconds\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (141) layers\nend\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nif <(got to final level) = [not yet]> then\n    set [checkpoints v] to [yes]\n    switch costume to (green flag v)\n    go to [back v] layer\n    clear sound effects\n    hide\n    set [x v] to [0]\n    set [collected max v] to [0]\n    set [y v] to [0]\n    set size to (100) %\n    switch costume to (2 v)\n    Clone at x: [2050] y: [520]\n    switch costume to (4 v)\n    Clone at x: [3115] y: [-500]\n    Clone at x: [9999999] y: [0]\nend\n\nClone at x: [2050] y: [280]\n\nClone at x: [-130] y: [-330]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nClone at x: [-120] y: [350]\nClone at x: [-120] y: [250]\nClone at x: [-120] y: [150]\n\nClone at x: [500] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [700] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [-120] y: [-150]\nClone at x: [-120] y: [-350]\nClone at x: [60] y: [350]\nClone at x: [60] y: [150]\nClone at x: [60] y: [-50]\nClone at x: [60] y: [-250]\nClone at x: [999999999] y: [50]\nClone at x: [5120] y: [175]\n\nClone at x: [800] y: [-250]\nClone at x: [1000] y: [-250]\nClone at x: [1200] y: [-250]\n\nwhen I start as a clone\nforever\n    if <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n        switch costume to (1 v)\n        set [touching lazers? v] to [yes]\n        wait (2) seconds\n        switch costume to (2 v)\n        set [touching lazers? v] to [no]\n        wait (2) seconds\n    end\nend\n\nset [touching lazers? v] to [yes]\n\nwhen I start as a clone\nforever\n    if <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n        switch costume to ((lazer count) + (3))\n    end\nend\n\nwait (2) seconds\nswitch costume to (4 v)\nwait (2) seconds\n\nwhen flag clicked\nhide\n\n@collectibles8\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    if <not <(lives) = [3]>> then\n        change [lives v] by (1)\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n        change [y v] by (3)\n    end\n    delete this clone\nend\nif <touching (cube v)?> then\n    delete this clone\nend\n\nif <(size) = [100]> then\n    change [coins v] by (1)\nelse\n    change [coins v] by (100)\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\n\nClone at x: [5700] y: [270]\nClone at x: [5700] y: [225]\nClone at x: [5650] y: [225]\nClone at x: [5650] y: [270]\n\nClone at x: [100000] y: [40]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (50) layers\n    next costume\nend\n\nif <not <touching (cube v)?>> then\n    switch costume to (coin v)\n    repeat (15)\nend\n\nwhen [space v] key pressed\n\ndelete this clone\n\nwhen I receive [setup v]\nif <(got to final level) = [not yet]> then\n    set [checkpoints v] to [yes]\n    switch costume to (green flag v)\n    clear sound effects\n    hide\n    set [x v] to [0]\n    set [collected max v] to [0]\n    set [y v] to [0]\n    set size to (100) %\n    Clone at x: [695] y: [100]\n    Clone at x: [2150] y: [570]\n    Clone at x: [3358] y: [-870]\n    Clone at x: [800] y: [-450]\n    Clone at x: [3000] y: [-248]\n    Clone at x: [99999999999] y: [0]\nend\n\nClone at x: [-28] y: [-50]\nClone at x: [-28] y: [-100]\nClone at x: [-28] y: [-150]\nClone at x: [-28] y: [-200]\nClone at x: [-28] y: [-250]\nClone at x: [-28] y: [-300]\nClone at x: [-28] y: [-350]\n\nClone at x: [450] y: [-475]\nClone at x: [650] y: [-400]\nClone at x: [750] y: [-500]\nClone at x: [9999999] y: [9999999]\n\nClone at x: [455] y: [-325]\nClone at x: [555] y: [-325]\nClone at x: [655] y: [-325]\nClone at x: [755] y: [-325]\nClone at x: [855] y: [-325]\n\nClone at x: [-28] y: [300]\nClone at x: [-28] y: [200]\nClone at x: [-28] y: [100]\nClone at x: [-28] y: [0]\nClone at x: [-28] y: [-100]\nClone at x: [-28] y: [200]\nClone at x: [-28] y: [300]\nClone at x: [-28] y: [400]\nClone at x: [155] y: [-325]\nClone at x: [255] y: [-325]\nClone at x: [355] y: [-325]\nClone at x: [455] y: [-400]\nClone at x: [455] y: [-500]\nClone at x: [555] y: [-500]\nClone at x: [655] y: [-500]\nClone at x: [755] y: [-500]\nClone at x: [700] y: [560]\nClone at x: [750] y: [580]\nClone at x: [800] y: [590]\nClone at x: [850] y: [600]\nClone at x: [900] y: [608]\nClone at x: [950] y: [614]\nClone at x: [1000] y: [615]\nClone at x: [1050] y: [618]\nClone at x: [1100] y: [620]\nClone at x: [1150] y: [624]\nClone at x: [1200] y: [624]\nClone at x: [1250] y: [626]\nClone at x: [1300] y: [628]\nClone at x: [1350] y: [630]\nClone at x: [1400] y: [632]\nClone at x: [1450] y: [634]\nClone at x: [1500] y: [636]\nClone at x: [1550] y: [638]\nClone at x: [1600] y: [642]\nClone at x: [1650] y: [645]\nClone at x: [1700] y: [648]\nClone at x: [1750] y: [650]\nClone at x: [1800] y: [650]\nClone at x: [1400] y: [-105]\nClone at x: [1450] y: [-105]\nClone at x: [1500] y: [-105]\nClone at x: [1550] y: [-105]\nClone at x: [1600] y: [-105]\nClone at x: [1650] y: [-105]\nClone at x: [1700] y: [-105]\nClone at x: [1750] y: [-105]\nClone at x: [1800] y: [-105]\nClone at x: [1850] y: [-105]\nClone at x: [999999999] y: [0]\n\nClone at x: [618] y: [50]\nClone at x: [9999999999] y: [0]\n\nClone at x: [200] y: [-350]\nClone at x: [99999999] y: [0]\n\nClone at x: [3108] y: [-450]\n\nClone at x: ([x v] of [cube v]) y: ([y v] of [cube v])\nClone at x: [99999999999] y: [0]\n\nwhen flag clicked\nhide\n\n@collectibles9\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nif <touching (cube v)?> then\n    set [exit v] to [restart]\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [back v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (80) layers\nend\n\ngo [backward v] (60) layers\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\ngo to [back v] layer\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [not yet]> then\n    Clone at x: [2960] y: [-851]\n    Clone at x: [999999999] y: [0]\nelse\n    Clone at x: [99999999] y: []\nend\n\nClone at x: [600] y: [-250]\nClone at x: [800] y: [-250]\nClone at x: [1000] y: [-250]\nClone at x: [1200] y: [-250]\nClone at x: [9999999] y: [0]\n\nClone at x: [4350] y: [5]\nClone at x: [4545] y: [-90]\nClone at x: [5020] y: [300]\nClone at x: [5220] y: [300]\nClone at x: [5320] y: [175]\nClone at x: [4920] y: [175]\nClone at x: [5020] y: [50]\nClone at x: [5220] y: [50]\nClone at x: [100000] y: [-75]\n\nClone at x: [-120] y: [350]\nClone at x: [-120] y: [250]\nClone at x: [-120] y: [150]\n\nwhen I start as a clone\nforever\n    repeat (90)\n        change [x v] by (2)\n    end\n    repeat (90)\n        change [x v] by (-2)\n    end\nend\n\nClone at x: [500] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [700] y: [-550]\nClone at x: [600] y: [-550]\nClone at x: [-120] y: [-150]\nClone at x: [-120] y: [-350]\nClone at x: [60] y: [350]\nClone at x: [60] y: [150]\nClone at x: [60] y: [-50]\nClone at x: [60] y: [-250]\nClone at x: [999999999] y: [50]\nClone at x: [5120] y: [175]\n\nClone at x: [2960] y: [-850]\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\n@collectibles10\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n\nbroadcast (Tick v) and wait\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]\n\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\nnext costume\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I receive [setup v]\n\nClone at x: [100000] y: [40]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nif <not <touching (cube v)?>> then\n    switch costume to (coin v)\n    repeat (15)\nend\n\nwhen [space v] key pressed\n\ndelete this clone\n\nwhen I receive [setup v]\n\nClone at x: [-28] y: [-50]\nClone at x: [-28] y: [-100]\nClone at x: [-28] y: [-150]\nClone at x: [-28] y: [-200]\nClone at x: [-28] y: [-250]\nClone at x: [-28] y: [-300]\nClone at x: [-28] y: [-350]\n\nClone at x: [455] y: [-325]\nClone at x: [555] y: [-325]\nClone at x: [655] y: [-325]\nClone at x: [755] y: [-325]\nClone at x: [855] y: [-325]\n\nwhen this sprite clicked\nClone at x: [455] y: [-500]\n\nwhen I receive [1 v]\n\nClone at x: [3150] y: [-750]\n\nClone at x: [3100] y: [-700]\n\nClone at x: [3150] y: [-700]\n\nnext costume\n\ndelete this clone\n\nif <(size) = [100]> then\n    change [coins v] by (1)\nelse\n    change [coins v] by (100)\nend\n\nwhen I start as a clone\nforever\n    if <(distance to [cube v]) < [150]> then\n        set [ghost v] effect to (0)\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        wait until <not <(distance to [cube v]) < [150]>>\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n    end\n    set [ghost v] effect to (0)\nend\n\nClone at x: [450] y: [-475]\nClone at x: [650] y: [-400]\nClone at x: [750] y: [-500]\nClone at x: [9999999] y: [9999999]\n\nClone at x: [5700] y: [270]\nClone at x: [5700] y: [225]\nClone at x: [5650] y: [225]\nClone at x: [5650] y: [270]\n\nClone at x: [892] y: [538]\n\nnext costume\n\nwhen flag clicked\nClone at x: [2855] y: [-795]\nClone at x: [999999] y: [0]\n\nwhen flag clicked\nhide\n\nwhen I receive [official start v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nswitch costume to (costume3 v)\nif <(got to final level) = [not yet]> then\n    Clone at x: [3365] y: [-880]\n    Clone at x: [3462] y: [-795]\n    Clone at x: [2839] y: [-804]\n    Clone at x: [999999999] y: [0]\n    Clone at x: [999999999] y: [0]\nend\n\n@Thumbnail\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\ngo to [front v] layer\nswitch costume to (thumbnail v)\npoint in direction (90)\ngo to x: (-400) y: (0)\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.01)\nset [ghost v] effect to (100)\ngo to [front v] layer\nswitch costume to (thumbnail v)\npoint in direction (90)\ngo to x: (-400) y: (0)\nshow\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (-10)\n    change x by (((0) - (x position)) / (2))\nend\nset x to (0)\n\n@Sprite5\n\nwhen flag clicked\nset size to (120) %\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\nend\nhide\nforever\n    turn right (5) degrees\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nwhen I start as a clone\nset size to (120) %\nforever\n    turn left ((costume [number v]) * (2)) degrees\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nwhen I start as a clone\nforever\n    if <([costume # v] of [cube v]) = [18]> then\n        show\n    else\n        hide\n    end\nend\n\ngo to (cube v)\ngo to (cube v)\n\nwhen I start as a clone\nforever\n    go to x: (0) y: (0)\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-180)\nend\n\n@fire\n\nwhen flag clicked\nforever\n    switch costume to (1 v)\n    repeat (10)\n        next costume\n        wait (0.05) seconds\n    end\n    if <([costume # v] of [cube v]) = [12]> then\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nforever\n    if <(shop open?) = [no]> then\n        if <([costume # v] of [cube v]) = [18]> then\n            go to x: ([x position v] of [cube v]) y: (([y position v] of [cube v]) + (25))\n            go to [front v] layer\n            show\n            go [backward v] (10) layers\n        else\n            go to [back v] layer\n            hide\n        end\n    else\n        show\n        go to [front v] layer\n        go [forward v] (100) layers\n        go to x: (185) y: (-100)\n    end\nend\n\nwhen I start as a clone\nif <(shop open?) = [no]> then\n    set y to (([x position v] of [cube v]) - (10))\nend\nmove (pick random (-20) to (20)) steps\nset size to (75) %\nswitch costume to (12 v)\nset [speed y v] to (pick random (0.5) to (1.5))\nrepeat (100)\n    change y by (speed y)\n    change [ghost v] effect by (1)\n    change size by (-0.5)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (81) layers\nend\n\nwhen flag clicked\nforever\n\nwhen I receive [open shop v]\nset [shop opened? v] to [yes]\nforever\n    if <(shop opened?) = [yes]> then\n        go to [front v] layer\n    end\n    go to [back v] layer\nend\n\nwhen I receive [close shop v]\nset [shop opened? v] to [no]\n\n@Sprite9\n\nwhen flag clicked\nset size to (120) %\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\nend\nhide\nforever\n    turn right (5) degrees\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nwhen I start as a clone\nset size to (120) %\nforever\n    turn left ((costume [number v]) * (2)) degrees\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nwhen I start as a clone\nforever\n    if <([costume # v] of [cube v]) = [17]> then\n        show\n    else\n        hide\n    end\nend\n\ngo to (cube v)\ngo to (cube v)\n\nwhen I start as a clone\nforever\n    go to (cube v)\nend\n\nwhen flag clicked\nforever\n    go to x: (0) y: (-180)\nend\n\n@Sprite10\n\nwhen flag clicked\nhide\nset size to (120) %\nswitch costume to (costume1 v)\nrepeat (5)\n    create clone of (_myself_ v)\n    next costume\nend\nswitch costume to (costume5 v)\nforever\n    turn right (5) degrees\n    go to x: ([x position v] of [cube v]) y: (([y position v] of [cube v]) + (55))\n    go to [front v] layer\n    go [backward v] (20) layers\nend\n\nwhen I start as a clone\nset size to (175) %\nforever\n    turn left ((costume [number v]) * (1.2)) degrees\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\nwhen I start as a clone\nforever\n    if <([costume # v] of [cube v]) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\ngo to (cube v)\ngo to (cube v)\n\nwhen I start as a clone\nforever\n    go to (cube v)\nend\n\nwhen flag clicked\nforever\n    if <([costume # v] of [cube v]) = [12]> then\n        show\n    else\n        hide\n    end\nend\n\n@Sprite3\n\nwhen I start as a clone\nshow\nset size to (pick random (50) to (150)) %\nset [ghost v] effect to (50)\nchange x by (pick random (-10) to (10))\nif <([costume # v] of [cube v]) = [5]> then\n    switch costume to (costume2 v)\nelse\n    switch costume to (costume1 v)\nend\nrepeat until <(y position) > [150]>\n    change [ghost v] effect by (-1)\n    change y by ((size) / (120))\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <(pick random (0) to (1)) = [1]> then\n        repeat (pick random (5) to (20))\n            change x by (pick random (0.2) to (0.5))\n        end\n    else\n        repeat (pick random (5) to (20))\n            change x by (pick random (-0.2) to (-0.5))\n        end\n    end\nend\n\ndefine change x\n\nchange x\n\nwhen I receive [official start v]\nhide\nforever\n    go to (cube v)\n    if <not <([costume # v] of [cube v]) = [18]>> then\n        wait (pick random (0) to (5)) seconds\n        if <(got to final level) = [not yet]> then\n            create clone of (_myself_ v)\n        end\n    end\nend\n\n@Thanks!\n\nwhen flag clicked\nwait (0.05) seconds\nswitch costume to (costume1 v)\nwait until <<(item (1) of [detect v]) = [1]> and <(item (2) of [detect v]) = [1]>>\ngo to x: (0) y: (-180)\nswitch costume to (costume2 v)\nSmooth Glide x: (0) y: (-120) speed: (5)\nwait (2) seconds\nSmooth Glide x: (0) y: (-180) speed: (5)\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nswitch costume to (thanks! v)\nwait (2) seconds\nswitch costume to (nothing v)\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\n@Sprite11\n\nwhen flag clicked\nforever\n    front\n    front\nend\n\ndefine front\ngo to [front v] layer\ngo [backward v] (2) layers\n\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I receive [settings v]\nset [ghost v] effect to (20)\nSmooth Glide x: (-20) y: (0) speed: (5)\nwait (2) seconds\nwait until <not <touching (mouse-pointer v)?>>\nbroadcast (close settings page v)\nSmooth Glide x: (-150) y: (0) speed: (4)\nrepeat (2)\n    change [ghost v] effect by (40)\nend\n\nwhen flag clicked\nset [shop open? v] to [no]\ngo to x: (0) y: (-310)\nset [ghost v] effect to (100)\n\ngo to [front v] layer\n\nwhen flag clicked\nhide\n\nwhen I receive [start game v]\nshow\n\n@Sprite12\n\nwhen flag clicked\nswitch costume to (1 v)\nhide\n\nwhen I receive [close settings page v]\ndelete this clone\n\nwhen I start as a clone\nshow\nclear graphic effects\nset [ghost v] effect to (100)\nset size to (100) %\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nforever\n    if <[0] = [0]> then\n        go to [front v] layer\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [110]>\n                change size by (5)\n                change [brightness v] effect by (5)\n            end\n            set size to (110) %\n            set [brightness v] effect to (10)\n        else\n            repeat until <(size) = [100]>\n                change size by (-5)\n                change [brightness v] effect by (-5)\n            end\n            set size to (100) %\n            set [brightness v] effect to (0)\n        end\n    end\nend\n\nwait until <touching (mouse-pointer v)?>\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I receive [settings v]\nif <(music on?) = [yes]> then\n    clone icon at x: [-118] y: [50] icon number [2]\nelse\n    clone icon at x: [-118] y: [50] icon number [1]\nend\nif <(sound) = [yes]> then\n    clone icon at x: [-118] y: [-10] icon number [4]\nelse\n    clone icon at x: [-118] y: [-10] icon number [3]\nend\nif <(show coordinates) = [yes]> then\n    clone icon at x: [-118] y: [-70] icon number [6]\nelse\n    clone icon at x: [-118] y: [-70] icon number [5]\nend\nif <(Reduce lag?) = [yes]> then\n    clone icon at x: [-118] y: [-130] icon number [8]\nelse\n    clone icon at x: [-118] y: [-130] icon number [7]\nend\n\ndefine clone icon at x: (x) y: (y) icon number (icon)\nswitch costume to (icon)\ngo to x: (x) y: (y)\ncreate clone of (_myself_ v)\n\nwhen [space v] key pressed\n\nset size to (110) %\n\nwhen this sprite clicked\nif <(sound effects) = [yes]> then\n    start sound [Touch v]\nend\nif <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n    if <(costume [number v]) = [1]> then\n        switch costume to (2 v)\n        set [music on? v] to [yes]\n    else\n        switch costume to (1 v)\n        set [music on? v] to [nope]\n    end\nend\nif <<(costume [number v]) = [3]> or <(costume [number v]) = [4]>> then\n    if <(costume [number v]) = [3]> then\n        switch costume to (4 v)\n        set [sound effects v] to [no]\n    else\n        switch costume to (3 v)\n        set [sound effects v] to [yes]\n    end\nend\nif <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>> then\n    if <(costume [number v]) = [5]> then\n        switch costume to (6 v)\n        set [show coordinates v] to [yes]\n    else\n        switch costume to (5 v)\n        set [show coordinates v] to [no]\n    end\n    wait until <not <mouse down?>>\nend\nif <<(costume [number v]) = [7]> or <(costume [number v]) = [8]>> then\n    if <(costume [number v]) = [7]> then\n        switch costume to (8 v)\n        set [reduce lag? v] to [yes]\n    else\n        switch costume to (7 v)\n        set [reduce lag? v] to [no]\n    end\n    wait until <not <mouse down?>>\nend\n\nwhen flag clicked\nset [music on? v] to [yes]\nset [sound v] to [yes]\n\nrepeat (2)\n\nwhen I receive [refresh v]\nbroadcast (menu v)\n\nwhen I receive [setup v]\nbroadcast (refresh v)\n\nswitch costume to (3 v)\nset [sound v] to [no]\nstop [this script v]\n\nwhen flag clicked\nset [reduce lag? v] to [no]\n\n@Sprite13\n\nwhen flag clicked\nset [ghost v] effect to (20)\nforever\n    if <(show coordinates) = [yes]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen flag clicked\nforever\n    go to x: ([x position v] of [cube v]) y: (([y position v] of [cube v]) + (50))\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <<([x v] of [cube v]) < [0]> and <([y v] of [cube v]) < [0]>> then\n        switch costume to (costume2 v)\n    else\n        if <<([x v] of [cube v]) < [0]> and <([y v] of [cube v]) > [0]>> then\n            switch costume to (costume3 v)\n        else\n            if <<([x v] of [cube v]) > [0]> and <([y v] of [cube v]) < [0]>> then\n                switch costume to (costume4 v)\n            else\n                switch costume to (costume1 v)\n            end\n        end\n    end\nend\n\n@x coordinates\n\ndefine print\nbroadcast (delete 2 v)\nset [element 2 v] to [1]\ngo to x: ((((length of [22]) * (-38)) / (2)) + ([x position v] of [cube v])) y: (([y position v] of [cube v]) + (74))\nif <([x v] of [cube v]) < [0]> then\n    repeat ((length of ([x v] of [cube v])) - (1))\n        switch costume to (letter (element 2) of ([abs v] of ([x v] of [cube v]) ))\n        create clone of (_myself_ v)\n        change x by (15)\n        change [element 2 v] by (1)\n    end\nelse\n    repeat (length of ([x v] of [cube v]))\n        switch costume to (letter (element 2) of ([abs v] of ([x v] of [cube v]) ))\n        create clone of (_myself_ v)\n        change x by (15)\n        change [element 2 v] by (1)\n    end\nend\n\nwhen I receive [delete 2 v]\ndelete this clone\n\nwhen I start as a clone\nset size to (50) %\nshow\nforever\n    go to [front v] layer\nend\n\nset size to (100) %\n\nset size to (75) %\n\nwhen I receive [official start v]\nset [show coordinates v] to [no]\nforever\n    if <<(show coordinates) = [yes]> and <(show menu) = [yes]>> then\n        print\n    end\nend\n\nwhen flag clicked\nset [show coordinates v] to [no]\nforever\n    if <(show coordinates) = [no]> then\n        broadcast (delete 2 v)\n    end\nend\n\nwait (0.05) seconds\n\nwhen I receive [final level v]\nbroadcast (delete 2 v)\n\n@x coordinates2\n\ndefine print\nbroadcast (delete 3 v)\nset [element 3 v] to [1]\ngo to x: ((((length of [22]) * (62)) / (2)) + ([x position v] of [cube v])) y: (([y position v] of [cube v]) + (74))\nif <([y v] of [cube v]) < [0]> then\n    repeat ((length of (round ([y v] of [cube v]))) - (1))\n        switch costume to (letter (element 3) of ([abs v] of ([y v] of [cube v]) ))\n        create clone of (_myself_ v)\n        change x by (15)\n        change [element 3 v] by (1)\n    end\nelse\n    repeat (length of (round ([y v] of [cube v])))\n        switch costume to (letter (element 3) of ([abs v] of (round ([y v] of [cube v])) ))\n        create clone of (_myself_ v)\n        change x by (15)\n        change [element 3 v] by (1)\n    end\nend\n\nwhen I receive [delete 3 v]\ndelete this clone\n\nwhen I start as a clone\nset size to (50) %\nshow\nforever\n    go to [front v] layer\nend\n\nset size to (100) %\n\nset size to (75) %\n\nwhen I receive [official start v]\nset [show coordinates v] to [no]\nforever\n    if <<(show coordinates) = [yes]> and <(show menu) = [yes]>> then\n        print\n    end\nend\n\nwhen flag clicked\nset [show coordinates v] to [no]\nforever\n    if <(show coordinates) = [no]> then\n        broadcast (delete 3 v)\n    end\nend\n\nwait (0.05) seconds\n\nwhen I receive [final level v]\nbroadcast (delete 3 v)\n\n@collectibles15\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    broadcast (win v)\n    delete this clone\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen flag clicked\nhide\n\ndefine attract (speed)\n\nwhen I receive [setup next world v]\nset [checkpoints v] to [yes]\nswitch costume to (green flag v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nClone at x: [1100] y: [550]\nClone at x: [99999999] y: [999999]\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (115) layers\n    set size to (100) %\nend\n\n@Sprite19\n\nwhen flag clicked\nhide\n\nwhen I receive [submerged v]\nset [start effect v] to [-10]\nswitch costume to (costume1 v)\nshow\ncreate clone of (_myself_ v)\nrepeat (50)\n    set x to (pick random (start effect) to ([abs v] of (start effect) ))\n    set y to (pick random (start effect) to ([abs v] of (start effect) ))\n    change [start effect v] by (0.2)\nend\nwait (2) seconds\nbroadcast (fade out v)\nwait (2) seconds\nbroadcast (official start v)\nhide\nbroadcast (delete clone v)\n\nwhen I start as a clone\ngo to [front v] layer\nset [ghost v] effect to (100)\nswitch costume to (costume3 v)\nrepeat (100)\n    change [ghost v] effect by (-1)\nend\n\nwhen I receive [fade out v]\nrepeat (10)\n    change [brightness v] effect by (-10)\nend\n\nwhen I receive [delete clone v]\ndelete this clone\n\n@Sprite20\n\nwhen flag clicked\nhide\n\nwhen I receive [official start v]\n\nswitch costume to (costume23 v)\n\nwhen I receive [introduction v]\ngo to [front v] layer\nwait (2) seconds\nshow\nswitch costume to (costume7 v)\nset [brightness v] effect to (0)\nbroadcast (transition v)\nrepeat (28)\n    next costume\n    wait (0.01) seconds\nend\nwait (2) seconds\nnext costume\nbroadcast (star thingy v)\nwait (4) seconds\nhide\nbroadcast (Submerged v)\n\nswitch costume to (costume2 v)\n\nnext costume\nwait (5) seconds\n\n@Sprite21\n\nwhen flag clicked\nhide\n\nwhen I receive [transition v]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nwait (0.5) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (2)\nend\nwait (2) seconds\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\nwait (0.8) seconds\nhide\n\nwhen I receive [introduction v]\nshow\nforever\n    go to [front v] layer\nend\n\n@Sprite22\n\nwhen flag clicked\nhide\ngo to x: (-10) y: (100)\n\nwhen I receive [star thingy v]\ngo to [front v] layer\ngo [backward v] (1) layers\nshow\nrepeat (80)\n    change y by (-1)\nend\nhide\n\nhide\n\n@collectibles11\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nif <touching (cube v)?> then\n    set [ghost v] effect to (0)\n    if <(got to final level) = [not yet]> then\n        broadcast (final level v)\n        set [got to final level v] to [yes]\n    end\nend\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\nwhen I start as a clone\nforever\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (50) layers\n    set size to (100) %\nend\n\nwhen I receive [open v]\n\nwhen flag clicked\nset [checkpoints v] to [yes]\nswitch costume to (key v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nClone at x: [2832] y: [-825]\nClone at x: [5665] y: [258]\n\nwhen I start as a clone\nset [ghost v] effect to (20)\nforever\n    change [color v] effect by (3)\nend\n\n@Sprite23\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nwhen I receive [final level v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [final level v]\nswitch costume to (costume1 v)\nforever\n    go to [front v] layer\n    go [backward v] (14) layers\nend\n\nwhen I receive [give reward v]\nchange [coins v] by (100)\nwait (1) seconds\nnext costume\nwait (1) seconds\nbroadcast (setup next world v)\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nset [show menu v] to [yes]\n\n@Sprite24\n\nwhen I start as a clone\nset y to (-125)\nset size to (0) %\nswitch costume to (id)\nrepeat (300)\n    show\n    set [brightness v] effect to (100)\n    change size by (((size) - (80)) / (-3))\n    change [ghost v] effect by (0.5)\n    change y by (1)\nend\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [final level v]\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nshow\nforever\n    go to [front v] layer\nend\n\nwhen I receive [final level v]\nwait (1) seconds\nwait (1) seconds\nswitch costume to (black v)\nwait (0.2) seconds\nhide\nset [id v] to [0]\nrepeat (4)\n    change [id v] by (1)\n    create clone of (_myself_ v)\n    wait (2) seconds\nend\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (5.5) seconds\nbroadcast (clone buttons v)\nwait (0.5) seconds\n\n@Sprite28\n\nwhen flag clicked\nhide\nset [ghost v] effect to (100)\nset size to (100) %\nforever\n    go to [front v] layer\nend\n\nwhen I receive [win v]\nset volume to (0) %\nshow\nset [start effect v] to [-10]\nswitch costume to (win screen v)\nrepeat (50)\n    set x to (pick random (start effect) to ([abs v] of (start effect) ))\n    set y to (pick random (start effect) to ([abs v] of (start effect) ))\n    change [start effect v] by (0.2)\n    change [ghost v] effect by (-2)\nend\nwait (0.5) seconds\nprint\nswitch costume to (win screen v)\ngo to x: (0) y: (0)\nwait (10) seconds\nstop [all v]\n\nwhen flag clicked\nset [seconds v] to [0]\nforever\n    change [seconds v] by (1)\n    wait (1) seconds\nend\n\ndefine print\nset [digit v] to [1]\nset [clone v] to [1]\nrepeat (length of (seconds))\n    switch costume to (letter (digit) of (seconds))\n    create clone of (_myself_ v)\n    change x by (25)\n    change [digit v] by (1)\n    set [clone v] to (digit)\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\ngo to x: (250) y: (-110)\nrepeat (50)\n    change [ghost v] effect by (-2)\nend\n\ndefine Smooth Glide x: (x) y: (y) speed: (speed)\nrepeat until <<(round (x position)) = (round (x))> and <(round (y position)) = (round (y))>>\n    change x by (((round (x)) - (round (x position))) / (speed))\n    change y by (((round (y)) - (round (y position))) / (speed))\nend\ngo to x: (x) y: (y)\n\nwhen I start as a clone\nSmooth Glide x: ((-35) + ((clone) * (25))) y: (-110) speed: (5)\ngo to x: ((-35) + ((clone) * (25))) y: (-110)\n\nwhen [space v] key pressed\ndelete this clone\n\n@Sprite26\n\nwhen flag clicked\nhide\n\nwhen I receive [setup next world v]\nshow\ngo to [front v] layer\nforever\n    go to x: (([x position v] of [cube v]) / (2)) y: (([y position v] of [cube v]) / (2))\nend\n\nwhen I receive [setup next world v]\nforever\n    if <(costume #) = [11]> then\n        set [ghost v] effect to (30)\n    else\n        clear graphic effects\n    end\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\n@Sprite27\n\nwhen I receive [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]\nswitch costume to (costume1 v)\nif <(got to final level) = [not yet]> then\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: [360] y: [0]\n    Clone at x: [2200] y: [-500]\n    Clone at x: [99999999] y: [0]\nelse\n    switch costume to (costume7 v)\n    Clone at x: [0] y: [360]\n    Clone at x: [500] y: [0]\n    Clone at x: [360] y: [0]\n    Clone at x: [10000] y: [0]\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 I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (100) layers\nend\n\nClone at x: [360] y: [0]\n\nClone at x: [360] y: [0]\nClone at x: [0] y: [500]\nClone at x: [360] y: [-500]\nClone at x: [600] y: [500]\nClone at x: [-240] y: [-500]\nClone at x: [360] y: [0]\nClone at x: [360] y: [100]\nClone at x: [360] y: [0]\nClone at x: [500] y: [0]\nClone at x: [500] y: [0]\nClone at x: [360] y: [0]\n\nwhen flag clicked\nhide\n\nwhen [1 v] key pressed\nset [got to final level v] to [yes]\n\nwhen [2 v] key pressed\nchange [lives v] by (1)\nwait until <not <key (2 v) pressed?>>\n\nClone at x: [360] y: [0]\n\nwhen [space v] key pressed\nset [coins v] to [100]\n\n@collectibles12\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (50) layers\n    set size to (100) %\nend\n\nwhen I receive [open v]\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (key v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [yes]> then\n    Clone at x: [894] y: [306]\n    Clone at x: [999999] y: [0]\nend\nClone at x: [1000000] y: [0m]\n\nClone at x: [2832] y: [-825]\nClone at x: [5665] y: [258]\n\nwhen I receive [unlock v]\ndelete this clone\n\n@collectibles14\n\nwhen I receive [flag v]\nhide\n\nwhen I receive [tick v]\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nbroadcast (Tick v) and wait\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)\nchange [collected max v] by (1)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nnext costume\n\nClone at x: [892] y: [538]\n\nClone at x: [650] y: [367]\nClone at x: [893] y: [510]\nClone at x: [885] y: [556]\n\nwhen flag clicked\nset [checkpoint v] to [0]\n\nClone at x: [978] y: [210]\nClone at x: [997] y: [220]\nClone at x: [1020] y: [229]\nClone at x: [1050] y: [211]\nClone at x: [1092] y: [204]\n\nwhen I start as a clone\ngo to [front v] layer\nclear graphic effects\n\ndelete this clone\n\nplay sound [Coin v] until done\n\nclear sound effects\n\nwhen flag clicked\nforever\n\nwhen I start as a clone\nforever\n    go to [front v] layer\n    go [backward v] (50) layers\n    set size to (100) %\nend\n\nwhen I receive [open v]\n\nwhen I receive [setup v]\nset [checkpoints v] to [yes]\nswitch costume to (key v)\nclear sound effects\nhide\nset [x v] to [0]\nset [collected max v] to [0]\nset [y v] to [0]\nset size to (100) %\nif <(got to final level) = [yes]> then\n    Clone at x: [894] y: [306]\n    Clone at x: [999999] y: [0]\nend\nClone at x: [1000000] y: [0m]\n\nClone at x: [2832] y: [-825]\nClone at x: [5665] y: [258]\n\nwhen I start as a clone\nset [answering v] to [no]\nforever\n    if <<touching (cube v)?> and <(answering) = [no]>> then\n        set [answering v] to [yes]\n        ask [Enter code] and wait\n        wait until <not <(answer) = []>>\n        check answer\n        wait (1) seconds\n        set [answering v] to [no]\n    end\nend\n\ndefine check answer\nif <(answer) = [5082]> then\n    broadcast (unlock v)\nend\n\nwhen I receive [unlock v]\ndelete this clone\n\n@Sprite25\n\nwhen flag clicked\nhide\n\nwhen I receive [final level v]\nwait (10) seconds\n\ndefine Make buttons\nswitch costume to (costume3 v)\ngo to x: (-50) y: (0)\ncreate clone of (_myself_ v)\nswitch costume to (costume4 v)\ngo to x: (50) y: (0)\ncreate clone of (_myself_ v)\nswitch costume to (costume1 v)\ngo to x: (-50) y: (0)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\ngo to x: (50) y: (0)\ncreate clone of (_myself_ v)\ngo to x: (0) y: (75)\nset [ghost v] effect to (100)\nshow\nswitch costume to (costume5 v)\nrepeat (20)\n    change [ghost v] effect by (-5)\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\ngo to x: (-100) y: (0)\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I start as a clone\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nset [brightness v] to [-100]\nforever\n    if <<(costume [number v]) = [2]> or <(costume [number v]) = [4]>> then\n        if <touching (mouse-pointer v)?> then\n            repeat until <(brightness) > [-1]>\n                change [brightness v] by (10)\n                set [brightness v] effect to (brightness)\n            end\n        else\n            repeat until <(brightness) < [-100]>\n                change [brightness v] by (-10)\n                set [brightness v] effect to (brightness)\n            end\n        end\n    end\nend\n\nset size to (120) %\n\nset size to (100) %\n\nset size to (120) %\n\nset size to (100) %\n\nwhen flag clicked\nset [show menu v] to [yes]\n\nwhen I receive [final level v]\nset [show menu v] to [no]\n\nwhen this sprite clicked\nif <<(costume [number v]) = [1]> or <(costume [number v]) = [2]>> then\n    broadcast (give reward v)\nelse\n    ask [] and wait\n    if <(answer) = [yes]> then\n        stop [all v]\n    end\nend\n\nwhen I receive [give reward v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I receive [clone buttons v]\nMake buttons\n\nwhen I receive [final level v]\nforever\n    go to [front v] layer\nend\n\n@cloud\n\nwhen flag clicked\nreset timer\nhide\n\nwhen flag clicked\n\nwait until <<(timer) > [7.2]> or <key (space v) pressed?>>\n\nwhen I receive [connected :d v]\nstop [other scripts in sprite v]\nstart sound [wadasdalan woooooo v]\nrepeat (10)\n    change size by (((size) - (250)) / (-3))\n    change [ghost v] effect by (10)\nend\nhide\nwait (0.4) seconds\nbroadcast (introduction v)\n\nwhen I receive [start game v]\nshow\ngo to x: (0) y: (0)\nset size to (200) %\nset [ghost v] effect to (100)\nrepeat (100)\n    change size by (((size) - (100)) / (-3))\n    change [f v] by (1)\n    if <[29] < (f)> then\n        set [f v] to [1]\n    end\n    switch costume to (join [f] (f))\n    change [ghost v] effect by (-10)\nend\nbroadcast (Connected :D v)\n\n@Intro for @bookdog17\n\nwhen flag clicked\n@bookdog17 Intro\n\ndefine @bookdog17 Intro\nset [sequence v] to [1]\nset [i v] to [0]\nset [i2 v] to [0]\nhide\nclear graphic effects\npoint in direction (90)\ngo to x: (0) y: (0)\nset size to (100) %\nset volume to (200) %\nstart sound [Xaf - Inferno v]\nswitch costume to (dot v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [2]>\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nswitch costume to (logo2 v)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nswitch costume to (logo3 v)\ncreate clone of (_myself_ v)\nwait (.1) seconds\nswitch costume to (logo4 v)\ncreate clone of (_myself_ v)\nwait (0.7) seconds\nset [sequence v] to [3]\nwait (2.9) seconds\nset [sequence v] to [5]\nswitch costume to (complete logo v)\ncreate clone of (_myself_ v)\nswitch costume to (circle :p v)\ncreate clone of (_myself_ v)\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\nParticles UwU\nwait (1.15) seconds\nset [sequence v] to [6]\nwait until <(Sequence) = [7]>\nswitch costume to (bars v)\ngo to x: (0) y: (-135)\nrepeat (5)\n    create clone of (_myself_ v)\n    change y by (72)\n    wait (.05) seconds\nend\ngo to x: (0) y: (0)\nwait until <(Sequence) = [8]>\ngo to x: (-170) y: (0)\nswitch costume to (name v)\nrepeat (5)\n    create clone of (_myself_ v)\n    change x by (85)\n    next costume\n    wait (.05) seconds\nend\ngo to x: (0) y: (0)\nwait until <(Sequence) = [10]>\nswitch costume to (filler v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [11]>\nbroadcast (Start Game v)\n\nwhen I start as a clone\nif <(costume [number v]) < [5]> then\n    show\n    go to x: (240) y: (0)\n    point in direction (45)\n    set size to (0) %\n    set [ghost v] effect to (100)\n    repeat until <(Sequence) = [3]>\n        change [ghost v] effect by (-5)\n        set [i v] to (((i) * (.8)) + (((90) - (direction)) / (5)))\n        turn right (i) degrees\n        change size by (((75) - (size)) / (5))\n        change x by (((0) - (x position)) / (5))\n    end\n    repeat (20)\n        set [i v] to (((i) * (.8)) + (((100) - (size)) / (5)))\n        change size by (i)\n        turn right (((100) - (direction)) / (5)) degrees\n    end\n    if <(costume [number v]) = [1]> then\n        set [i v] to [10]\n        set [i2 v] to [10]\n        repeat (40)\n            turn right ((x position) / (40)) degrees\n            change [ghost v] effect by (3)\n            change x by (i2)\n            set [i2 v] to ((i2) * (.9))\n            change y by (i)\n            change [i v] by (-1)\n            change size by (-1)\n        end\n        set [sequence v] to [4]\n        delete this clone\n    else\n        if <(costume [number v]) = [2]> then\n            set [i v] to [15]\n            set [i2 v] to [5]\n            repeat (40)\n                turn right ((x position) / (40)) degrees\n                change [ghost v] effect by (3)\n                change x by (i2)\n                set [i2 v] to ((i2) * (.9))\n                change y by (i)\n                change [i v] by (-1)\n                change size by (-1)\n            end\n            delete this clone\n        else\n            if <(costume [number v]) = [3]> then\n                set [i v] to [10]\n                set [i2 v] to [20]\n                repeat (40)\n                    turn right ((x position) / (40)) degrees\n                    change [ghost v] effect by (3)\n                    change x by (i2)\n                    set [i2 v] to ((i2) * (.9))\n                    change y by (i)\n                    change [i v] by (-1)\n                    change size by (-1)\n                end\n                delete this clone\n            else\n                set [i v] to [15]\n                set [i2 v] to [-5]\n                repeat (40)\n                    turn right ((x position) / (40)) degrees\n                    change [ghost v] effect by (3)\n                    change x by (i2)\n                    set [i2 v] to ((i2) * (.9))\n                    change y by (i)\n                    change [i v] by (-1)\n                    change size by (-1)\n                end\n                delete this clone\n            end\n        end\n    end\nend\nif <<(costume [number v]) = [5]> or <(costume [number v]) = [6]>> then\n    hide\n    switch costume to (dot v)\n    set size to (50) %\n    set [ghost v] effect to (100)\n    go to x: (0) y: (50)\n    point in direction (90)\n    show\n    set [i v] to [8]\n    repeat (40)\n        if <not <(y position) < [0]>> then\n            change [ghost v] effect by (-10)\n            change y by (i)\n            change [i v] by (-1)\n        end\n    end\n    set y to (0)\n    repeat (15)\n        switch costume to (sizehackie v)\n        set size to (i) %\n        change size by (((1400) - (size)) / (3))\n        set [i v] to (size)\n        switch costume to (dot v)\n    end\n    set [sequence v] to [2]\n    wait until <(Sequence) = [4]>\n    repeat (15)\n        set size to (i) %\n        change size by (((50) - (size)) / (2.3))\n        set [i v] to (size)\n        switch costume to (dot v)\n    end\n    set [i v] to [12.5]\n    repeat (40)\n        change [ghost v] effect by (8)\n        change size by (-0.4)\n        change y by (i)\n        change [i v] by (-2)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [7]> then\n    show\n    set size to (0) %\n    go to x: (0) y: (0)\n    point in direction (120)\n    set [ghost v] effect to (100)\n    repeat until <(Sequence) = [6]>\n        change [ghost v] effect by (-10)\n        set [i v] to (((i) * (.8)) + (((90) - (direction)) / (5)))\n        turn right (i) degrees\n        set y to ((10) * ([cos v] of (((timer) - (1)) * (200)) ))\n        set [i2 v] to (((i2) * (.8)) + (((100) - (size)) / (5)))\n        change size by (i2)\n    end\n    set [ghost v] effect to (0)\n    repeat (20)\n        change [ghost v] effect by (5)\n        change size by (((0) - (size)) / (5))\n        set [i v] to (((i) * (.8)) + (((45) - (direction)) / (5)))\n        turn right (i) degrees\n    end\n    set [sequence v] to [7]\n    delete this clone\nend\nif <<(costume [number v]) = [8]> or <(costume [number v]) = [9]>> then\n    hide\n    set size to (20) %\n    set [ghost v] effect to (80)\n    set [i2 v] to [5]\n    show\n    repeat (50)\n        switch costume to (another size hack v)\n        set size to (i) %\n        change size by (i2)\n        set [i v] to (size)\n        change [i2 v] by (2)\n        switch costume to (circle :p v)\n    end\nend\nif <(costume [number v]) = [10]> then\n    hide\n    set [ghost v] effect to (0)\n    set [brightness v] effect to (-100)\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [front v] layer\n    show\n    repeat (40)\n        go to [front v] layer\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [11]> then\n    show\n    go [backward v] (2) layers\n    set size to (pick random (80) to (120)) %\n    set [i v] to (pick random (-20) to (20))\n    set [i2 v] to (pick random (10) to (20))\n    set [ghost v] effect to (pick random (10) to (40))\n    set [brightness v] effect to (pick random (-20) to (20))\n    repeat until <touching (_edge_ v)?>\n        change [ghost v] effect by (2)\n        change x by (i)\n        change y by (i2)\n        change [i2 v] by (-2)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [12]> then\n    show\n    go to x: (0) y: (y position)\n    set size to (0) %\n    repeat until <(round (size)) = [100]>\n        change size by (((100) - (size)) / (5))\n    end\n    wait (0.5) seconds\n    repeat until <(round (x position)) = [465]>\n        change x by (((465) - (x position)) / (5))\n        change [ghost v] effect by (5)\n    end\n    set [sequence v] to [8]\n    delete this clone\nend\nif <<(costume [number v]) > [12]> and <[18] > (costume [number v])>> then\n    show\n    go to x: (x position) y: (-360)\n    point in direction (45)\n    set size to (0) %\n    set [ghost v] effect to (100)\n    repeat (60)\n        change [ghost v] effect by (-5)\n        set [i2 v] to (((i2) * (.8)) + (((0) - (y position)) / (5)))\n        set [i v] to (((i2) * (.8)) + (((93) - (size)) / (5)))\n        change size by (i)\n        change y by (i2)\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    set [sequence v] to [9]\n    set [i v] to [0]\n    set [i2 v] to [0]\n    clear graphic effects\n    go to x: (x position) y: (0)\n    repeat (30)\n        change [brightness v] effect by (5)\n        change x by (((0) - (x position)) / (5))\n        change size by (-1)\n    end\n    set [sequence v] to [10]\n    delete this clone\nend\nif <(costume [number v]) = [18]> then\n    go to x: (-500) y: (500)\n    show\n    clear graphic effects\n    repeat (20)\n        go to x: ((x position) / (1.2)) y: ((y position) / (1.2))\n    end\n    wait (.05) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    wait (0.3) seconds\n    set [sequence v] to [11]\n    delete this clone\nend\n\ndefine Particles UwU\ngo [backward v] (1) layers\nswitch costume to (particle v)\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\n