Sugarblob | A Scrolling Platformer |

Instructions: Finally after 3 weeks of work it's finally here - Sugarblob. \n\nThis is one of my best projects. Actually my ONLY good project that is. And I love this kind of games.\n\nInstructions\n--------------------\n- WASD or Arrow Keys\n- Space to shoot element if you have any.\n- Find the treasure.\n- 7 levels.\n- Click the buddies to go to the next costume if you bought any.\n- Click on Blob to change his skin if you bought any.\n- Press 1 to make the buddies show again if they hide.\n- You will not lose your progress when you click the stop sign unless someone else is playing it the same time as you, I don't know.\n- Go through the portals to advance to the next level. \n- Bounce over the Ghosts to defeat them. Or use your elements but you don't get coins for the element hit. \n- If you are a member and ONLY a member you can buy the skins. Read Notes & Credits for more information.\n- You can buy square if you are a normal player.\n\nEnjoy!

@Stage\n\nwhen flag clicked\nclear graphic effects\nswitch backdrop to (backdrop1 v)\n\nwhen I receive [menu v]\nclear graphic effects\nswitch backdrop to (menu backdrop v)\n\nwhen I receive [game v]\nswitch backdrop to (game backdrop v)\nset [ghost v] effect to (20)\n\nwhen I receive [front page v]\nset [music v] to [no]\nwait (.5) seconds\nstart sound [theme v]\nwait until <(GAME?) = [On]>\nstop all sounds\nforever\n    play sound [Open Secrets v] until done\nend\n\nwhen I receive [front page v]\nset volume to (70) %\nstop all sounds\n\nwhen I receive [... v]\nif <(VOLUME?) = [Muted]> then\n    set [timer v] to ((timer) + (.1))\n    set volume to (0) %\nelse\n    set volume to (70) %\nend\n\nwhen I receive [winner!!! v]\nswitch backdrop to (game win backdrop v)\nset [ghost v] effect to (20)\n\n@blank\n\n@Blob\n\ndefine game on\nset rotation style [left-right v]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset size to (25) %\nset [resistance v] to [no]\nset [lives v] to [2]\nclear graphic effects\nif <(LEVEL) = [1]> then\n    set [x v] to [-53]\n    set [y v] to [0]\n    set [scroll x v] to [0]\n    set [scroll y v] to [0]\nelse\n    if <(LEVEL) = [2]> then\n        set [x v] to [-300]\n        set [y v] to [0]\n        set [scroll x v] to [300]\n        set [scroll y v] to [0]\n    else\n        if <(LEVEL) = [3]> then\n            set [x v] to [0]\n            set [y v] to [0]\n            set [scroll x v] to [0]\n            set [scroll y v] to [-50]\n        else\n            if <(LEVEL) = [4]> then\n                set [x v] to [0]\n                set [y v] to [0]\n                set [scroll x v] to [550]\n                set [scroll y v] to [0]\n            else\n                if <(LEVEL) = [5]> then\n                    set [x v] to [0]\n                    set [y v] to [0]\n                    set [scroll x v] to [0]\n                    set [scroll y v] to [0]\n                else\n                    if <(LEVEL) = [6]> then\n                        set [x v] to [0]\n                        set [y v] to [0]\n                        set [scroll x v] to [0]\n                        set [scroll y v] to [0]\n                    else\n                        if <(LEVEL) = [7]> then\n                            set [x v] to [170]\n                            set [y v] to [0]\n                            set [scroll x v] to [0]\n                            set [scroll y v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nshow\n\nwhen flag clicked\nshow list [costumes v]\nhide\nif <not <[costumes v] contains [Default]?>> then\n    add [Default] to [costumes v]\nend\n\nwhen I receive [play game v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    game on\n    repeat until <(EXIT) > []>\n        tick\n        broadcast (Tick v) and wait\n    end\n    if <(EXIT) = [Win]> then\n        win\n        broadcast (MENU v) and wait\n    end\n    if <(EXIT) = [Dead]> then\n        start sound [Disconnect v]\n        die\n        broadcast (MENU v) and wait\n    end\n    if <(GAME?) = [Off]> then\n        stop [this script v]\n    end\nend\n\nwhen I receive [green flag v]\ngo to [front v] layer\nhide\n\ndefine change player y by (sy)\nchange [in air v] by (1)\nchange [y v] by (sy)\nposition\nrepeat until <not <<touching (platforms v)?> or <touching (moving platforms v)?>>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    position\n    set [sy v] to [0]\nend\nrepeat until <not <touching (jumpthrough hitbox v)?>>\n    if <<(sy) > [15]> or <key (down arrow v) pressed?>> 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)\nchange [x v] by (sx)\nposition\nif <<touching (platforms v)?> or <touching (moving platforms v)?>> then\n    repeat (12)\n        change [y v] by (1)\n        position\n        if <not <<touching (platforms v)?> or <touching (moving platforms v)?>>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [in air v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <<touching (platforms v)?> or <touching (moving platforms v)?>>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        position\n    end\nend\n\ndefine tick\nswitch costume \nbroadcast (... v)\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n    point in direction (-90)\n    change [sx v] by (-2)\nend\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n    point in direction (90)\n    change [sx v] by (2)\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [.9]> then\n    change player x by (round (sx))\nend\nif <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<(In Air) < [4]> and <not <touching (water v)?>>> then\n        set [sy v] to (JUMP HEIGHT)\n    end\nend\nif <(sy) > [-17]> then\n    change [sy v] by (-2)\nend\nchange player y by (sy)\ntrap die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nposition\nif <(x) < [-220]> then\n    set [x v] to [-220]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (2)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nposition\nif <(y) < [-180]> then\n    set [exit v] to [Dead]\nend\nif <touching (water v)?> then\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [sx v] by (-1)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [sx v] by (1)\n    end\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        set [sy v] to [8]\n    else\n        if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n            set [sy v] to [-2]\n        else\n            set [sy v] to [-0.5]\n        end\n    end\nend\nif <touching (ladder v)?> then\n    set [sy v] to [2]\n    if <<<key (w v) pressed?> or <key (up arrow v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n        change [sy v] by (4)\n    end\n    if <<<key (down arrow v) pressed?> or <key (s v) pressed?>> or <<mouse down?> and <(y position) > (mouse y)>>> then\n        change [sy v] by (-4)\n    end\n    if <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(x position) > (mouse x)>>> then\n        change [sx v] by (0.5)\n    end\n    if <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > (x position)>>> then\n        change [sx v] by (-0.5)\n    end\nend\nif <touching (trampoline v)?> then\n    set [sy v] to [30]\nend\n\ndefine trap die\nif <not <(RESISTANCE) = [yes]>> then\n    if <<touching (enemy2 v)?> or <touching (spinning spikes v)?>> then\n        if <(LIVES) > [1]> then\n            change [lives v] by (-1)\n            broadcast (RESISTANCE v)\n        else\n            start sound [Disconnect v]\n            set [exit v] to [Dead]\n        end\n    end\n    if <touching (enemy v)?> then\n        if <(sy) < [0]> then\n            set [sy v] to [20]\n            broadcast (Enemy Death v)\n        else\n            if <(LIVES) > [1]> then\n                change [lives v] by (-1)\n                broadcast (RESISTANCE v)\n            else\n                start sound [Disconnect v]\n                set [exit v] to [Dead]\n            end\n        end\n    end\n    if <touching (lava v)?> then\n        set [exit v] to [Dead]\n    end\nend\nif <touching (exit v)?> then\n    set [exit v] to [Win]\n    if <(LEVEL) = [1]> then\n        broadcast (level 1 complete v)\n    end\n    if <(LEVEL) = [2]> then\n        broadcast (level 2 complete! v)\n    end\n    if <(LEVEL) = [3]> then\n        broadcast (level 3 complete! v)\n    end\n    if <(LEVEL) = [4]> then\n        broadcast (level 4 complete! v)\n    end\n    if <(LEVEL) = [5]> then\n        broadcast (level 5 complete! v)\n    end\n    if <(LEVEL) = [6]> then\n        broadcast (level 6 complete! v)\n    end\n    if <(LEVEL) = [7]> then\n        broadcast (level 7 complete! v)\n    end\nend\n\ndefine die\nset [exit v] to []\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\nwait (0.5) seconds\n\ndefine win\nset rotation style [all around v]\npoint towards ((0) - ([direction v] of [exit v]))\nrepeat (10)\n    change [ghost v] effect by (10)\n    change size by (-1)\n    change x by (1)\nend\nhide\nwait (0.5) seconds\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nset [jump height v] to [17]\n\nwhen I receive [resistance v]\nwait (3) seconds\nset [resistance v] to [no]\n\nwhen I receive [resistance v]\nset [resistance v] to [yes]\nrepeat (10)\n    set [ghost v] effect to (100)\n    wait (.1) seconds\n    clear graphic effects\n    wait (.1) seconds\nend\nset [resistance v] to [no]\n\nwhen I receive [game v]\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\ndefine switch costume \nset [element costume v] to (COSTUME)\nswitch costume to (COSTUME)\nif <<<touching (mouse-pointer v)?> and <mouse down?>> and <(MEMBERSHIP?) = [Yes]>> then\n    set [costume v] to (item (item #) of [costumes v])\n    change [item # v] by (1)\n    if <(length of [costumes v]) < (item #)> then\n        set [item # v] to [1]\n    end\n    wait (.5) seconds\nend\n\nwhen I receive [game v]\nif <[members v] contains (username)?> then\n    set [membership? v] to [Yes]\nelse\n    set [membership? v] to [Yes]\nend\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [setup v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (lvl 1.1 v)\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [550] y: [0]\n    clone at x: [360] y: [400]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (lvl 2.1 v)\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\n    clone at x: [360] y: [0]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (lvl 3.1 v)\n    clone at x: [0] y: [0]\n    clone at x: [200] y: [0]\n    clone at x: [300] y: [0]\n    clone at x: [300] y: [0]\n    clone at x: [1500] y: [0]\n    clone at x: [630] y: [550]\n    clone at x: [0] y: [-200]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (lvl 3.9 v)\n    clone at x: [0] y: [0]\n    clone at x: [900] y: [40]\n    clone at x: [200] y: [0]\n    clone at x: [190] y: [-100]\n    clone at x: [400] y: [0]\n    clone at x: [1060] y: [0]\n    clone at x: [400] y: [430]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (lvl 5.0 v)\n    clone at x: [0] y: [-20]\n    clone at x: [1665] y: [155]\n    clone at x: [415] y: [175]\n    clone at x: [20] y: [0]\n    clone at x: [850] y: [0]\n    clone at x: [400] y: [-150]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (lvl 6.0 v)\n    clone at x: [300] y: [0]\n    clone at x: [900] y: [510]\nend\nif <(LEVEL) = [7]> then\n    switch costume to (lvl 7.0 v)\n    clone at x: [0] y: [0]\n    clone at x: [500] y: [200]\n    clone at x: [700] y: [350]\n    clone at x: [308] y: [90]\n    clone at x: [500] y: [-300]\n    clone at x: [950] y: [-455]\nend\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\ndefine position x: (x) y: (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 [tick v]\nposition x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\n@GRAPHICS\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    Clone at x: [2060] y: [400]\n    switch costume to (graph6 v)\n    Clone at x: [3030] y: [-30]\n    switch costume to (graph3 v)\n    Clone at x: [2670] y: [520]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    switch costume to (graph6 v)\n    Clone at x: [2200] y: [20]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    switch costume to (graph6 v)\n    Clone at x: [3700] y: [250]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    switch costume to (graph6 v)\n    Clone at x: [3460] y: [470]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    switch costume to (graph6 v)\n    Clone at x: [3650] y: [280]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [40]\n    switch costume to (graph3 v)\n    Clone at x: [1620] y: [630]\n    switch costume to (graph6 v)\n    Clone at x: [2250] y: [-30]\nend\nif <(LEVEL) = [7]> then\n    switch costume to (blank v)\n    Clone at x: [-80] y: [160]\n    switch costume to (graph4 v)\n    Clone at x: [360] y: [160]\n    switch costume to (graph2 v)\n    Clone at x: [1508] y: [440]\n    switch costume to (graph3 v)\n    Clone at x: [2000] y: [430]\n    switch costume to (graph6 v)\n    Clone at x: [4550] y: [-30]\nend\nset [x v] to [-500]\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\nnext costume\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\n    go to [back v] layer\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [... v]\nif <(costume [number v]) = [2]> then\n    set [ghost v] effect to (40)\nelse\n    clear graphic effects\nend\n\n@Jumpthrough HITBOX\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume v)\n    Clone at x: [1760] y: [-130]\n    Clone at x: [1815] y: [-130]\n    Clone at x: [1870] y: [-130]\n    Clone at x: [1925] y: [-130]\n    Clone at x: [1980] y: [-130]\n    Clone at x: [2035] y: [-130]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [970] y: [90]\n    Clone at x: [1025] y: [90]\n    Clone at x: [1080] y: [90]\n    Clone at x: [1135] y: [90]\n    Clone at x: [1190] y: [90]\n    Clone at x: [1245] y: [90]\n    Clone at x: [1300] y: [90]\n    Clone at x: [1355] y: [90]\nend\nif <(LEVEL) = [5]> then\n    Clone at x: [1130] y: [70]\n    Clone at x: [1350] y: [70]\n    Clone at x: [1570] y: [70]\nend\nif <(LEVEL) = [6]> then\n    Clone at x: [1700] y: [-115]\n    Clone at x: [1755] y: [-115]\n    Clone at x: [1810] y: [-115]\n    Clone at x: [1865] y: [-115]\n    Clone at x: [1920] y: [-115]\n    Clone at x: [1975] y: [-115]\n    Clone at x: [2030] y: [-115]\n    Clone at x: [2085] y: [-115]\n    Clone at x: [2140] y: [-115]\n    Clone at x: [2195] y: [-115]\nend\nif <(LEVEL) = [7]> then\n    Clone at x: [2040] y: [-100]\n    Clone at x: [2260] y: [-100]\n    Clone at x: [2480] y: [-100]\n    Clone at x: [2700] y: [-100]\nend\nset [x v] to [-500]\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    set [brightness v] effect to (15)\n    set [color v] effect to (170)\n    show\nelse\n    hide\nend\n\n@Exit\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (costume1 v)\n    Clone at x: [3030] y: [-30]\nelse\n    if <(LEVEL) = [2]> then\n        switch costume to (costume1 v)\n        Clone at x: [2200] y: [20]\n    else\n        if <(LEVEL) = [3]> then\n            switch costume to (costume1 v)\n            Clone at x: [3700] y: [250]\n        else\n            if <(LEVEL) = [4]> then\n                switch costume to (costume1 v)\n                Clone at x: [3460] y: [470]\n            else\n                if <(LEVEL) = [5]> then\n                    switch costume to (costume1 v)\n                    Clone at x: [3650] y: [280]\n                else\n                    if <(LEVEL) = [6]> then\n                        switch costume to (costume1 v)\n                        Clone at x: [2250] y: [-30]\n                    else\n                        if <(LEVEL) = [7]> then\n                            switch costume to (costume1 v)\n                            Clone at x: [4550] y: [-30]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nset [x v] to [-500]\n\ndefine Clone at x: (x) y: (y)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [back v] layer\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\n@Water\n\nwhen I receive [setup v]\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (blank v)\n    clone at x: [845] y: [-90]\n    clone at x: [1000] y: [-157]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (lvl 2.1 v)\nend\nif <(LEVEL) = [3]> then\n    switch costume to (lvl 2.1 v)\n    clone at x: [1880] y: [-150]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (lvl 2.2 v)\n    clone at x: [1222] y: [-20]\nend\nset [x v] to [-999999999]\n\nwhen I receive [tick v]\nposition x: ((x) - (SCROLL X)) y: (((y) - (SCROLL Y)) + (([cos v] of ((timer) * (110)) ) * (9)))\n\ndefine clone at x: (x) y: (y)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\ncreate clone of (_myself_ v)\n\ndefine position x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [back v] layer\n    set [ghost v] effect to (10)\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\n@Trampoline\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [setup v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\nif <(LEVEL) = [2]> then\n    clone at x: [380] y: [-40]\nend\nif <(LEVEL) = [3]> then\n    clone at x: [2260] y: [-30]\nend\nif <(LEVEL) = [6]> then\n    clone at x: [580] y: [-30]\nend\nset [x v] to [-999999999]\n\nwhen I receive [tick v]\nposition x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\nif <touching (blob v)?> then\n    start sound [Jump v]\n    switch costume to (trampoline2 v)\nelse\n    switch costume to (trampoline v)\nend\n\ndefine clone at x: (x) y: (y)\nchange [x v] by (x)\nchange [y v] by (y)\nswitch costume to (trampoline v)\ncreate clone of (_myself_ v)\n\ndefine position x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [back v] layer\n    show\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [menu v]\nswitch costume to (trampoline v)\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Lava\n\nwhen I receive [setup v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (blank v)\n    clone at x: [845] y: [-90]\n    clone at x: [1050] y: [-160]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (lvl 2.1 v)\n    clone at x: [400] y: [-90]\nend\nif <(LEVEL) = [3]> then\n    switch costume to (lvl 3.1 v)\n    clone at x: [460] y: [-90]\n    clone at x: [2400] y: [70]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (lvl 3.3 v)\n    clone at x: [2615] y: [-150]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (lvl 5.0 v)\n    clone at x: [1085] y: [-125]\n    clone at x: [1835] y: [255]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (lvl 5.2 v)\n    clone at x: [800] y: [-150]\nend\nset [x v] to [-999]\n\nwhen I receive [tick v]\nposition x: ((x) - (SCROLL X)) y: (((y) - (SCROLL Y)) + (([cos v] of ((timer) * (150)) ) * (7)))\n\ndefine clone at x: (x) y: (y)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\ncreate clone of (_myself_ v)\n\ndefine position x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [back v] layer\n    show\n    set [ghost v] effect to (25)\nelse\n    hide\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\n@Ladder\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (lvl 1.1 v)\n    clone at x: [2040] y: [95]\nend\nif <(LEVEL) = [2]> then\n    switch costume to (lvl 1.1 v)\nend\nif <(LEVEL) = [3]> then\n    switch costume to (lvl 3.1 v)\n    clone at x: [2720] y: [190]\nend\nif <(LEVEL) = [4]> then\n    switch costume to (lvl 4.1 v)\n    clone at x: [2570] y: [100]\n    clone at x: [130] y: [60]\n    clone at x: [130] y: [60]\nend\nif <(LEVEL) = [5]> then\n    switch costume to (lvl 5.1 v)\n    clone at x: [1700] y: [250]\nend\nif <(LEVEL) = [6]> then\n    switch costume to (lvl 6.1 v)\n    clone at x: [740] y: [150]\n    clone at x: [180] y: [195]\nend\nset [x v] to [-500]\n\nwhen I receive [tick v]\nposition x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\ndefine clone at x: (x) y: (y)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\ndefine position x: (x) y: (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 [green flag v]\nhide\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Coins\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [tick v]\nPosition at x: ((x) - (SCROLL X)) y: (((y) - (SCROLL Y)) + (([sin v] of ((timer) * (200)) ) * (5)))\nnext costume\n\ndefine Position at x: (x) y: (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\ndefine Spawn At X (x) Y (y)\nset [ghost v] effect to (0)\nif <not <(IS CLONE) = [1]>> then\n    set [is clone v] to [0]\n    set [x v] to (x)\n    set [y v] to (y)\n    create clone of (_myself_ v)\n    set [x v] to [-500]\nend\n\nwhen I start as a clone\nchange [cloned? v] by (1)\nset [is clone v] to [1]\nshow\nforever\n    if <touching (blob v)?> then\n        start sound [Collect v]\n        change [coins v] by (1)\n        delete this clone\n    end\nend\n\nwhen I receive [setup v]\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nset [cloned? v] to [0]\nset [is clone v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    Glitch-Free Clone At [-50] [130]\n    Glitch-Free Clone At [10] [130]\n    Glitch-Free Clone At [70] [130]\n    Glitch-Free Clone At [130] [130]\n    Glitch-Free Clone At [-50] [170]\n    Glitch-Free Clone At [10] [170]\n    Glitch-Free Clone At [70] [170]\n    Glitch-Free Clone At [130] [170]\n    Glitch-Free Clone At [1180] [-135]\n    Glitch-Free Clone At [1220] [-135]\n    Glitch-Free Clone At [1260] [-135]\n    Glitch-Free Clone At [1500] [20]\n    Glitch-Free Clone At [1540] [20]\n    Glitch-Free Clone At [1580] [20]\n    Glitch-Free Clone At [1780] [-160]\n    Glitch-Free Clone At [1835] [-160]\n    Glitch-Free Clone At [1890] [-160]\n    Glitch-Free Clone At [1945] [-160]\n    Glitch-Free Clone At [2000] [-160]\n    Glitch-Free Clone At [2055] [-160]\n    Glitch-Free Clone At [2070] [440]\n    Glitch-Free Clone At [2170] [530]\n    Glitch-Free Clone At [2225] [530]\n    Glitch-Free Clone At [2280] [530]\n    Glitch-Free Clone At [2335] [530]\nend\nif <(LEVEL) = [2]> then\n    Glitch-Free Clone At [140] [200]\n    Glitch-Free Clone At [140] [240]\n    Glitch-Free Clone At [140] [280]\n    Glitch-Free Clone At [195] [200]\n    Glitch-Free Clone At [195] [240]\n    Glitch-Free Clone At [195] [280]\n    Glitch-Free Clone At [250] [200]\n    Glitch-Free Clone At [250] [240]\n    Glitch-Free Clone At [250] [280]\n    Glitch-Free Clone At [1200] [-35]\n    Glitch-Free Clone At [1255] [-35]\n    Glitch-Free Clone At [1145] [-35]\n    Glitch-Free Clone At [1660] [500]\n    Glitch-Free Clone At [1660] [445]\n    Glitch-Free Clone At [1660] [390]\n    Glitch-Free Clone At [1660] [335]\n    Glitch-Free Clone At [1660] [280]\n    Glitch-Free Clone At [1660] [225]\n    Glitch-Free Clone At [1660] [170]\n    Glitch-Free Clone At [1660] [115]\n    Glitch-Free Clone At [1660] [60]\n    Glitch-Free Clone At [1660] [5]\n    Glitch-Free Clone At [1705] [560]\n    Glitch-Free Clone At [1750] [380]\n    Glitch-Free Clone At [1870] [265]\nend\nif <(LEVEL) = [3]> then\n    Glitch-Free Clone At [760] [7]\n    Glitch-Free Clone At [940] [30]\n    Glitch-Free Clone At [885] [30]\n    Glitch-Free Clone At [830] [30]\n    Glitch-Free Clone At [307] [-5]\n    Glitch-Free Clone At [407] [13]\n    Glitch-Free Clone At [700] [-7]\n    Glitch-Free Clone At [645] [-7]\n    Glitch-Free Clone At [590] [-7]\n    Glitch-Free Clone At [1545] [-40]\n    Glitch-Free Clone At [1480] [-90]\n    Glitch-Free Clone At [1415] [-40]\n    Glitch-Free Clone At [1825] [-150]\n    Glitch-Free Clone At [1880] [-150]\n    Glitch-Free Clone At [1935] [-150]\n    Glitch-Free Clone At [1990] [-150]\n    Glitch-Free Clone At [2045] [-150]\n    Glitch-Free Clone At [2100] [-150]\n    Glitch-Free Clone At [2155] [-150]\n    Glitch-Free Clone At [2210] [-150]\n    Glitch-Free Clone At [3070] [580]\n    Glitch-Free Clone At [3070] [530]\n    Glitch-Free Clone At [3070] [480]\n    Glitch-Free Clone At [3070] [430]\n    Glitch-Free Clone At [3070] [380]\n    Glitch-Free Clone At [3070] [330]\n    Glitch-Free Clone At [3070] [280]\n    Glitch-Free Clone At [3070] [230]\nend\nif <(LEVEL) = [4]> then\n    Glitch-Free Clone At [125] [260]\n    Glitch-Free Clone At [180] [260]\n    Glitch-Free Clone At [235] [260]\n    Glitch-Free Clone At [290] [260]\n    Glitch-Free Clone At [345] [260]\n    Glitch-Free Clone At [125] [120]\n    Glitch-Free Clone At [180] [120]\n    Glitch-Free Clone At [235] [120]\n    Glitch-Free Clone At [290] [120]\n    Glitch-Free Clone At [345] [120]\n    Glitch-Free Clone At [970] [40]\n    Glitch-Free Clone At [1020] [40]\n    Glitch-Free Clone At [1070] [40]\n    Glitch-Free Clone At [1120] [40]\n    Glitch-Free Clone At [1170] [40]\n    Glitch-Free Clone At [1220] [40]\n    Glitch-Free Clone At [1270] [40]\n    Glitch-Free Clone At [1320] [40]\n    Glitch-Free Clone At [1370] [40]\n    Glitch-Free Clone At [1470] [-70]\n    Glitch-Free Clone At [1725] [-20]\n    Glitch-Free Clone At [1970] [-20]\n    Glitch-Free Clone At [2220] [-20]\n    Glitch-Free Clone At [2600] [270]\n    Glitch-Free Clone At [2730] [320]\n    Glitch-Free Clone At [2860] [380]\n    Glitch-Free Clone At [3310] [445]\n    Glitch-Free Clone At [3360] [445]\n    Glitch-Free Clone At [3410] [445]\nend\nif <(LEVEL) = [5]> then\n    Glitch-Free Clone At [740] [20]\n    Glitch-Free Clone At [685] [20]\n    Glitch-Free Clone At [630] [20]\n    Glitch-Free Clone At [530] [20]\n    Glitch-Free Clone At [475] [20]\n    Glitch-Free Clone At [420] [20]\n    Glitch-Free Clone At [330] [20]\n    Glitch-Free Clone At [275] [20]\n    Glitch-Free Clone At [220] [20]\n    Glitch-Free Clone At [1240] [160]\n    Glitch-Free Clone At [1460] [160]\n    Glitch-Free Clone At [1790] [445]\n    Glitch-Free Clone At [2950] [280]\n    Glitch-Free Clone At [2820] [280]\n    Glitch-Free Clone At [3320] [240]\n    Glitch-Free Clone At [3410] [240]\n    Glitch-Free Clone At [3500] [240]\nend\nif <(LEVEL) = [6]> then\n    Glitch-Free Clone At [160] [120]\n    Glitch-Free Clone At [800] [355]\n    Glitch-Free Clone At [980] [570]\n    Glitch-Free Clone At [1200] [640]\n    Glitch-Free Clone At [1255] [640]\n    Glitch-Free Clone At [1310] [640]\n    Glitch-Free Clone At [1365] [640]\n    Glitch-Free Clone At [1420] [640]\n    Glitch-Free Clone At [1475] [640]\nend\nif <(LEVEL) = [7]> then\n    Glitch-Free Clone At [-95] [100]\n    Glitch-Free Clone At [-145] [100]\n    Glitch-Free Clone At [-195] [100]\n    Glitch-Free Clone At [-245] [100]\n    Glitch-Free Clone At [-95] [140]\n    Glitch-Free Clone At [-145] [140]\n    Glitch-Free Clone At [-195] [140]\n    Glitch-Free Clone At [-245] [140]\n    Glitch-Free Clone At [730] [420]\n    Glitch-Free Clone At [530] [290]\n    Glitch-Free Clone At [1290] [590]\n    Glitch-Free Clone At [1345] [590]\n    Glitch-Free Clone At [1235] [590]\n    Glitch-Free Clone At [1180] [590]\n    Glitch-Free Clone At [1125] [590]\n    Glitch-Free Clone At [2132] [18]\n    Glitch-Free Clone At [2352] [18]\n    Glitch-Free Clone At [2572] [18]\nend\nset [x v] to [-999999999999]\n\nwhen I receive [coin spawn v]\nSpawn At X ([x v] of [blob v]) Y (([y v] of [blob v]) - (30))\n\nwhen flag clicked\nhide\n\ndefine Glitch-Free Clone At (x) (y)\nset [ghost v] effect to (0)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [real coin v]\nif <(Brodcasted) = [No]> then\n    change [coins v] by (300)\nend\n\n@Parallax\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen I receive [setup v]\nset [x v] to (pick random (-1000) to (-3000))\nset [y v] to [0]\nhide\nCLONEZ\n\nwhen I receive [tick v]\nPosition ((round ((x) + ((0) - (SCROLL X)))) * (0.2)) (((y) + ((0) - (SCROLL Y))) / (7))\n\ndefine Clone (x) (y)\nchange [x v] by (x)\nchange [y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (100) %\npoint in direction (90)\nshow\nset [ghost v] effect to (0)\n\ndefine Position (x) (y)\ngo to [back v] layer\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 CLONEZ\nrepeat (1)\n    switch costume to (join [Hills] (pick random (2) to (1)))\n    Clone ((pick random (100) to (1000)) / (0.2)) [0]\nend\nswitch costume to (blank v)\n\n@Lives\n\nwhen I receive [tick v]\ngo to x: (-161) y: (152)\nswitch costume to (LIVES)\nshow\nif <(LIVES) > [3]> then\n    set [lives v] to [3]\nend\n\nwhen I receive [reset v]\nhide\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen flag clicked\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\nend\nhide\n\n@Enemy\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nif <(Squished?) = []> then\n    Position (((x) - (SCROLL X)) + (([sin v] of ((timer) * ((Clone Speed) * (75))) ) * (Clone Distance))) ((y) - (SCROLL Y))\nelse\n    Position (((x) - (SCROLL X)) + (OLD SINE)) ((y) - (SCROLL Y))\nend\nset [current pos v] to (([sin v] of ((timer) * ((Clone Speed) * (75))) ) * (Clone Distance))\nif <(Last POS) < (CURRENT POS)> then\n    point in direction (-90)\nend\nif <(Last POS) > (CURRENT POS)> then\n    point in direction (90)\nend\nset [last pos v] to (([sin v] of ((timer) * ((Clone Speed) * (75))) ) * (Clone Distance))\n\ndefine Clone at x: (x) y: (y) Speed (speed) Distance (distance)\nset [squished? v] to []\nset [clone distance v] to (distance)\nset [clone speed v] to (speed)\nset [x v] to (x)\nset [y v] to (y)\nswitch costume to (enemy v)\ncreate clone of (_myself_ v)\n\nwhen I receive [setup v]\nset [x v] to [0]\nset [y v] to [0]\nset [clone speed v] to [0]\nset [clone distance v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [360] y: [-10] Speed [2] Distance [60]\n    Clone at x: [1950] y: [-70] Speed [1] Distance [80]\nend\nif <(LEVEL) = [2]> then\n    Clone at x: [850] y: [-10] Speed [1] Distance [150]\n    Clone at x: [1820] y: [-5] Speed [2] Distance [40]\nend\nif <(LEVEL) = [3]> then\n    Clone at x: [3480] y: [240] Speed [1] Distance [100]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [250] y: [-40] Speed [1] Distance [100]\nend\nif <(LEVEL) = [6]> then\n    Clone at x: [420] y: [-30] Speed [1] Distance [100]\n    Clone at x: [1880] y: [-50] Speed [.5] Distance [200]\n    Clone at x: [1930] y: [-50] Speed [.5] Distance [200]\n    Clone at x: [1980] y: [-50] Speed [.5] Distance [200]\nend\nif <(LEVEL) = [7]> then\n    Clone at x: [3850] y: [-70] Speed [1] Distance [100]\n    Clone at x: [4000] y: [-70] Speed [1] Distance [100]\nend\nset [x v] to [-500]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I receive [enemy death v]\nif <touching (blob v)?> then\n    set [old sine v] to (([sin v] of ((timer) * ((Clone Speed) * (75))) ) * (Clone Distance))\n    set [squished? v] to [yes]\n    switch costume to (squish v)\n    start sound [Alien Creak2 v]\n    broadcast (Coin Spawn v) and wait\n    delete this clone\nend\n\nwhen I receive [shoot  v]\nwait (.1) seconds\nif <touching (elements v)?> then\n    delete this clone\nend\n\n@Level Select\n\nwhen I receive [menu v]\nset [game? v] to [Off]\nset [clone id v] to [0]\ngo to x: (-124) y: (20)\nhide\nrepeat (14)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    set size to (100) %\n    go to x: (-155) y: (15)\n    show\n    switch costume to (level 1 v)\n    repeat until <(GAME?) = [On]>\n        if <touching (mouse-pointer v)?> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [level v] to [1]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [5]> then\n    set size to (100) %\n    go to x: (0) y: (0)\n    show\n    switch costume to (logo v)\n    repeat until <(GAME?) = [On]>\n        go to x: (0) y: (((x position) - (5)) + (([cos v] of ((timer) * (110)) ) * (9)))\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(GAME?) = [On]> then\n        delete this clone\n    end\nend\n\nwhen I receive [menu v]\ndelete this clone\n\nwhen I start as a clone\nif <(Clone ID) = [2]> then\n    set size to (100) %\n    go to x: (-56) y: (15)\n    show\n    switch costume to (level 2 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (2) of [levels unlocked v]) = [2]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (2) of [levels unlocked v]) = [2]>> then\n            set [level v] to [2]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    set size to (100) %\n    go to x: (-56) y: (15)\n    switch costume to (locked v)\n    if <(item (2) of [levels unlocked v]) = [2]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [6]> then\n    set size to (100) %\n    go to x: (43) y: (15)\n    switch costume to (locked v)\n    if <(item (3) of [levels unlocked v]) = [3]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [4]> then\n    set size to (100) %\n    go to x: (43) y: (15)\n    show\n    switch costume to (level 3 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (3) of [levels unlocked v]) = [3]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (3) of [levels unlocked v]) = [3]>> then\n            set [level v] to [3]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I receive [level 1 complete v]\ndelete (2) of [levels unlocked v]\ninsert [2] at (2) of [levels unlocked v] \n\nwhen flag clicked\nif <not <(USRENAME) = (username)>> then\n    set [usrename v] to (username)\n    delete (2) of [levels unlocked v]\n    insert [x] at (2) of [levels unlocked v] \n    delete (3) of [levels unlocked v]\n    insert [x] at (3) of [levels unlocked v] \n    delete (4) of [levels unlocked v]\n    insert [x] at (4) of [levels unlocked v] \n    delete (5) of [levels unlocked v]\n    insert [x] at (2) of [levels unlocked v] \n    delete (6) of [levels unlocked v]\n    insert [x] at (3) of [levels unlocked v] \n    delete (7) of [levels unlocked v]\n    insert [x] at (4) of [levels unlocked v] \nend\n\nset [usrename v] to [ftuwiaohdsLNKC ]\n\nwhen I receive [level 2 complete! v]\ndelete (3) of [levels unlocked v]\ninsert [3] at (3) of [levels unlocked v] \n\nwhen I start as a clone\nif <(Clone ID) = [7]> then\n    set size to (100) %\n    go to x: (142) y: (15)\n    show\n    switch costume to (level 4 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (4) of [levels unlocked v]) = [4]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (4) of [levels unlocked v]) = [4]>> then\n            set [level v] to [4]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [8]> then\n    set size to (100) %\n    go to x: (142) y: (15)\n    switch costume to (locked v)\n    if <(item (4) of [levels unlocked v]) = [4]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [level 3 complete! v]\ndelete (4) of [levels unlocked v]\ninsert [4] at (4) of [levels unlocked v] \n\nwhen I start as a clone\nif <(Clone ID) = [9]> then\n    set size to (100) %\n    go to x: (-100) y: (-80)\n    show\n    switch costume to (level 5 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (5) of [levels unlocked v]) = [5]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (5) of [levels unlocked v]) = [5]>> then\n            set [level v] to [5]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [10]> then\n    set size to (100) %\n    go to x: (0) y: (-80)\n    show\n    switch costume to (level 6 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (6) of [levels unlocked v]) = [6]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (6) of [levels unlocked v]) = [6]>> then\n            set [level v] to [6]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [11]> then\n    set size to (100) %\n    go to x: (100) y: (-80)\n    show\n    switch costume to (level 7 v)\n    repeat until <(GAME?) = [On]>\n        if <<touching (mouse-pointer v)?> and <(item (7) of [levels unlocked v]) = [7]>> then\n            change size by (((115) - (size)) / (2))\n        else\n            change size by (((100) - (size)) / (2))\n        end\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(item (7) of [levels unlocked v]) = [7]>> then\n            set [level v] to [7]\n            set [game? v] to [On]\n            set [exit v] to []\n            broadcast (game v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [12]> then\n    set size to (100) %\n    go to x: (-100) y: (-80)\n    switch costume to (locked v)\n    if <(item (5) of [levels unlocked v]) = [5]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [13]> then\n    set size to (100) %\n    go to x: (0) y: (-80)\n    switch costume to (locked v)\n    if <(item (6) of [levels unlocked v]) = [6]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I start as a clone\nif <(Clone ID) = [14]> then\n    set size to (100) %\n    go to x: (100) y: (-80)\n    switch costume to (locked v)\n    if <(item (7) of [levels unlocked v]) = [7]> then\n        hide\n    else\n        show\n    end\nend\n\nwhen I receive [level 4 complete! v]\ndelete (5) of [levels unlocked v]\ninsert [5] at (5) of [levels unlocked v] \n\nwhen I receive [level 5 complete! v]\ndelete (6) of [levels unlocked v]\ninsert [6] at (6) of [levels unlocked v] \n\nwhen I receive [level 6 complete! v]\ndelete (7) of [levels unlocked v]\ninsert [7] at (7) of [levels unlocked v] \n\nwhen I receive [level 7 complete! v]\ndelete (8) of [levels unlocked v]\ninsert [Win!] at (8) of [levels unlocked v] \n\n@Spinning Spikes\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nset size to (100) %\nposition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nturn right (10) degrees\nif <(special) = [1]> then\n    go [backward v] (1) layers\n    set [x v] to ((ox) + (([cos v] of (((days since 2000) * (100000)) * (130)) ) * (110)))\nend\n\nwhen I receive [setup v]\nhide\npoint in direction (90)\nset [x v] to [0]\nset [y v] to [0]\nswitch costume to (collectable v)\nif <(LEVEL) = [1]> then\n    Clone at x: [1550] y: [-70] special: [1]\n    Clone at x: [2140] y: [-100] special: [0]\n    Clone at x: [2190] y: [-40] special: [0]\n    Clone at x: [2320] y: [-40] special: [0]\n    Clone at x: [2460] y: [-40] special: [0]\nend\nif <(LEVEL) = [2]> then\n    Clone at x: [1200] y: [-60] special: [1]\n    Clone at x: [1900] y: [170] special: [0]\n    Clone at x: [1780] y: [280] special: [0]\nend\nif <(LEVEL) = [3]> then\n    Clone at x: [1060] y: [-100] special: [0]\n    Clone at x: [1450] y: [-120] special: [1]\n    Clone at x: [2930] y: [585] special: [0]\nend\nif <(LEVEL) = [4]> then\n    Clone at x: [970] y: [-80] special: [0]\n    Clone at x: [1100] y: [-80] special: [0]\n    Clone at x: [1230] y: [-80] special: [0]\n    Clone at x: [1360] y: [-80] special: [0]\n    Clone at x: [1600] y: [-100] special: [0]\n    Clone at x: [1850] y: [-100] special: [0]\n    Clone at x: [2100] y: [-100] special: [0]\n    Clone at x: [2350] y: [-100] special: [0]\n    Clone at x: [3250] y: [370] special: [1]\nend\nif <(LEVEL) = [5]> then\n    Clone at x: [270] y: [-50] special: [1]\n    Clone at x: [640] y: [-50] special: [1]\n    Clone at x: [2525] y: [200] special: [0]\n    Clone at x: [3420] y: [170] special: [1]\nend\nif <(LEVEL) = [6]> then\n    Clone at x: [230] y: [-100] special: [0]\n    Clone at x: [1400] y: [560] special: [1]\nend\nif <(LEVEL) = [7]> then\n    Clone at x: [1200] y: [500] special: [1]\n    Clone at x: [3100] y: [-120] special: [1]\n    Clone at x: [3440] y: [-120] special: [1]\nend\nset [x v] to [-9999999999]\n\ndefine position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    go to [back v] layer\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y) special: (special)\nset [ox v] to (x)\nset [x v] to (x)\nset [y v] to (y)\nset [special v] to (special)\ncreate clone of (_myself_ v)\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen flag clicked\nhide\n\n@Front page\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I start as a clone\nif <(Clone ID) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (costume1 v)\n    show\nend\n\nwhen I start as a clone\nif <(Clone ID) = [2]> then\n    go to x: (0) y: (-100)\n    switch costume to (play button v)\n    show\n    repeat until <(GAME?) = [On]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            change size by (((200) - (size)) / (2))\n        else\n            point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\n            change size by (((160) - (size)) / (2))\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            broadcast (MENU v)\n        end\n    end\nend\n\nwhen I receive [front page v]\nset [game? v] to [Off]\ngo to x: (0) y: (0)\nset [clone id v] to [0]\nhide\nrepeat (3)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [3]> then\n    go to x: (0) y: (0)\n    switch costume to (costume2 v)\n    show\n    repeat until <(GAME?) = [On]>\n        set y to ((y position) + (([cos v] of ((timer) * (110)) ) * (1)))\n    end\nend\n\nwhen I receive [menu v]\ndelete this clone\n\n@Intro\n\ndefine Clone Particles\nset [clone id v] to [Particle]\nrepeat (75)\n    create clone of (_myself_ v)\n    turn right (15) degrees\nend\npoint in direction (90)\n\ndefine Clone Row of Boxes\nset [brightness v] effect to (10)\nrepeat (9)\n    create clone of (_myself_ v)\n    change [var 2 v] by (-1)\n    change [brightness v] effect by (-1)\nend\n\ndefine Bounce with (bounciness) , (speed) and (finishing size)\nset [var 1 v] to [0]\nrepeat until <<(finishing size) = (size)> and <(Var 1) = (size)>>\n    set [var 2 v] to (((Var 2) * ((bounciness) / (100))) + (((finishing size) - (size)) * ((speed) / (20))))\n    set [var 1 v] to (size)\n    change size by (Var 2)\nend\nset size to (finishing size) %\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\ndefine Type: System (text) (x) (y) (size) (color) (brightness) (speed)\nswitch costume to (master v)\nhide\ngo to x: (x) y: (y)\nset size to (size) %\nset [# v] to [1]\nset [color v] effect to (color)\nset [brightness v] effect to (brightness)\nrepeat (length of (text))\n    if <(letter (#) of (text)) > [ ]> then\n        switch costume to (letter (#) of (text))\n        create clone of (_myself_ v)\n        change x by ((size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    else\n        switch costume to ( v)\n        create clone of (_myself_ v)\n        change x by ((size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    end\n    wait (speed) seconds\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Letter 1]> then\n    wait until <(timer) > [1.5]>\n    wait ((#) / (Length)) seconds\n    show\n    set [x v] to (x position)\n    set [y v] to (y position)\n    go to [front v] layer\n    set size to (0) %\n    go to x: (X) y: (Y)\n    Bounce with (65) , (10) and (Size)\n    wait until <(timer) > [3.5]>\n    wait ((#) / (Length)) seconds\n    set [var 1 v] to [10]\n    repeat (30)\n        change y by (Var 1)\n        change [var 1 v] by (-1)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Box]> then\n    point in direction (180)\n    switch costume to (box v)\n    set [ghost v] effect to (50)\n    set size to (15) %\n    show\n    go to [back v] layer\n    go to x: ((Var 1) * (40)) y: ((Var 2) * (40))\n    repeat until <(size) > [89]>\n        change size by (((91) - (size)) / (7))\n        turn right (((180) - (direction)) / (10)) degrees\n        change [ghost v] effect by (-5)\n    end\n    set size to (90) %\n    set [ghost v] effect to (0)\n    wait until <(timer) > [4.5]>\n    set [brightness v] effect to (0)\n    repeat (20)\n        turn right (5) degrees\n        change size by (-5)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\ndefine Setup Lists\ndelete all of [character widths v]\nadd [thing] to [character widths v]\nadd [29] to [character widths v]\nadd [24] to [character widths v]\nadd [28] to [character widths v]\nadd [27] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [28] to [character widths v]\nadd [28] to [character widths v]\nadd [7] to [character widths v]\nadd [21] to [character widths v]\nadd [22] to [character widths v]\nadd [22] to [character widths v]\nadd [34] to [character widths v]\nadd [27] to [character widths v]\nadd [34] to [character widths v]\nadd [22] to [character widths v]\nadd [34] to [character widths v]\nadd [21] to [character widths v]\nadd [23] to [character widths v]\nadd [27] to [character widths v]\nadd [27] to [character widths v]\nadd [29] to [character widths v]\nadd [38] to [character widths v]\nadd [26] to [character widths v]\nadd [27] to [character widths v]\nadd [27] to [character widths v]\nadd [11] to [character widths v]\nadd [20] to [character widths v]\nadd [21] to [character widths v]\nadd [25] to [character widths v]\nadd [21] to [character widths v]\nadd [20] to [character widths v]\nadd [21] to [character widths v]\nadd [20] to [character widths v]\nadd [20] to [character widths v]\nadd [20] to [character widths v]\nadd [14] to [character widths v]\nadd [25] to [character widths v]\nadd [15] to [character widths v]\nadd [10] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [20] to [character widths v]\nadd [24] to [character widths v]\nadd [22] to [character widths v]\nadd [16] to [character widths v]\nadd [24] to [character widths v]\nadd [22] to [character widths v]\nadd [10] to [character widths v]\nadd [14] to [character widths v]\nadd [18] to [character widths v]\nadd [9] to [character widths v]\nadd [33] to [character widths v]\nadd [22] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [24] to [character widths v]\nadd [15] to [character widths v]\nadd [19] to [character widths v]\nadd [16] to [character widths v]\nadd [22] to [character widths v]\nadd [22] to [character widths v]\nadd [30] to [character widths v]\nadd [20] to [character widths v]\nadd [23] to [character widths v]\nadd [20] to [character widths v]\n\ndefine Change Size By: (size)\nchange size by (size)\nchange x by ((0) - ((size) / (7)))\n\ndefine Find Size (text) (size)\nset [size v] to (size)\nset [width v] to [1]\nset [# v] to [1]\nrepeat (length of (text))\n    if <(letter (#) of (text)) > [ ]> then\n        switch costume to (letter (#) of (text))\n        change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    else\n        switch costume to ( v)\n        change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n        change [# v] by (1)\n    end\nend\nif <(Width) > [400]> then\n    change [size v] by (-1)\nend\nif <(Width) < [390]> then\n    change [size v] by (1)\nend\nrepeat until <<<(Width) < [400]> and <(Width) > [389]>> or <(Size) > [200]>>\n    set [width v] to [0]\n    set [# v] to [1]\n    repeat (length of (text))\n        if <(letter (#) of (text)) > [ ]> then\n            switch costume to (letter (#) of (text))\n            change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n            change [# v] by (1)\n        else\n            switch costume to ( v)\n            change [width v] by ((Size) * ((item (costume [number v]) of [character widths v]) / (90)))\n            change [# v] by (1)\n        end\n    end\n    if <(Width) > [400]> then\n        change [size v] by (-1)\n    end\n    if <(Width) < [390]> then\n        change [size v] by (1)\n    end\n    if <(Size) > [201]> then\n        set [size v] to [190]\n    end\nend\nset [x v] to ((0) - ((Width) / (2)))\n\ndefine Type (text) (x) (y) (size) (color) (brightness) (speed)\nset [length v] to (length of (text))\nif <(length of (text)) > [20]> then\n    Find Size [Text Too Long] (size)\n    Type: System [Text Too Long] (X) (y) (Size) (color) (brightness) (speed)\nelse\n    Find Size (text) (size)\n    Type: System (text) (X) (y) (Size) (color) (brightness) (speed)\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Logo]> then\n    switch costume to (logo v)\n    reset timer\n    set size to (0) %\n    show\n    go to x: (300) y: (0)\n    set [var 1 v] to [-40]\n    repeat (34)\n        change size by (2)\n        change x by (Var 1)\n        change [var 1 v] by (2)\n    end\n    Clone Particles\n    Smooth Glide x: [0] y: [25] speed: [9]\n    wait until <(timer) > [4]>\n    set [var 1 v] to [10]\n    repeat (30)\n        change size by (Var 1)\n        change [var 1 v] by (-1)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Back]> then\n    go to [back v] layer\n    show\n    go to x: (-500) y: (500)\n    set size to (200) %\n    switch costume to (landscape v)\n    clear graphic effects\n    wait until <(timer) > [4]>\n    repeat until <(timer) > [7.5]>\n        change x by (5)\n        change y by (-5)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Back 2]> then\n    go to [back v] layer\n    show\n    go to x: (0) y: (0)\n    set size to (200) %\n    switch costume to (back 2 v)\n    clear graphic effects\n    repeat until <(timer) > [7.5]>\n        go to [back v] layer\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Particle]> then\n    switch costume to (particle v)\n    clear graphic effects\n    set size to (100) %\n    go to x: (0) y: (0)\n    set [brightness v] effect to (100)\n    go to [front v] layer\n    go [backward v] (10) layers\n    set [var 1 v] to (pick random (10) to (15))\n    set [var 2 v] to (pick random (2) to (7))\n    turn right (pick random (-10) to (10)) degrees\n    show\n    repeat until <touching (_edge_ v)?>\n        move (Var 1) steps\n        change y by (Var 2)\n        change [var 2 v] by (-0.4)\n        set [var 1 v] to ((Var 1) * (0.95))\n    end\n    repeat (10)\n        move (Var 1) steps\n        change y by (Var 2)\n        change [var 2 v] by (-0.4)\n        set [var 1 v] to ((Var 1) * (0.95))\n        change [ghost v] effect by (10)\n    end\n    hide\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Hider 1]> then\n    wait until <(timer) > [6.5]>\n    go to [front v] layer\n    point in direction (105)\n    show\n    go to x: (300) y: (0)\n    set size to (100) %\n    switch costume to (hider 2 v)\n    clear graphic effects\n    repeat until <<(round (x position)) = [0]> and <(round (y position)) = [0]>>\n        change x by (((0) - (round (x position))) / (5))\n        change y by (((0) - (round (y position))) / (5))\n    end\n    go to x: (0) y: (0)\n    wait (1) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\nif <(Clone ID) = [Hider 2]> then\n    wait until <(timer) > [6.5]>\n    go to [front v] layer\n    point in direction (105)\n    show\n    go to x: (-300) y: (0)\n    set size to (100) %\n    switch costume to (hider 1 v)\n    clear graphic effects\n    repeat until <<(round (x position)) = [0]> and <(round (y position)) = [0]>>\n        change x by (((0) - (round (x position))) / (5))\n        change y by (((0) - (round (y position))) / (5))\n    end\n    go to x: (0) y: (0)\n    wait (1) seconds\n    repeat (20)\n        change [ghost v] effect by (5)\n    end\n    delete this clone\nend\n\nwhen I start as a clone\nif <(Clone ID) = [Letter 2]> then\n    wait until <(timer) > [5]>\n    wait ((#) / (Length)) seconds\n    show\n    set [x v] to (x position)\n    set [y v] to (y position)\n    go to [front v] layer\n    set size to (Size) %\n    go to x: (X) y: (-300)\n    Smooth Glide x: (X) y: (Y) speed: [5]\n    wait until <(timer) > [7]>\n    delete this clone\nend\n\nwhen I receive [front page v]\ndelete this clone\n\nwhen flag clicked\nif <not <(USRENAME) = (username)>> then\n    set [username v] to [Watergirl]\n    Setup Lists\n    set [clone id v] to [Letter 1]\n    Type (Username) [-200] [-100] [200] [115] [100] [0]\n    set [clone id v] to [Letter 2]\n    Type (Username) [-200] [0] [200] [115] [100] [0]\n    clear graphic effects\n    reset timer\n    start sound [Never Mind v]\n    set [clone id v] to [Back 2]\n    create clone of (_myself_ v)\n    set [clone id v] to [Box]\n    set [var 1 v] to [-6]\n    repeat (13)\n        set [var 2 v] to [4]\n        Clone Row of Boxes\n        change [var 1 v] by (1)\n    end\n    set [clone id v] to [Logo]\n    create clone of (_myself_ v)\n    wait until <(timer) > [1.5]>\n    set [clone id v] to [Back]\n    create clone of (_myself_ v)\n    wait until <(timer) > [5]>\n    set [clone id v] to [Hider 1]\n    create clone of (_myself_ v)\n    set [clone id v] to [Hider 2]\n    create clone of (_myself_ v)\n    wait until <(timer) > [8]>\n    set [x_spawn v] to [240]\n    broadcast (Front Page v)\nelse\n    broadcast (Front Page v)\nend\n\n@SHOP\n\nwhen flag clicked\nset [costume v] to [Default]\nset [buddy v] to [None]\nset [shop? v] to [Closed]\nset [shop clone id v] to [0]\nset [+size v] to [0]\nhide\n\nwhen I receive [setup v]\nswitch costume to (shop button v)\ngo to x: (120) y: (140)\nshow\n\nwhen I receive [open shop v]\nset [shop? v] to [Open]\nrepeat (11)\n    create clone of (_myself_ v)\n    change [shop clone id v] by (1)\n    wait (.1) seconds\nend\nhide\n\nwhen I start as a clone\npoint in direction (90)\ngo to [front v] layer\nif <(Shop Clone ID) = [1]> then\n    switch costume to (shop background v)\n    go to x: (0) y: (0)\n    set size to (96) %\n    show\n    repeat until <(Shop?) = [Closed]>\n        set size to (96) %\n    end\nend\n\nwhen I start as a clone\nset [shop mode? v] to [Buddies]\nif <(Shop Clone ID) = [2]> then\n    switch costume to (buddies button v)\n    go to x: (-200) y: (40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            change size by (((115) - (size)) / (3))\n        else\n            change size by (((100) - (size)) / (3))\n        end\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            set [shop mode? v] to [Buddies]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [3]> then\n    switch costume to (boosters button v)\n    go to x: (-200) y: (-40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            change size by (((115) - (size)) / (3))\n        else\n            change size by (((100) - (size)) / (3))\n        end\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            set [shop mode? v] to [Boosters]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [4]> then\n    switch costume to (background button v)\n    go to x: (-200) y: (-120)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            change size by (((115) - (size)) / (3))\n        else\n            change size by (((100) - (size)) / (3))\n        end\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            set [shop mode? v] to [Skins]\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [5]> then\n    switch costume to (exit button v)\n    go to x: (221) y: (155)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            change size by (((115) - (size)) / (3))\n        else\n            change size by (((100) - (size)) / (3))\n        end\n        if <<mouse down?> and <touching (mouse-pointer v)?>> then\n            broadcast (Close Shop v)\n        end\n    end\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [6]> then\n    switch costume to (egg v)\n    go to x: (-110) y: (28)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            clear graphic effects\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Egg]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    change [coins v] by (-25)\n                    set [brightness v] effect to (50)\n                    add [Egg] to [# of buddies v]\n                    set [buddy v] to [Egg]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> then\n                    if <not <[costumes v] contains [Square]?>> then\n                        if <<(COINS) > [100]> or <(COINS) = [100]>> then\n                            set [brightness v] effect to (-20)\n                            change [coins v] by (-100)\n                            add [Square] to [costumes v]\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (egg v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (jump booster v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (square v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    wait (.5) seconds\nend\n\nwhen I receive [close shop v]\nset [shop clone id v] to [0]\nswitch costume to (shop button v)\ngo to x: (120) y: (140)\nshow\nset [shop? v] to [Closed]\ndelete this clone\n\nwhen I start as a clone\nif <(Shop Clone ID) = [7]> then\n    switch costume to (duck v)\n    go to x: (90) y: (28)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            if <(Buddy) = [Duck]> then\n                set [brightness v] effect to (10)\n            else\n                set [brightness v] effect to (0)\n            end\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Duck]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    set [brightness v] effect to (50)\n                    change [coins v] by (-25)\n                    add [Duck] to [# of buddies v]\n                    set [buddy v] to [Duck]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <not <[costumes v] contains [Deafult]?>> then\n                    if <<<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n                        set [brightness v] effect to (20)\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (duck v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (resitance v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (default v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    change [resistance v] by (1)\n    wait (.5) seconds\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [8]> then\n    switch costume to (milk v)\n    go to x: (90) y: (40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            if <(Buddy) = [Milk]> then\n                set [brightness v] effect to (10)\n            else\n                set [brightness v] effect to (0)\n            end\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Milk]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    set [brightness v] effect to (50)\n                    change [coins v] by (-25)\n                    set [buddy v] to [Milk]\n                    add [Milk] to [# of buddies v]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <<<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n                    if <not <[costumes v] contains [Air]?>> then\n                        if <<(COINS) > [100]> or <(COINS) = [100]>> then\n                            set [brightness v] effect to (-20)\n                            add [Air] to [costumes v]\n                            change [coins v] by (-100)\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (milk v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (speed booster v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (air v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    change [speed boosters v] by (1)\n    wait (.5) seconds\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [9]> then\n    switch costume to (strawberry v)\n    go to x: (-100) y: (-40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            if <(Buddy) = [Strawberry]> then\n                set [brightness v] effect to (10)\n            else\n                set [brightness v] effect to (0)\n            end\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Strawberry]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    change [coins v] by (-25)\n                    set [brightness v] effect to (50)\n                    add [Strawberry] to [# of buddies v]\n                    set [buddy v] to [Strawberry]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <<<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n                    if <not <[costumes v] contains [Earth]?>> then\n                        if <<(COINS) > [100]> or <(COINS) = [100]>> then\n                            set [brightness v] effect to (-20)\n                            add [Earth] to [costumes v]\n                            change [coins v] by (-100)\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (strawberry v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (+size v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (earth v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    change [+size v] by (1)\n    wait (.5) seconds\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [10]> then\n    switch costume to (takeout v)\n    go to x: (0) y: (-40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            clear graphic effects\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Takeout]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    set [brightness v] effect to (50)\n                    change [coins v] by (-25)\n                    add [Takeout] to [# of buddies v]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <<<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n                    if <not <[costumes v] contains [Water]?>> then\n                        if <<(COINS) > [100]> or <(COINS) = [100]>> then\n                            set [brightness v] effect to (-20)\n                            change [coins v] by (-100)\n                            add [Water] to [costumes v]\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (takeout v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (-size v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (water v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    change [-size v] by (1)\n    wait (.5) seconds\nend\n\nwhen I start as a clone\nif <(Shop Clone ID) = [11]> then\n    switch costume to (butterfly v)\n    go to x: (0) y: (-40)\n    show\n    repeat until <(Shop?) = [Closed]>\n        if <touching (mouse-pointer v)?> then\n            point in direction (90)\n            set [brightness v] effect to (-10)\n        else\n            if <(Buddy) = [Butterfly]> then\n                set [brightness v] effect to (10)\n            else\n                set [brightness v] effect to (0)\n            end\n        end\n        if <<<(Shop Mode?) = [Buddies]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            if <not <[# of buddies v] contains [Butterfly]?>> then\n                if <<(COINS) > [50]> or <(COINS) = [50]>> then\n                    set [brightness v] effect to (50)\n                    change [coins v] by (-25)\n                    add [Butterfly] to [# of buddies v]\n                end\n            end\n        else\n            if <<<(Shop Mode?) = [Boosters]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n            else\n                if <<<(Shop Mode?) = [Skins]> and <<mouse down?> and <touching (mouse-pointer v)?>>> and <(MEMBERSHIP?) = [Yes]>> then\n                    if <not <[costumes v] contains [Fire]?>> then\n                        if <<(COINS) > [100]> or <(COINS) = [100]>> then\n                            set [brightness v] effect to (-20)\n                            change [coins v] by (-100)\n                            add [Fire] to [costumes v]\n                            wait (.5) seconds\n                        end\n                    end\n                end\n            end\n            if <(Shop Mode?) = [Buddies]> then\n                switch costume to (butterfly v)\n            else\n                if <(Shop Mode?) = [Boosters]> then\n                    switch costume to (1+ heart v)\n                else\n                    if <(Shop Mode?) = [Skins]> then\n                        switch costume to (fire v)\n                    end\n                end\n            end\n        end\n    end\nend\n\nif <<(COINS) > [75]> or <(COINS) = [75]>> then\n    set [brightness v] effect to (-20)\n    change [coins v] by (-75)\n    change [+1 heart v] by (1)\n    wait (.5) seconds\nend\n\nwhen I receive [... v]\nif <(Shop?) = [Closed]> then\n    if <touching (mouse-pointer v)?> then\n        point in direction (90)\n        change size by (((110) - (size)) / (2))\n    else\n        point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\n        change size by (((100) - (size)) / (2))\n    end\n    if <<(Shop?) = [Closed]> and <<mouse down?> and <touching (mouse-pointer v)?>>> then\n        broadcast (Open Shop v)\n    end\nend\n\nwhen I receive [menu v]\nhide\n\nwhen flag clicked\nif <not <(USRENAME) = (username)>> then\n    set [coins v] to [0]\n    delete all of [# of buddies v]\n    delete all of [costumes v]\n    insert [Default] at (1) of [costumes v] \n    add [None] to [# of buddies v]\nend\n\nwhen I receive [open shop v]\nshow variable [coins v]\n\nwhen I receive [close shop v]\nhide variable [coins v]\n\nwhen flag clicked\nhide variable [coins v]\n\n@Buddy\n\nwhen I receive [... v]\nset size to (20) %\ngo to (blob v)\nswitch costume to (Buddy)\nshow\nif <touching (mouse-pointer v)?> then\n    point in direction (90)\n    change size by (((110) - (size)) / (2))\nelse\n    point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\n    change size by (((100) - (size)) / (2))\nend\nif <<<mouse down?> and <touching (mouse-pointer v)?>> and <(MEMBERSHIP?) = [Yes]>> then\n    set [buddy v] to (item (item #) of [# of buddies v])\n    change [item # v] by (1)\n    if <(length of [# of buddies v]) < (item #)> then\n        set [item # v] to [1]\n    end\nend\n\nwhen I receive [game v]\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nhide\ndelete this clone\n\nwhen I receive [menu v]\nhide\ndelete this clone\n\nwhen [1 v] key pressed\nif <(costume [name v]) = [None]> then\n    switch costume to (item (2) of [# of buddies v])\n    set [item # v] to [2]\n    set [buddy v] to (item (2) of [# of buddies v])\nelse\nend\nwait (.5) seconds\n\n@Music\n\nwhen I receive [... v]\nif <(Shop?) = [Closed]> then\n    if <touching (mouse-pointer v)?> then\n        point in direction (90)\n        change size by (((110) - (size)) / (2))\n    else\n        point in direction ((90) + (([sin v] of ((timer) * (500)) ) * (5)))\n        change size by (((100) - (size)) / (2))\n    end\nend\n\nwhen this sprite clicked\nif <(costume [name v]) = [Unmuted]> then\n    set [volume? v] to [Muted]\n    switch costume to (muted v)\nelse\n    set [volume? v] to [Unmuted]\n    switch costume to (unmuted v)\nend\n\nwhen flag clicked\nset [volume? v] to [Unmuted]\nswitch costume to (unmuted v)\nhide\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [front page v]\nset [volume? v] to [Unmuted]\nswitch costume to (unmuted v)\n\nwhen I receive [game v]\nshow\n\n@Elements\n\nwhen I receive [menu v]\nset size to (50) %\nhide\ndelete this clone\n\nwhen I receive [tick v]\nPosition ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\nset [element? v] to [0]\ndelete this clone\n\nwhen flag clicked\nhide\n\nwhen I receive [shoot  v]\nswitch costume to (Element Costume)\nif <not <(costume [name v]) = [Default]>> then\n    start sound [Low Whoosh v]\nend\ncreate clone of (_myself_ v)\nset [element? v] to [1]\nset [direction v] to (([x v] of [blob v]) / (9))\n\nwhen I start as a clone\nset size to (40) %\nset [ghost v] effect to (0)\nset [direction v] to (([x v] of [blob v]) / (9))\nset [y v] to (([y v] of [blob v]) + (20))\nset [x v] to ([x v] of [blob v])\npoint in direction ([direction v] of [blob v])\nrepeat until <<touching (platforms v)?> or <<touching (enemy v)?> or <<(x) < (([x v] of [blob v]) - (320))> or <(x) > (([x v] of [blob v]) + (320))>>>>\n    change [x v] by (Element x)\nend\nif <touching (enemy v)?> then\n    broadcast (Element ENEMY v)\nend\nset [element? v] to [0]\ndelete this clone\n\nwhen [space v] key pressed\nif <not <(Element?) = [1]>> then\n    broadcast (SHOOT  v)\nend\n\nwhen I receive [break platforms v]\nset [element # v] to [0]\nrepeat (4)\n    next costume\n    change [ghost v] effect by (5)\n    change [element # v] by (1)\nend\nrepeat (4)\n    change [ghost v] effect by (20)\nend\n\nwhen I start as a clone\nforever\n    if <([direction v] of [blob v]) = [90]> then\n        set [element x v] to [10]\n        wait (1) seconds\n    else\n        set [element x v] to [-10]\n        wait (1) seconds\n    end\nend\n\n@Chest\n\nwhen flag clicked\nhide\n\nwhen I receive [tick v]\nshow\nif <not <(LEVEL) = [7]>> then\n    set [x v] to [-999999]\n    set [y v] to [-999999]\nelse\n    set [x v] to [4270]\n    set [y v] to [-70]\nend\nif <(Chest Collected?) = [Yes]> then\n    stop [this script v]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\nif <(Chest Collected?) = [Yes]> then\n    stop [this script v]\nend\n\nwhen I receive [tick v]\nswitch costume to (closed chest v)\nPosition ((X) - (SCROLL X)) ((Y) - (SCROLL Y))\nif <(Chest Collected?) = [Yes]> then\n    stop [this script v]\nend\n\nwhen flag clicked\nset [brodcasted v] to [No]\nif <not <(USRENAME) = (username)>> then\n    set [chest collected? v] to [No]\nend\n\nwhen I receive [... v]\nif <touching (blob v)?> then\n    set [chest collected? v] to [Yes]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    stop [other scripts in sprite v]\n    create clone of (_myself_ v)\nend\nbroadcast (Coin Slot v)\nstop [this script v]\n\nwhen I start as a clone\nclear graphic effects\nshow\nstart sound [Winner Sound Effects v]\ngo to x: ((X) - (SCROLL X)) y: ((Y) - (SCROLL Y))\ngo to [front v] layer\nset size to (50) %\nswitch costume to (winner v)\nshow\nrepeat (12)\n    change size by ((size) / (9))\nend\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen flag clicked\nset size to (80) %\n\nwhen I receive [coin slot v]\nif <<(Brodcasted) = [No]> and <(Chest Collected?) = [Yes]>> then\n    broadcast (Real Coin v)\n    set [brodcasted v] to [Yes]\nend\nstop [this script v]\n\n@TN\n\nwhen flag clicked\ngo to [front v] layer\nset [ghost v] effect to (100)\nshow\n\nwhen [timer v] > (Timer)\ngo to [front v] layer\n\n