Megapolis! || A multiplayer platformer  #games #all #art #music    

Instructions: NEW GAME!!!: https://scratch.mit.edu/projects/900554385/\n\n★PLS DOUBLE CLICK GREEN FLAG!  \n#1 on trend?! thanks to all of you, you are the best!\n★ SERVER 2 on --> @AguaFire's profile\n★ https://scratch.mit.edu/projects/571375434/\nz to remove music\nn to remove usernames\n\nAlternative SERVER --> https://turbowarp.org/476058986\n\n★Hi its @Alolex1, today with @AguaFire (follow him pls) we present you our new project after A LOT of months, A LOT of code, A LOT of art and A LOT of motivation (hum-hum): MEGAPOLIS! \n★By the way, thanks for 240 followers! Its insane! 1k followers for a contest.\n\n \n\n★Featuring★\n-A LONG level <---- took us way too long\n-NPCs\n-ADMIN status ( how to unlock in controls)\n-Multiplayer\n-Mobile suported\n-Plenty of skins\n\n \n\n★Controls★\nNormal mode :\n-Arrow keys or mobile (fully made except chat).\n-Click on menu for shop and other feature.\n-Talk to NPCs ! Just go on them! They give you quest or advices!\n\n \n\nAdmin mode (Like and fav to get)  : \n-Custom chat : (used to exist, no longer available)\n-(suggest anything you would like here in the comments below)\n \n\n★Story★\nYou are a cube stuck in a wired word. Pass trough his world to save him and become a god.\n\n \n\n★Credits★\nArt : \n95% us (@AguaFire and @Alolex1)\n5% @JTHEJET\n @alphabetica for the mobile logo on the thumb\nMusic :\n(Geometry dash) Back on track\n(Geometry dash) Stay inside me\n(Geometry dash) Dry out\n(Geometry dash) Cycles\nCode :\n@JTHEJET for multiplayer engine, costumes and the chat/menu engine\n@Endless_C0des for the text engine (@Xamuil2)\n@StradfordJames for inspiration\n\nAll the rest by us: @AguaFire and @Alolex1\n\n \n\n★★★★★★★★★★★★★★★★★★★★★★★★\nHOPE YOU ENJOY!!!!! \n#games \n#games\n#games\n#Game\n#Games\n#music\n#art\n#platformer\n#bestgame\n#popular\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nHave fun!\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nyay!\n\n\n\n\n\n\n\n\n\n\n\n\nwhat are you doing in here?\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nso not proffessionnal...\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nBye ig...\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\ncomment: Does this project have a secret comment?

@Stage\n\nwhen [m v] key pressed\nshow variable [mouse x,y v]\nset [mouse x,y v] to (join ((mouse x) + (SCROLL X)) (join [,] ((mouse y) + (SCROLL Y))))\n\nplay sound [Alan Walker - Force v] until done\nplay sound [Vexento - Sunrise \(1\)2 v] until done\nplay sound [Xaf - Kaled v] until done\nplay sound [Hooley Gun By Garlon v] until done\nplay sound [Amadeus Legendary EDM Release v] until done\n\nwhen I receive [epik v]\nplay sound [Alan Walker - Force v] until done\nplay sound [Vexento - Sunrise \(1\)2 v] until done\nplay sound [Xaf - Kaled v] until done\nplay sound [Hooley Gun By Garlon v] until done\nplay sound [Amadeus Legendary EDM Release v] until done\nbroadcast (::Clone_cOINS:: v)\n\nwhen I receive [tick v]\nif <<(::::::::::::stats) = [1]> and <<(::::::::chat) = [1]> and <(::::::shop) = [1]>>> then\n    broadcast (only shop v)\nend\nif <<(::::::::::::stats) = [1]> and <<(::::::::chat) = [0]> and <(::::::shop) = [1]>>> then\n    broadcast (only stats v)\nend\nif <<(::::::::::::stats) = [0]> and <<(::::::::chat) = [0]> and <(::::::shop) = [0]>>> then\n    broadcast (HIDE v)\nend\n\nwhen I receive [tick v]\nif <(Costume2) = [2]> then\n    change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\n    change [::::::::::::::::::::::::::coins v] by (10)\n    change [:::::::::::::::::::::diamonds v] by (3)\n    set [costume2 v] to [1]\n    stop [this script v]\nelse\n    stop [this script v]\nend\n\nwhen flag clicked\nhide variable [:::::::::::::::::::::::::::::::::::::emeralds v]\nhide variable [::::::::::::::::::::::::::coins v]\nhide variable [:::::::::::::::::::::diamonds v]\ndelete all of [quest in actions... v]\n\nwhen I receive [setup v]\nif <(username) = [Alolex1]> then\n    change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\n    change [:::::::::::::::::::::diamonds v] by (5)\n    change [::::::::::::::::::::::::::coins v] by (10)\nend\n\nsa-pause\n\nwhen flag clicked\nforever\n    if <<(current [hour v]) < [19]> and <(current [hour v]) > [6.9]>> then\n        switch backdrop to (day v)\n    else\n        switch backdrop to (night v)\n    end\nend\n\nwhen flag clicked\nset volume to (100) %\nbroadcast (Epik v)\n\nwhen I receive [epik v]\nplay sound [Back On Track v] until done\nplay sound [Stay Inside Me v] until done\nplay sound [Dry out v] until done\nplay sound [Cycles v] until done\nbroadcast (Epik v)\n\nwhen [z v] key pressed\nif <(volume) = [100]> then\n    set volume to (0) %\nelse\n    set volume to (100) %\nend\n\n@BLANK Faster FPS\n\n@Player\n\nwhen I receive [begin v]\nset [chat v] to [0]\nshow list [chat v]\nforever\n    Chat\nend\n\nif <<key (t v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n    if <(Chat) = [1]> then\n        show list [chat v]\n        set [chat v] to [0]\n        wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n        if <(Chat) = [0]> then\n            set [chat v] to [1]\n            wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n        end\n    end\nend\n\nwhen I receive [play game v]\nset [connected? v] to [0]\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\n\ndefine Change Player x by (sx)\npoint in direction (90)\nchange [x v] by (sx)\nPosition\nif <touching (platforms v)?> then\n    repeat (12)\n        change [y v] by (1)\n        Position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-12)\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<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)?>>\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 Change Player y by (sy)\nchange [y v] by (sy)\nchange [in air v] by (1)\nPosition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-2)\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 Game On\n\ndefine Test - Die\nif <<touching (saws v)?> or <<touching (water v)?> or <touching (water2 v)?>>> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::::::::die v] to [1]\n    set [die v] to [1]\n    position player?\n    broadcast (oof v)\n    start sound [Hurt v]\n    set [exit v] to [die]\nend\n\ndefine Game - Die\nset [::::::::::::::::::::::::::::::::::::::::::::::::::::::::die v] to [1]\nset [die v] to [1]\nposition player?\nbroadcast (oof v)\nset [exit v] to []\nstart sound [Hurt v]\nset [die v] to [1]\n\ndefine Game - Win\n\ndefine Tick\nSkin Stuff\nif <not <(:::::::::::::::::::::DIAMONDS) > [4]>> then\n    if <(x) > (([door x v] of [impossible door v]) - (40))> then\n        set [x v] to (([door x v] of [impossible door v]) - (40))\n    end\nend\nset [sx v] to ((sx) * (0.8))\nif <([abs v] of (sx) ) > [0.9]> then\n    Change Player x by (round (sx))\nend\nif <(:::::::::::::::::::::::::::::::::::::::::::::Jump Boost) = [0]> then\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(in air) < [4]> then\n            if <[mini admin scratchers v] contains (username)?> then\n                set [sy v] to (jump height)\n            else\n                set [sy v] to [16]\n            end\n        end\n    end\n    if <(sy) > [-20]> then\n        change [sy v] by (-2)\n    end\nend\nif <(:::::::::::::::::::::::::::::::::::::::::::::Jump Boost) = [1]> then\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(in air) < [4]> then\n            set [sy v] to [20]\n        end\n    end\n    if <(sy) > [-20]> then\n        change [sy v] by (-2)\n    end\nend\nChange Player y by (sy)\nTest - Die\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nif <(x) < [-220]> then\n    set [x v] to [-220]\nend\n\ndefine set cloud # (player) to (value)\nif <(player) = [1]> then\n    set [☁ p1 v] to (value)\nelse\n    if <(player) = [2]> then\n        set [☁ p2 v] to (value)\n    else\n        if <(player) = [3]> then\n            set [☁ p3 v] to (value)\n        else\n            if <(player) = [4]> then\n                set [☁ p4 v] to (value)\n            else\n                if <(player) = [5]> then\n                    set [☁ p5 v] to (value)\n                else\n                    if <(player) = [6]> then\n                        set [☁ p6 v] to (value)\n                    else\n                        if <(player) = [7]> then\n                            set [☁ p7 v] to (value)\n                        else\n                            if <(player) = [8]> then\n                                set [☁ p8 v] to (value)\n                            else\n                                if <(player) = [9]> then\n                                    set [☁ p9 v] to (value)\n                                else\n                                    if <(player) = [10]> then\n                                        set [☁ p10 v] to (value)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine write (val) to encoded\nset [letter # v] to [1]\nrepeat (length of (val))\n    set [encoded v] to (join (encoded) (item # of (letter (letter #) of (val)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encoded v] to (join (encoded) [00])\n\nwhen I receive [begin v]\nforever\n    if <(MY PLAYER #) > [0]> then\n        send cloud data\n    end\nend\n\ndefine send cloud data\nset [encoded v] to []\nif <<not <(Alolex1_Fake_username) = [Alolex1]>> and <(custom chat) = []>> then\n    write (Alolex1_Fake_username) to encoded\nelse\n    write (username) to encoded\nend\nwrite (round ((timer) * (10))) to encoded\nwrite (x) to encoded\nwrite (y) to encoded\nwrite (Chat Words) to encoded\nset cloud # (MY PLAYER #) to (encoded)\n\ndefine Chat\nif <(Chat) = [1]> then\n    if <key (1 v) pressed?> then\n        set [chat v] to [1]\n        say (item (1) of [chat v])\n        wait (2) seconds\n        say []\n        set [chat words v] to [0]\n    else\n        if <key (2 v) pressed?> then\n            set [chat words v] to [2]\n            say (item (2) of [chat v])\n            wait (2) seconds\n            say []\n            set [chat words v] to [0]\n        else\n            if <key (3 v) pressed?> then\n                set [chat words v] to [3]\n                say (item (3) of [chat v])\n                wait (2) seconds\n                say []\n                set [chat v] to [0]\n            else\n                if <key (4 v) pressed?> then\n                    set [chat words v] to [4]\n                    say (item (4) of [chat v])\n                    wait (2) seconds\n                    say []\n                    set [chat words v] to [0]\n                else\n                    if <key (5 v) pressed?> then\n                        set [chat words v] to [5]\n                        say (item (5) of [chat v])\n                        wait (2) seconds\n                        say []\n                        set [chat words v] to [0]\n                    else\n                        if <key (6 v) pressed?> then\n                            set [chat words v] to [6]\n                            say (item (6) of [chat v])\n                            wait (2) seconds\n                            say []\n                            set [chat words v] to [0]\n                        else\n                            if <key (7 v) pressed?> then\n                                set [chat words v] to [7]\n                                say (item (7) of [chat v])\n                                wait (2) seconds\n                                say []\n                                set [chat words v] to [0]\n                            else\n                                if <key (8 v) pressed?> then\n                                    set [chat words v] to [8]\n                                    say (item (8) of [chat v])\n                                    wait (2) seconds\n                                    say []\n                                    set [chat words v] to [0]\n                                else\n                                    if <key (9 v) pressed?> then\n                                        set [chat words v] to [9]\n                                        say (item (9) of [chat v])\n                                        wait (2) seconds\n                                        say []\n                                        set [chat words v] to [0]\n                                    else\n                                        set [chat words v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\n\nwhen I receive [connected v]\nset [connected? v] to [1]\nshow\n\nwhen I receive [connecting v]\nhide\n\nwhen I receive [connected v]\nforever\n    broadcast (Reset v) and wait\n    broadcast (Setup v) and wait\n    Game On\n    repeat until <(EXIT) > []>\n        if <([_sa-pause v] of [menu //chat button2 v]) = [0]> then\n            Tick\n            broadcast (Tick v)\n        end\n    end\n    if <(EXIT) = [win]> then\n        forever\n            if <(_God Mode?) = [1]> then\n                Handle God mode\n            else\n                Tick\n            end\n            broadcast (Tick v)\n        end\n    else\n        Game - Die\n    end\nend\n\nwhen I receive [connected v]\nset [level v] to [1]\n\nwhen I receive [intro end v]\npoint in direction (90)\nbroadcast (Green Flag v) and wait\nbroadcast (Play Game v) and wait\n\nwhen I receive [green flag v]\nhide\nset [max players v] to [10]\nset [my player # v] to [0]\nbroadcast (Connecting v)\nbroadcast (Setup Others v) and wait\nbroadcast (Join Game v) and wait\nif <(MY PLAYER #) > [0]> then\n    broadcast (Connected v)\n    start sound [Connect v]\nelse\n    broadcast (Full v)\n    start sound [Disconnect v]\nend\nbroadcast (Begin v)\n\nwhen flag clicked\nhide\n\nwhen I receive [intro end v]\nbroadcast (Begin v)\nbroadcast (Play Game v)\n\nwhen I receive [tick v]\nif <not <touching (npc v)?>> then\n    broadcast (No Traed v)\nend\n\ndefine position player?\nset [scroll x v] to (CHECKPOINT X)\nset [scroll y v] to (CHECKPOINT Y)\nset [x v] to (CHECKPOINT X)\nset [y v] to (CHECKPOINT Y)\n\nwhen flag clicked\nset [x v] to [-182]\nset [y v] to [-5]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [ghost v] effect to (0)\nset size to (100) %\n\nwhen I receive [trampoline v]\nset [sy v] to [32]\n\nwhen I receive [jump v]\nchange [::::::::::::::::::::::::::coins v] by (3)\nset [sy v] to [23]\n\nwhen I receive [die v]\nset [die v] to [1]\nposition player?\nbroadcast (oof v)\nstart sound [Hurt v]\nset [exit v] to [die]\n\ndefine Skin Stuff\nDouble Jump\nUltra Boost\nControls\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [0]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [0]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [0]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up v)\n    end\nelse\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal2 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left2 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right2 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up2 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up2 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [2]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [0]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal3 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left3 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right3 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up3 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up3 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [3]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [1]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal4 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (normal4 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (normal4 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (normal4 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (normal4 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [4]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [1]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal5 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left5 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right5 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up5 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up5 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [5]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [1]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [1]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal6 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left6 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right6 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up6 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up6 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [6]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [1]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [0]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [0]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal7 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left7 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right7 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up7 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up7 v)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::New Skin) = [7]> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [1]\n    set [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [0]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [1]\n    if <not <key (any v) pressed?>> then\n        switch costume to (normal8 v)\n    end\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        switch costume to (left8 v)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        switch costume to (right8 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>>> then\n        switch costume to (left up8 v)\n    end\n    if <<<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> and <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        switch costume to (right up8 v)\n    end\nend\n\ndefine Controls\nif <(::::::::::::::::::::::::::::::::::::::::::::::::::Speed Boost) = [0]> then\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [sx v] by (-2)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [sx v] by (2)\n    end\nend\nif <(::::::::::::::::::::::::::::::::::::::::::::::::::Speed Boost) = [1]> then\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [sx v] by (-2.5)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [sx v] by (2.5)\n    end\nend\n\ndefine Ultra Boost\nif <<(::::::::::::::::::::::::::::::::::::::::::::::::::Speed Boost) = [2]> and <(:::::::::::::::::::::::::::::::::::::::::::::Jump Boost) = [2]>> then\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [sx v] by (-2.5)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [sx v] by (2.5)\n    end\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(in air) < [4]> then\n            set [sy v] to [20]\n        end\n    end\n    if <(sy) > [-20]> then\n        change [sy v] by (-2)\n    end\nend\n\ndefine Double Jump\nif <(::::::::::::::::::::::::::::::::::::::::::::::::Double Jump) = [1]> then\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(in air) < [10]> then\n            set [sy v] to [18]\n        end\n    end\nelse\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(in air) < [4]> then\n            set [sy v] to [16]\n        end\n    end\nend\n\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (3)\n\nset [::::::::::::::::::::::::::::::::::::::::::::::::double jump v] to [0]\n\nwhen I receive [setup v]\nset [die v] to [0]\n\nwhen [r v] key pressed\nset [x v] to (CHECKPOINT X)\nset [y v] to (CHECKPOINT Y)\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [ghost v] effect to (0)\nset size to (100) %\n\nif <touching (saws v)?> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::::::::die v] to [1]\n    position player?\n    broadcast (oof v)\n    start sound [Hurt v]\n    set [exit v] to [die]\nend\n\nwhen flag clicked\nset [alolex1_fake_username v] to [Alolex1]\nset [custom chat v] to []\n\nif <(username) = [Alolex1]> then\n\nwhen [f v] key pressed\nif <<(username) = [Alolex1]> or <<is compiled?> = [1]>> then\n    ask [New username] and wait\n    set [alolex1_fake_username v] to (answer)\nend\n\n\n\nset [chat words v] to [none]\nask [chat:] and wait\nset [custom chat v] to (answer)\nsay (answer)\nwait (2) seconds\nsay []\nset [chat words v] to [0]\n\nif <(username) = [Alolex1]> then\n    set [:::::::::::::::::::::::::::::::::::::emeralds v] to [45]\nend\n\nwhen [0 v] key pressed\n\nforever\n\nwhen flag clicked\ndelete all of [mini admin scratchers v]\nforever\n    if <<(FAVED___) = [1]> and <(LOVED__) = [1]>> then\n        add (username) to [mini admin scratchers v]\n        stop [this script v]\n    end\nend\n\nwhen this sprite clicked\n\nwhen I receive [_custom_chat_ v]\n\nwhen flag clicked\nset [jump height v] to [16]\nforever\n    if <[mini admin scratchers v] contains (username)?> then\n        if <(::menu) = [1]> then\n            hide variable [jump height v]\n        else\n            hide variable [jump height v]\n        end\n    else\n        hide variable [jump height v]\n    end\nend\n\nset [:::::::::::::::::::::diamonds v] to [99999999999999]\nset [::::::::::::::::::::::::::coins v] to [99999999999999]\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [99999999999999]\n\ndefine Handle God mode\nSkin Stuff\nif <(y) < [-207]> then\n    set [y v] to [-207]\nend\nset [sx v] to ((sx) * (0.8))\nset [sy v] to ((sy) * (0.8))\nchange [x v] by (sx)\nchange [y v] by (sy)\nif <<<(mouse y) > (y position)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n    change [sy v] by (2)\nend\nif <<<(mouse x) > (x position)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n    change [sx v] by (2)\nend\nif <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n    change [sx v] by (-2)\nend\nif <<<(mouse y) < (y position)> and <mouse down?>> or <<key (down arrow v) pressed?> or <key (s v) pressed?>>> then\n    change [sy v] by (-2)\nend\nset [scroll x v] to (x)\nif <(SCROLL X) < [0]> then\n    set [scroll x v] to [0]\nend\nchange [scroll y v] by (round (((y) - (SCROLL Y)) / (10)))\nif <(SCROLL Y) < [0]> then\n    set [scroll y v] to [0]\nend\nPosition\nif <(y) < [-180]> then\n    set [exit v] to [die]\nend\nif <(x) < [-220]> then\n    set [x v] to [-220]\nend\n\nbroadcast (Tick v)\n\nset [::::::::::::::::::::::::::coins v] to [999999999999999999999]\nset [:::::::::::::::::::::diamonds v] to [999999999999999999999]\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [999999999999999999999]\n\nbroadcast (_custom_chat_ v)\n\nbroadcast (_custom_chat_ v)\n\n@Platforms\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [480]\n    Clone at x: [480] y: [-480]\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [480]\n    Clone at x: [480] y: [-480]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [310] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nend\n\ndefine Position (x) (y)\nset size to (100) %\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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\nGhost\n\nchange [::::::::::::::::::::::::::coins v] by (999)\nchange [:::::::::::::::::::::diamonds v] by (999)\nchange [:::::::::::::::::::::diamonds v] by (50)\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (999)\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [31]> then\n        repeat (55)\n            change [platforms: x v] by (-5)\n        end\n        repeat (55)\n            change [platforms: x v] by (5)\n        end\n    end\nend\n\nchange [platforms: y v] by (1)\n\ndefine Ghost\nset [ghost v] effect to (100)\n\n@Others\n\nwhen I receive [begin v]\nset [names v] to [1]\nforever\n    if <key (n v) pressed?> then\n        if <(names) = [1]> then\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [0]\n        else\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [1]\n        end\n    end\nend\n\nwhen I receive [setup others v]\nsetup players\n\ndefine setup players\nhide\nset [offline v] to [100]\nset [player # v] to [1]\nrepeat ((MAX PLAYERS) - (1))\n    create clone of (_myself_ v)\n    change [player # v] by (1)\nend\n\ndefine value = cloud # (player)\nif <(player) = [1]> then\n    set [value v] to (☁ P1)\nelse\n    if <(player) = [2]> then\n        set [value v] to (☁ P2)\n    else\n        if <(player) = [3]> then\n            set [value v] to (☁ P3)\n        else\n            if <(player) = [4]> then\n                set [value v] to (☁ P4)\n            else\n                if <(player) = [5]> then\n                    set [value v] to (☁ P5)\n                else\n                    if <(player) = [6]> then\n                        set [value v] to (☁ P6)\n                    else\n                        if <(player) = [7]> then\n                            set [value v] to (☁ P7)\n                        else\n                            if <(player) = [8]> then\n                                set [value v] to (☁ P8)\n                            else\n                                if <(player) = [9]> then\n                                    set [value v] to (☁ P9)\n                                else\n                                    if <(player) = [10]> then\n                                        set [value v] to (☁ P10)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [begin v]\nforever\n    if <(MY PLAYER #) = (player #)> then\n        set [offline v] to [100]\n        hide\n    else\n        if <(_sa-pause) = [0]> then\n            Tick\n        end\n    end\nend\n\ndefine Tick\nvalue = cloud # (player #)\nif <(join [A] (value)) = (last value)> then\n    change [offline v] by (1)\n    if <(offline) = [100]> then\n        hide\n    end\nelse\n    set [last value v] to (join [A] (value))\n    if <(offline) > [99]> then\n        show\n    end\n    set [offline v] to [0]\nend\nbegin decode of (value)\nvalue = read from encoded\nif <(names) = [1]> then\n    say (join (player #) (join [:] (value)))\nelse\n    say []\nend\nvalue = read from encoded\nvalue = read from encoded\nset x to ((value) - (SCROLL X))\nvalue = read from encoded\nset y to ((value) - (SCROLL Y))\nif <<<(x position) > [200]> or <[-200] > (x position)>> or <<(y position) > [160]> or <[-160] > (y position)>>> then\n    set rotation style [all around v]\n    switch costume to (arrow v)\n    go to [front v] layer\n    point towards (player v)\n    if on edge, bounce\n    go to [front v] layer\nelse\n    set rotation style [left-right v]\n    point in direction (90)\n    switch costume to (:::::Others type)\nend\nvalue = read from encoded\nbroadcast (Decode Chat v)\n\ndefine begin decode of (encoded)\nset [encoded v] to (encoded)\nset [letter # v] to [1]\n\ndefine value = read from encoded\nset [value v] to []\nforever\n    set [idx v] to (join (letter (letter #) of (encoded)) (letter ((letter #) + (1)) of (encoded)))\n    change [letter # v] by (2)\n    if <(idx) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (value) (item (idx) of [code v]))\nend\n\nwhen I receive [join game v]\nvalue = cloud # (player #)\nset [last value v] to (join [A] (value))\nwait (3) seconds\nvalue = cloud # (player #)\nif <(join [A] (value)) = (last value)> then\n    set [my player # v] to (player #)\nend\n\ndefine Decode Chat (chat)\nif <(chat) = [1]> then\n    say (item (1) of [chat v]) for (2) seconds\nelse\n    if <(chat) = [2]> then\n        say (item (2) of [chat v]) for (2) seconds\n    else\n        if <(chat) = [3]> then\n            say (item (3) of [chat v]) for (2) seconds\n        else\n            if <(chat) = [4]> then\n                say (item (4) of [chat v]) for (2) seconds\n            else\n                if <(chat) = [5]> then\n                    say (item (5) of [chat v]) for (2) seconds\n                else\n                    if <(chat) = [6]> then\n                        say (item (6) of [chat v]) for (2) seconds\n                    else\n                        if <(chat) = [7]> then\n                            say (item (7) of [chat v]) for (2) seconds\n                        else\n                            if <(chat) = [8]> then\n                                say (item (8) of [chat v]) for (2) seconds\n                            else\n                                if <(chat) = [9]> then\n                                    say (item (9) of [chat v]) for (2) seconds\n                                else\n                                    if <(chat) = [g]> then\n                                        say (custom chat) for (2) seconds\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [decode chat v]\nDecode Chat (value)\n\nwhen I start as a clone\nset [:::::others type v] to (pick random (1) to (3))\n\n@Saws\n\nwhen I receive [green flag v]\nhide variable [mouse v]\nhide\n\nwhen I receive [tick v]\nturn right (10) degrees\nPosition ((Saws: x) - (SCROLL X)) ((Saws: y) - (SCROLL Y))\n\ngo to [back v] layer\n\nwhen I receive [setup v]\nhide\nset [saws: x v] to [0]\nset [saws: y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [200] y: [12]\n    Clone at x: [11770] y: [-79]\n    Clone at x: [10166] y: [-78]\nend\nset [saws: x v] to [-999999]\n\nClone at x: [436] y: [-60]\nClone at x: [660] y: [-73]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [saws: x v] to (x)\nset [saws: y v] to (y)\ncreate clone of (_myself_ v)\n\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [100]\nset [:::::::::::::::::::::diamonds v] to [100]\nset [::::::::::::::::::::::::::coins v] to [100]\n\nClone at x: [10357] y: [-77]\n\n@Exit\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nswitch costume to (open v)\nPosition ((Exit: x) - (SCROLL X)) ((Exit: y) - (SCROLL Y))\nif <<touching (player v)?> and <(costume [name v]) = [Open]>> then\n    set [exit v] to [win]\n    set [finish? v] to [1]\nend\n\nwhen I receive [setup v]\nhide\nset [exit: x v] to [0]\nset [exit: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Go to x: [12550] y: [60]\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\ngo to [front v] layer\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Go to x: (x) y: (y)\nset [exit: x v] to (x)\nset [exit: y v] to (y)\n\ngo [backward v] (1) layers\n\n@Chat\n\nwhen I receive [tick v]\ngo to [front v] layer\nif <(Chat) = [1]> then\n    show\nelse\n    hide\nend\nif <<key (space v) pressed?> or <<<mouse down?> and <touching (mouse-pointer v)?>> and <(mouse y) < [-141]>>> then\n    broadcast (Chat Close v)\n    hide\n    wait until <not <key (space v) pressed?>>\nend\n\nwhen I receive [green flag v]\nhide\n\nwhen flag clicked\nhide\n\nwhen I receive [chat open v]\nset [::::::::chat v] to [1]\nset size to (50) %\nset [chat v] to [1]\nrepeat until <(size) = [100]>\n    change size by (((110) - (size)) / (3))\nend\nwait (1) seconds\n\nwhen I receive [chat close v]\nset [chat v] to [0]\n\nwhen I receive [chat open v]\n\nif <(::::::shop) = [1]> then\n    set [::::::shop v] to [1]\nelse\n    set [::::::shop v] to [0]\nend\n\nwhen I receive [hide menu v]\nhide\n\nwhen I receive [shop v]\nset [::::::shop v] to [1]\n\nwhen I receive [chat close v]\nset [::::::::chat v] to [0]\n\nwhen I receive [close menu v]\nset [::::::shop v] to [0]\n\nwhen I receive [begin v]\n\n@Love fave\n\nwhen flag clicked\nset [costume2 v] to [0]\nhide\nforever\n    if <not <<(LOVED__) = [1]> and <(FAVED___) = [1]>>> then\n        wait (pick random (20) to (30)) seconds\n        switch costume to (costume1 v)\n        go to x: (0) y: (50)\n        show\n        go to [front v] layer\n        start sound [pop v]\n        repeat (9)\n            change y by (-6)\n        end\n        repeat (5)\n            change y by (3)\n        end\n        repeat (5)\n            change y by (-1)\n        end\n        wait (2) seconds\n        repeat (15)\n            change y by (7)\n        end\n        hide\n    end\n    if <(Costume2) > [0]> then\n        hide\n        stop [this script v]\n    end\n    if <touching (mouse-pointer v)?> then\n        switch costume to (explinations v)\n    else\n        switch costume to (costume1 v)\n    end\nend\n\nwhen this sprite clicked\nrepeat (15)\n    change y by (7)\nend\nhide\n\n@Detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\nwait until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\nbroadcast (FREE REWARDS v)\nwait (1) seconds\ngo to x: (0) y: (0)\nshow\nreset timer\nswitch costume to (pick random (1) to (4))\nset [ghost v] effect to (100)\nrepeat until <(timer) > [3.5]>\n    change y by ((y position) / (-15))\n    change [ghost v] effect by (-3)\nend\nreset timer\nrepeat until <(timer) > [3.5]>\n    change y by (((y position) - (-100)) / (-15))\n    change [ghost v] effect by (10)\nend\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\nset [loved__ v] to [0]\n\nset [faved___ v] to [0]\n\nstop [this script v]\n\nstop [this script v]\n\n@Joining\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [connecting v]\nswitch costume to (joining v)\nshow\n\nwhen I receive [connected v]\nswitch costume to (connected v)\ngo [forward v] (1322) layers\nhide\n\nwhen I receive [full v]\nswitch costume to (full  v)\nshow\n\n@Loading\n\nwhen I receive [connecting v]\nset size to (300) %\nshow\nswitch costume to (l -4 v)\nwait (.9) seconds\nrepeat (16)\n    wait (.01) seconds\n    next costume\nend\n\nwhen I receive [connected v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nbroadcast (::Clone_cOINS:: v)\ndelete this clone\n\nwhen I start as a clone\n\nwhen I receive [intro end v]\ngo [forward v] (213) layers\nset size to (100) %\nhide\npoint in direction (90)\nclear graphic effects\ngo to x: (0) y: (-80)\n\ncreate clone of (_myself_ v)\nturn right (40) degrees\n\nturn right (7.5) degrees\nchange size by (1)\nrepeat (11)\n\nchange size by (-1)\n\nwhen I receive [connecting v]\nforever\n    change [color v] effect by (4)\nend\n\nrepeat (20)\n\nrepeat (20)\n    change [ghost v] effect by (6)\nend\n\nset [ghost v] effect to (100)\n\n@Intro for @JTHEJET\n\nwhen flag clicked\nbroadcast (Intro End v)\nset volume to (100) %\n\n@Menu // 1st button\n\nwhen flag clicked\nset size to (100) %\nhide\n\nwhen I receive [tick v]\ngo to x: (0) y: (167)\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((120) - (size)) / (2))\n        if <mouse down?> then\n            start sound [Touch v]\n            switch costume to (costume2 v)\n            broadcast (Menu v)\n            hide\n        end\n    else\n        change size by (((100) - (size)) / (4))\n    end\n    repeat until <not <mouse down?>>\n        change size by (((100) - (size)) / (4))\n    end\nend\n\nwhen I receive [menu v]\nhide\n\nwhen I receive [begin v]\nswitch costume to (costume1 v)\nshow\n\nwhen I receive [close menu v]\nswitch costume to (costume1 v)\nshow\nrepeat until <(size) = [100]>\n    repeat until <not <mouse down?>>\n        change size by (((100) - (size)) / (6))\n    end\nend\n\nswitch costume to (costume1 v)\nset size to (20) %\nshow\n\nwhen [l v] key pressed\nswitch costume to (costume1 v)\nshow\n\n@Menu //Shoppp with skins\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset [:shop v] to [1]\nset size to (20) %\nshow\ngo to [front v] layer\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [tick v]\nforever\n    if <<(::::::shop) = [1]> and <(::::::::chat) = [1]>> then\n        broadcast (Hide Menu v)\n    else\n        stop [this script v]\n    end\n    if <<(::::::shop) = [0]> and <(::::::::chat) = [0]>> then\n        broadcast (SHOW! v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [only stats v]\nhide\n\nwhen I receive [close menu v]\nhide\nhide\n\n@Menu //shop\n\nwhen flag clicked\nset [::menu v] to [0]\nset size to (50) %\nhide\n\nwhen I receive [close menu v]\nset [::menu v] to [0]\nset size to (50) %\nset size to (50) %\nhide\n\nwhen I receive [menu v]\nset [::menu v] to [1]\nshow\ngo to x: (-168) y: (150)\ngo to [front v] layer\nset size to (50) %\nshow\nrepeat until <(size) = [120]>\n    change size by (((120) - (size)) / (2))\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((140) - (size)) / (2))\n        if <mouse down?> then\n            start sound [Touch v]\n            broadcast (shop v)\n            repeat until <<not <touching (mouse-pointer v)?>> or <not <mouse down?>>>\n                change size by (((80) - (size)) / (4))\n            end\n        end\n    else\n        change size by (((120) - (size)) / (4))\n    end\n    repeat until <not <mouse down?>>\n        change size by (((120) - (size)) / (4))\n    end\nend\n\nwhen I receive [show! v]\nshow\n\nwhen I receive [only shop v]\nhide\n\nwhen I receive [only stats v]\nshow\n\nwhen I receive [hide v]\nif <not <(::menu) = [1]>> then\n    hide\nend\n\nwhen I receive [close menu v]\n\n@Menu //menu pannel\n\nwhen flag clicked\nset size to (50) %\ngo to x: (0) y: (160)\nhide\n\nwhen I receive [menu v]\ngo to [back v] layer\nset [::::::::chat v] to [0]\nset [::::::shop v] to [0]\ngo to x: (0) y: (160)\nshow\nrepeat until <(size) = [110]>\n    change size by (((110) - (size)) / (5))\nend\n\nwhen I receive [close menu v]\nset size to (50) %\nhide\n\n@Menu //close button\n\nwhen flag clicked\nset size to (50) %\ngo to x: (195) y: (152)\nhide\n\nwhen I receive [close menu v]\nset size to (50) %\nset size to (50) %\nhide\n\nwhen I receive [menu v]\nset size to (50) %\nshow\ngo to [front v] layer\nrepeat until <(size) = [120]>\n    change size by (((120) - (size)) / (3))\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((150) - (size)) / (2))\n        if <mouse down?> then\n            start sound [Touch v]\n            broadcast (Close Menu v)\n            repeat until <<not <touching (mouse-pointer v)?>> or <not <mouse down?>>>\n                change size by (((80) - (size)) / (4))\n            end\n        end\n    else\n        change size by (((120) - (size)) / (4))\n    end\n    repeat until <not <mouse down?>>\n        change size by (((120) - (size)) / (4))\n    end\nend\n\n@Menu //Chat Button\n\nwhen I receive [menu v]\nset [ghost v] effect to (0)\nswitch costume to (chat button v)\nshow\nset [::menu v] to [1]\nset size to (40) %\ngo to x: (105) y: (150)\nshow\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (2))\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (((120) - (size)) / (2))\n        end\n        if <mouse down?> then\n            switch costume to (costume1 v)\n            broadcast (Chat Open v)\n            start sound [Touch v]\n            hide\n            wait until <not <mouse down?>>\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (((100) - (size)) / (6))\n        end\n    end\nend\n\nwhen I receive [chat close v]\nswitch costume to (chat button v)\nset size to (100) %\nset [ghost v] effect to (100)\nif <(::menu) = [1]> then\n    show\n    set [ghost v] effect to (0)\nelse\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\nchange [ghost v] effect by (100)\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (-38) y: (150)\n\nwhen I receive [begin v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [close menu v]\nset [::menu v] to [0]\nhide\n\nwhen I receive [show! v]\nshow\n\nwhen I receive [only shop v]\nshow\nswitch costume to (chat button v)\n\nwhen I receive [only stats v]\nshow\n\nwhen I receive [close menu v]\nswitch costume to (costume1 v)\nhide\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume1 v)\nhide\nhide\n\n@Menu //statsss\n\nwhen flag clicked\ngo [forward v] (5) layers\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [stats v]\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\n\nwhen I receive [close menu v]\nhide variable [:::::::::::::::::::::diamonds v]\nhide variable [::::::::::::::::::::::::::coins v]\nhide variable [:::::::::::::::::::::::::::::::::::::emeralds v]\nhide\n\nwhen I receive [chat open v]\nhide variable [:::::::::::::::::::::diamonds v]\nhide variable [::::::::::::::::::::::::::coins v]\nhide variable [:::::::::::::::::::::::::::::::::::::emeralds v]\nhide\n\nwhen I receive [chat close v]\nhide variable [:::::::::::::::::::::diamonds v]\nhide variable [::::::::::::::::::::::::::coins v]\nhide variable [:::::::::::::::::::::::::::::::::::::emeralds v]\nhide\n\nwhen I receive [stats v]\nwait (.15) seconds\nshow variable [:::::::::::::::::::::diamonds v]\nshow variable [::::::::::::::::::::::::::coins v]\nshow variable [:::::::::::::::::::::::::::::::::::::emeralds v]\n\nwhen I receive [only shop v]\nhide\n\nwhen I receive [only stats v]\ngo to [front v] layer\nshow\n\nwhen I receive [close menu v]\nhide\nhide\n\nwhen I receive [hide v]\nhide\n\n@Menu //stats\n\nwhen flag clicked\nset size to (50) %\nhide\n\nwhen I receive [close menu v]\nset [::::::::::::stats v] to [0]\nswitch costume to (costume1 v)\nset size to (50) %\nhide\n\nwhen I receive [menu v]\nset [::::::::::::stats v] to [0]\nswitch costume to (shop v)\ngo to x: (-20) y: (150)\ngo to [front v] layer\nset size to (50) %\nshow\nrepeat until <(size) = [120]>\n    change size by (((120) - (size)) / (2))\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        change size by (((140) - (size)) / (2))\n        if <mouse down?> then\n            set [::::::::::::stats v] to [1]\n            start sound [Touch v]\n            broadcast (stats v)\n            repeat until <<not <touching (mouse-pointer v)?>> or <not <mouse down?>>>\n                change size by (((80) - (size)) / (4))\n            end\n        end\n    else\n        change size by (((120) - (size)) / (4))\n    end\n    repeat until <not <mouse down?>>\n        change size by (((120) - (size)) / (4))\n    end\nend\n\nwhen I receive [show! v]\nshow\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [only stats v]\nshow\n\nwhen I receive [close menu v]\nhide\nhide\n\n@Menu //Chat Button2\n\nwhen I receive [menu v]\nset [ghost v] effect to (0)\nswitch costume to (chat button v)\nshow\nset [::menu v] to [1]\nset size to (40) %\ngo to x: (105) y: (127)\nshow\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (2))\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (((120) - (size)) / (2))\n        end\n        if <mouse down?> then\n            if <(_sa-pause) = [1]> then\n                set [_sa-pause v] to [0]\n                wait (.3) seconds\n            else\n                set [_sa-pause v] to [1]\n                wait (.3) seconds\n            end\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (((100) - (size)) / (6))\n        end\n    end\nend\n\nwhen I receive [chat close v]\nswitch costume to (chat button v)\nset size to (100) %\nset [ghost v] effect to (100)\nif <(::menu) = [1]> then\n    show\n    set [ghost v] effect to (0)\nelse\n    switch costume to (costume1 v)\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\nchange [ghost v] effect by (100)\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (-38) y: (150)\n\nwhen I receive [begin v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen I receive [close menu v]\nset [::menu v] to [0]\nhide\n\nwhen I receive [show! v]\nshow\n\nwhen I receive [only shop v]\nshow\nswitch costume to (chat button v)\n\nwhen I receive [only stats v]\nshow\n\nwhen I receive [close menu v]\nswitch costume to (costume1 v)\nhide\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume1 v)\nhide\nhide\n\nwhen flag clicked\nset [_sa-pause v] to [0]\n\n@Menu //Mouse thingy\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    set [ghost v] effect to (30)\n    go to [front v] layer\n    go to (mouse-pointer v)\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [black skin m v]\nshow\nif <touching (menu //shop thing 1 v)?> then\n    show\n    switch costume to (1 v)\nend\n\nwhen I receive [black skin m hide v]\nhide\n\n@Menu //Mouse thingy 2\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [red skin m v]\nshow\nif <touching (menu //shop thing 2 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [red skin m hide v]\nhide\n\n@Menu //Mouse thingy 3\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [blue skin n v]\nshow\nif <touching (menu //shop thing 3 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [blue skin m hide v]\nhide\n\n@Menu //shop thing 1\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nswitch costume to (costume2 v)\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [tick v]\nforever\n    if <<(::::::shop) = [1]> and <(::::::::chat) = [1]>> then\n        broadcast (Hide Menu v)\n    else\n        stop [this script v]\n    end\n    if <<(::::::shop) = [0]> and <(::::::::chat) = [0]>> then\n        broadcast (SHOW! v)\n    else\n        stop [this script v]\n    end\nend\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (black skin m v)\n        if <mouse down?> then\n            if <<(::::::::::::::::::::::::::COINS) > [10]> or <(::::::::::::::::::::::::::COINS) = [10]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [1]\n                change [::::::::::::::::::::::::::coins v] by (-10)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (black skin m hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\n@Menu //shop thing 2\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (red skin m v)\n        if <mouse down?> then\n            if <<(::::::::::::::::::::::::::COINS) > [10]> or <(::::::::::::::::::::::::::COINS) = [10]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [2]\n                change [::::::::::::::::::::::::::coins v] by (-10)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (red skin m hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\n@Menu //shop thing 3\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (blue skin n v)\n        if <mouse down?> then\n            broadcast (Purchase v)\n            start sound [Touch v]\n            set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n            change [::::::::::::::::::::::::::coins v] by (0)\n            wait until <not <mouse down?>>\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (blue skin m hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\n@Menu //Mouse thingy 4\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [jthejet skin m v]\nshow\nif <touching (menu //shop thing 4 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [jthejet skin m hide v]\nhide\n\n@Menu //shop thing 4\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (JTHEJET skin m v)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::DIAMONDS) > [3]> or <(:::::::::::::::::::::DIAMONDS) = [3]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [3]\n                change [:::::::::::::::::::::diamonds v] by (-3)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (JTHEJET skin m hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\n@Menu //Mouse thingy 5\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [black and white m v]\nshow\nif <touching (menu //shop thing 5 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [black and white m hide v]\nhide\n\n@Menu //Mouse thingy 6\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [orange skin m v]\nshow\nif <touching (menu //shop thing 6 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [orange skin m hide v]\nhide\n\n@Menu //shop thing 5\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (Black And White M v)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::DIAMONDS) > [3]> or <(:::::::::::::::::::::DIAMONDS) = [3]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [4]\n                change [:::::::::::::::::::::diamonds v] by (-3)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (Black and white m hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\nchange [:::::::::::::::::::::diamonds v] by (3)\n\n@Menu //shop thing 6\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (Orange Skin M v)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::DIAMONDS) > [5]> or <(:::::::::::::::::::::DIAMONDS) = [5]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [5]\n                change [:::::::::::::::::::::diamonds v] by (-5)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (Orange Skin M Hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@Menu //shop thing 7\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (Green Skin M v)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::::::::::::::::::EMERALDS) > [3]> or <(:::::::::::::::::::::::::::::::::::::EMERALDS) = [3]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [6]\n                change [:::::::::::::::::::::::::::::::::::::emeralds v] by (-3)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (Green Skin M Hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@Menu //Mouse thingy 7\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [green skin m v]\nshow\nif <touching (menu //shop thing 7 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [green skin m hide v]\nhide\n\n@Menu //shop thing 8\n\nwhen I receive [only stats v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nhide\nhide\n\nwhen I receive [only shop v]\nshow\n\nwhen I receive [chat close v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [chat open v]\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [close menu v]\nswitch costume to (costume2 v)\nset size to (50) %\nhide\n\nwhen flag clicked\ngo to x: (0) y: (0)\ngo [backward v] (1) layers\nhide\n\nwhen I receive [shop v]\nswitch costume to (costume1 v)\ngo to x: (0) y: (0)\nset size to (20) %\nshow\ngo to [front v] layer\ngo [backward v] (1) layers\nrepeat until <(size) = [100]>\n    change size by (((100) - (size)) / (4))\nend\nforever\n    set [ghost v] effect to (50)\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (25)\n        broadcast (Bluee Skin M v)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::::::::::::::::::EMERALDS) > [4]> or <(:::::::::::::::::::::::::::::::::::::EMERALDS) = [4]>> then\n                broadcast (Purchase v)\n                start sound [Touch v]\n                set [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [7]\n                change [:::::::::::::::::::::::::::::::::::::emeralds v] by (-4)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n        broadcast (Bluee Skin M Hide v)\n    end\nend\n\nwhen flag clicked\nset [::::::::::::::::::::::::::::::::::::::::::::new skin v] to [0]\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@Menu //Mouse thingy 8\n\nwhen flag clicked\ngo to [front v] layer\nhide\n\nwhen I receive [shop v]\nshow\nforever\n    go to (mouse-pointer v)\n    set [ghost v] effect to (30)\n    go to [front v] layer\nend\n\nwhen I receive [close menu v]\nhide\n\nwhen I receive [chat close v]\nhide\n\nwhen I receive [chat open v]\nhide\n\nwhen I receive [bluee skin m v]\nshow\nif <touching (menu //shop thing 8 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [bluee skin m hide v]\nhide\n\n@Collectables\n\ndefine Smooth Glide to X: (x) Y: (y) At speed (speed)\nrepeat until <<(round (Collectables: x)) = (x)> and <(round (Collectables: y)) = (y)>>\n    change [collectables: x v] by (((x) - (Collectables: x)) / ([abs v] of ((-10) + (speed)) ))\n    change [collectables: y v] by (((y) - (Collectables: y)) / ([abs v] of ((-10) + (speed)) ))\nend\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\n\nwhen I receive [tick v]\nPosition ((Collectables: x) - (SCROLL X)) ((Collectables: y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Coin v]\n    broadcast (Coin Collected v)\n    change [::::::::::::::::::::::::::coins v] by (1)\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\ngo to [front v] layer\n\ndefine Clone at x: (x) y: (y)\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [::::::::::::::::::::::::::coins v] to [0]\nswitch costume to (coin1 v)\nwait () seconds\nClone at x: [-113] y: [66]\nClone at x: [-23] y: [212]\nClone at x: [83] y: [545]\nClone at x: [312] y: [496]\nClone at x: [508] y: [617]\nClone at x: [1046] y: [155]\nClone at x: [1795] y: [507]\nClone at x: [2272] y: [506]\nClone at x: [2443] y: [107]\nClone at x: [2397] y: [-33]\nClone at x: [2673] y: [-3]\nClone at x: [4584] y: [111]\nClone at x: [5756] y: [213]\nClone at x: [5828] y: [58]\nClone at x: [8595] y: [105]\nClone at x: [8717] y: [88]\nClone at x: [8877] y: [53]\nClone at x: [10866] y: [75]\nClone at x: [10678] y: [70]\nClone at x: [11286] y: [28]\nClone at x: [11977] y: [-60]\nClone at x: [12398] y: [0]\nset [collectables: x v] to [-9999999999]\n\nwhen flag clicked\nset [coins v] to [0]\nset [collectables: x v] to [0]\nset [collectables: y v] to [0]\nhide\n\nwhen I start as a clone\nforever\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) + (10)) At speed (1)\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) - (10)) At speed (1)\nend\n\nwhen I receive [green flag v]\nhide\n\n@Coin Effect\n\nwhen I receive [coin collected v]\ngo to x: (0) y: (0)\ngo to (my player v)\nset size to (70) %\nset [ghost v] effect to (0)\nshow\nrepeat (15)\n    change x by (-4)\n    change y by (4)\n    change [ghost v] effect by (7)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\nwhen I receive [diamond collected v]\ngo to x: (0) y: (0)\ngo to (my player v)\nset size to (70) %\nset [ghost v] effect to (0)\nshow\nrepeat (15)\n    change x by (-4)\n    change y by (4)\n    change [ghost v] effect by (7)\nend\n\n@Npc\n\nwhen I receive [green flag v]\nhide variable [mouse v]\nhide\n\nwhen I receive [tick v]\nPosition ((NPC: x) - (SCROLL X)) ((NPC: y) - (SCROLL Y))\n\ngo to [front v] layer\n\nwhen I receive [setup v]\npoint in direction (90)\nhide\nset [npc: x v] to [0]\nset [npc: y v] to [0]\nset [id v] to [1]\nif <(LEVEL) = [1]> then\n    switch costume to (trader v)\n    Clone at x: [1052] y: [-54]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [128] y: [18]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [3687] y: [161]\n    change [id v] by (1)\n    switch costume to (trader v)\n    Clone at x: [5332] y: [-54]\n    change [id v] by (1)\n    switch costume to (trader v)\n    Clone at x: [11646] y: [-57]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [8243] y: [56]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [8458] y: [-30]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [10255] y: [-63]\n    change [id v] by (1)\n    switch costume to (dude v)\n    Clone at x: [12088] y: [-2]\nend\nset [npc: x v] to [-999999]\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [npc: x v] to (x)\nset [npc: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <(ID) = [1]> then\n        go to [back v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (what would you like to trade? v) and wait\n            broadcast (Trade? v)\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [2]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            if <[quest in actions... v] contains [1-1]?> then\n                repeat until <not <touching (player v)?>>\n                    broadcast (Great job player! v) and wait\n                    stop [this script v]\n                end\n            else\n                broadcast (Could you go search a diamond for me? v) and wait\n                wait until <<<key (space v) pressed?> or <mouse down?>> and <touching (player v)?>>\n                if <(:::::::::::::::::::::DIAMONDS) > [0]> then\n                    change [:::::::::::::::::::::diamonds v] by (-1)\n                    broadcast (thank you reward v) and wait\n                    add [1-1] to [quest in actions... v]\n                    start sound [Collect v]\n                    change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\n                else\n                    broadcast (you do not have any diamond with you v) and wait\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [3]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            if <[quest in actions... v] contains [1-2]?> then\n                repeat until <not <touching (player v)?>>\n                    broadcast (Great job player! v) and wait\n                end\n            else\n                broadcast (COuld you go search an emerald v) and wait\n                wait until <<<key (space v) pressed?> or <mouse down?>> and <touching (player v)?>>\n                if <(:::::::::::::::::::::DIAMONDS) > [0]> then\n                    change [:::::::::::::::::::::diamonds v] by (-1)\n                    broadcast (thank you reward v) and wait\n                    add [1-2] to [quest in actions... v]\n                    start sound [Collect v]\n                    change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\n                else\n                    broadcast (You do not have any emerald with you v) and wait\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [4]> then\n        go to [back v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (what would you like to trade? v) and wait\n            broadcast (Trade? v)\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [5]> then\n        go to [back v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (what would you like to trade? v) and wait\n            broadcast (Trade? v)\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nhide\n\nif <(ID) = [5]> then\n    hide\nend\n\nbroadcast (Trade? v)\n\nwhen I start as a clone\nforever\n    if <(ID) = [6]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (What a nice beautiful day for diamonds v) and wait\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [7]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (GOOD LUCK! v) and wait\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [8]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (you got really far! v) and wait\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(ID) = [9]> then\n        go to [front v] layer\n        if <<touching (player v)?> and <(`^IS TEXTING) = [0]>> then\n            broadcast (I think you need diamomnd to open this door v) and wait\n            wait until <not <touching (player v)?>>\n        end\n    end\nend\n\nchange [id v] by (1)\nswitch costume to (dude v)\nClone at x: [12088] y: [-2]\n\n@Trade Menu\n\nwhen flag clicked\nhide\n\nwhen I receive [trade = yes v]\ngo to x: (0) y: (-213)\nset [yyy v] to [3]\ngo to [front v] layer\nshow\nrepeat (17)\n    change [yyy v] by (0.999)\n    change y by (yyy)\nend\nforever\n    if <<key (space v) pressed?> or <<mouse down?> and <not <touching (mouse-pointer v)?>>>> then\n        broadcast (End Trade v)\n    end\nend\n\nwhen I receive [end trade v]\nset [yyy v] to [-3]\nrepeat (17)\n    change [yyy v] by (-0.999)\n    change y by (yyy)\nend\nhide\n\n@Checkpoint \n\ndefine clone (x) (y)\nset [@x v] to (x)\nset [@y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nforever\n    if <touching (player v)?> then\n        set [checkpoint x v] to (@x)\n        set [checkpoint y v] to (@y)\n    end\n    if <<(@x) = (CHECKPOINT X)> and <(@y) = (CHECKPOINT Y)>> then\n        switch costume to (on v)\n    else\n        switch costume to (off v)\n    end\nend\n\nwhen I receive [tick v]\npositon ((@x) - (SCROLL X)) ((@y) - (SCROLL Y))\n\ndefine positon (x) (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [begin v]\nset [checkpoint x v] to [0]\nset [checkpoint y v] to [0]\nclone [899] [100]\nclone [3844] [664]\nclone [6219] [150]\nclone [8994] [-40]\nclone [11969] [201]\nclone [10326] [-31]\n\nclone [0] [30]\n\nswitch costume to (blankkkkk v)\nswitch costume to (blankkkkk v)\nswitch costume to (blankkkkk v)\n\nclone [10267] [-12]\n\nswitch costume to (blankkkkk v)\n\n@Trampoline\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Trampoline: x) - (SCROLL X)) ((Trampoline: y) - (SCROLL Y))\nif <touching (player v)?> then\n    broadcast (Trampoline v)\nend\n\nwhen I receive [setup v]\nhide\nset [collected max v] to [0]\nset [trampoline: x v] to [0]\nset [trampoline: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (spring v)\n    Clone at x: [1587] y: [395]\n    Clone at x: [3868] y: [507]\n    Clone at x: [11582] y: [96]\nend\nset [trampoline: x v] to [-9999999999]\n\nClone at x: [2762] y: [-50]\n\ndefine Position (x) (y)\ngo to [front v] layer\nset size to (150) %\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [trampoline: x v] to (x)\nset [trampoline: y v] to (y)\ncreate clone of (_myself_ v)\n\n@Confirm purchase\n\nwhen flag clicked\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [0]\nhide\ngo to [front v] layer\ngo to x: (0) y: (-10)\n\nwhen I receive [trade = yes v]\nforever\n    go to [front v] layer\n    show\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (50)\n        if <mouse down?> then\n            if <<(::::::::::::::::::::::::::COINS) = [10]> or <(::::::::::::::::::::::::::COINS) > [10]>> then\n                broadcast (Purchase v)\n                broadcast (10 Coins For 1 Diamond v)\n                change [::::::::::::::::::::::::::coins v] by (-10)\n                change [:::::::::::::::::::::diamonds v] by (1)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [end trade v]\nhide\n\nwhen I receive [tick v]\nif <(trading?) = [1]> then\n\nchange [::::::::::::::::::::::::::coins v] by (10)\n\n@Check\n\nwhen flag clicked\nhide\ngo to [front v] layer\n\nwhen I receive [purchase v]\ngo to [front v] layer\nswitch costume to (check v)\ngo to (mouse-pointer v)\nset [ghost v] effect to (100)\nshow\nset size to (10) %\nrepeat until <(size) > [90]>\n    change [ghost v] effect by (-15)\n    change size by (((size) - (5)) / (3))\nend\nrepeat until <(size) > [135]>\n    change size by (((137) - (size)) / (2))\nend\nrepeat until <(size) < [90]>\n    change size by (((size) - (89)) / (-3))\nend\nwait (0.5) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\n@Epik Prizes\n\nwhen I receive [free rewards v]\nswitch costume to (costume2 v)\ngo to x: (0) y: (50)\nshow\ngo to [front v] layer\nstart sound [pop v]\nrepeat (9)\n    change y by (-6)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-1)\nend\nswitch costume to (costume3 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\nwait (0.02) seconds\nswitch costume to (costume4 v)\ncreate clone of (_myself_ v)\nswitch costume to (costume2 v)\nwait until <(Costume2) > [0.9]>\nrepeat (27)\n    change y by (15)\nend\nhide\n\nwhen I start as a clone\ngo to x: (0) y: (50)\nshow\ngo to [front v] layer\nrepeat (12)\n    change y by (-9)\nend\nrepeat (5)\n    change y by (3)\nend\nrepeat (5)\n    change y by (-1)\nend\nforever\n    if <touching (mouse-pointer v)?> then\n        set [ghost v] effect to (50)\n        if <(costume [number v]) = [2]> then\n            if <mouse down?> then\n                set [costume2 v] to [2]\n                repeat (25)\n                    change y by (10)\n                end\n                hide\n                delete this clone\n            end\n        else\n            if <(costume [number v]) = [3]> then\n                if <mouse down?> then\n                    set [costume2 v] to [1]\n                    repeat (25)\n                        change y by (15)\n                    end\n                    hide\n                    delete this clone\n                end\n            end\n        end\n    else\n        set [ghost v] effect to (0)\n    end\n    if <(Costume2) > [0.99]> then\n        repeat (25)\n            change y by (15)\n        end\n        hide\n        delete this clone\n    end\nend\n\nwhen flag clicked\nhide\nset [costume2 v] to [0.9]\n\nwhen I receive [begin v]\nset [costume2 v] to [0.9]\nwait (0.1) seconds\nset [costume2 v] to [0.9]\nwait (0.2) seconds\nset [costume2 v] to [0.9]\n\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (10)\nchange [:::::::::::::::::::::diamonds v] by (19)\nchange [::::::::::::::::::::::::::coins v] by (10)\n\n@Trade\n\nwhen I receive [trade? v]\ngo [forward v] (99999) layers\nshow\nswitch costume to (trade button v)\ngo to x: (-187) y: (-155)\nforever\n    if <(trading?) = [0]> then\n        if <touching (mouse-pointer v)?> then\n            repeat until <(size) = [120]>\n                change size by (((120) - (size)) / (2))\n            end\n            if <mouse down?> then\n                broadcast (trade = yes v)\n                start sound [Touch v]\n                set [trading? v] to [1]\n                wait until <not <mouse down?>>\n            end\n            if <(trading?) = [1]> then\n                if <mouse down?> then\n                    say [Currently Already Trading!]\n                    wait until <not <mouse down?>>\n                end\n            end\n        else\n            repeat until <(size) = [100]>\n                change size by (((100) - (size)) / (6))\n            end\n        end\n    end\n    go to [front v] layer\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (-187) y: (-155)\n\nwhen I receive [no traed v]\nset size to (100) %\nhide\n\nwhen I receive [trade = yes v]\nhide\n\nwhen I receive [begin v]\nset [trading? v] to [0]\n\nwhen I receive [end trade v]\nset [trading? v] to [0]\n\n@Moving Enemy\n\ndefine Clone at x: (x) y: (y) MAX (i)\nset [enemies max x v] to (i)\nset [enemies: x v] to (x)\nset [enemies: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nset size to (100) %\nPosition ((enemies: X CHANGE) + ((enemies: x) - (SCROLL X))) ((enemies: y) - (SCROLL Y))\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I start as a clone\nset [enemies: x change v] to [0]\nset rotation style [left-right v]\nforever\n    repeat until <(enemies: X CHANGE) > (enemies MAX X)>\n        point in direction (90)\n        change [enemies: x change v] by (2)\n    end\n    repeat until <(enemies: X CHANGE) < [1]>\n        point in direction (-90)\n        change [enemies: x change v] by (-2)\n    end\nend\n\nwhen I receive [reset v]\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <<touching (player v)?> and <(_God Mode?) = [0]>> then\n        if <<([y position v] of [player v]) > (y position)> and <(sy) < [-1]>> then\n            broadcast (JUMP v)\n            broadcast (Enemy Killed v)\n            delete this clone\n        else\n            broadcast (DIE v)\n        end\n    end\nend\n\nwhen I receive [setup v]\nhide\nset [enemies: x v] to [0]\nset [enemies: y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [5575] y: [-59] MAX [100]\n    Clone at x: [11864] y: [-56] MAX [100]\n    Clone at x: [4056] y: [-56] MAX [100]\n    Clone at x: [4537] y: [16] MAX [100]\n    Clone at x: [7417] y: [-56] MAX [100]\nend\nset [enemies: x v] to [-999999999999999]\n\nClone at x: [2330] y: [335] MAX [250]\nClone at x: [2248] y: [335] MAX [160]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (costume1 v)\n\nwhen I start as a clone\nforever\n    switch costume to (costume1 v)\n    repeat (6)\n        next costume\n        wait (0.035) seconds\n    end\n    switch costume to (costume7 v)\n    repeat (6)\n        switch costume to ((costume [number v]) - (1))\n        wait (0.035) seconds\n    end\nend\n\nforever\n    Clone at x: [1836] y: [335] MAX [250]\n    wait (.2) seconds\nend\n\nClone at x: [7417] y: [-56] MAX [100]\n\n@Enemy Effect\n\nwhen I receive [enemy killed v]\nstart sound [Coin v]\ngo to x: (0) y: (0)\ngo to (my player v)\nset size to (70) %\nset [ghost v] effect to (0)\nshow\nrepeat (20)\n    change x by (-4)\n    change y by (4)\n    change [ghost v] effect by (5)\nend\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Confirm purchase2\n\nwhen flag clicked\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [0]\nhide\ngo to [front v] layer\ngo to x: (0) y: (0)\n\nwhen I receive [trade = yes v]\nforever\n    go to x: (0) y: (0)\n    go to [front v] layer\n    show\n    if <touching (mouse-pointer v)?> then\n        set [brightness v] effect to (50)\n        if <mouse down?> then\n            if <<(:::::::::::::::::::::DIAMONDS) = [3]> or <(:::::::::::::::::::::DIAMONDS) > [3]>> then\n                broadcast (Purchase v)\n                broadcast (3 Diamonds For 1 Emerald v)\n                change [:::::::::::::::::::::diamonds v] by (-3)\n                change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\n                wait until <not <mouse down?>>\n            end\n        end\n    else\n        set [brightness v] effect to (0)\n    end\nend\n\nwhen I receive [end trade v]\nhide\n\nwhen I receive [tick v]\nif <(trading?) = [1]> then\n\nchange [:::::::::::::::::::::diamonds v] by (10)\nchange [::::::::::::::::::::::::::coins v] by (10)\n\n@TB\n\nwhen I receive [green flag v]\n\nwhen flag clicked\nshow\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nhide\n\n@Save\n\nwhen I receive [trade? v]\ngo [forward v] (99999) layers\nshow\nswitch costume to (save button v)\ngo to x: (-100) y: (-155)\nforever\n    go to [front v] layer\n    if <touching (mouse-pointer v)?> then\n        repeat until <(size) = [120]>\n            change size by (((120) - (size)) / (2))\n        end\n        if <mouse down?> then\n            set [save v] to [1]\n            set [save 1 v] to (::::::::::::::::::::::::::COINS)\n            set [save 2 v] to (:::::::::::::::::::::DIAMONDS)\n            broadcast (Purchase v)\n            start sound [Touch v]\n            switch costume to (costume1 v)\n            wait until <not <mouse down?>>\n        end\n        if <(save) = [1]> then\n            if <touching (mouse-pointer v)?> then\n                if <mouse down?> then\n                    say [You Just Saved.] for (2) seconds\n                    wait until <not <mouse down?>>\n                end\n            end\n        end\n    else\n        repeat until <(size) = [100]>\n            change size by (((100) - (size)) / (6))\n        end\n    end\nend\n\nwhen flag clicked\ngo to [front v] layer\nhide\ngo to x: (0) y: (0)\n\nwhen flag clicked\nhide\nset size to (100) %\ngo to x: (-187) y: (-155)\n\nwhen I receive [no traed v]\nset size to (100) %\nhide\n\nwhen I receive [trade = yes v]\nhide\n\nwhen I receive [begin v]\nset [trading? v] to [0]\n\nwhen I receive [end trade v]\nset [trading? v] to [0]\n\nwhen I receive [tick v]\nif <<(save) = [1]> and <(::::::::::::::::::::::::::::::::::::::::::::::::::::::::DIE) = [1]>> then\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::::::::die v] to [0]\nelse\n    stop [this script v]\nend\n\nset [::::::::::::::::::::::::::coins v] to [0]\n\nset [:::::::::::::::::::::diamonds v] to [0]\n\nchange [:::::::::::::::::::::diamonds v] by (10)\n\n@Asset\n\nwhen flag clicked\nhide\n\nplay sound [1-0 v] until done\nplay sound [1-1 v] until done\nplay sound [1-2 v] until done\nplay sound [1-3 v] until done\nplay sound [1-4 v] until done\nplay sound [1-5 v] until done\nplay sound [1-6 v] until done\nplay sound [2-1 v] until done\nplay sound [2-2 v] until done\nplay sound [2-3 v] until done\nplay sound [3-1 v] until done\nplay sound [4-1 v] until done\nplay sound [4-2 v] until done\nplay sound [4-3 v] until done\n\n@water\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 [tick v]\nPosition ((Water x) - (SCROLL X)) ((Water y) - (SCROLL Y))\n\ngo to [back v] layer\n\nwhen flag clicked\npoint in direction (90)\nset [water x v] to [9134]\nset [water y v] to [-132]\n\n@water2\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 [tick v]\nPosition ((Water x) - (SCROLL X)) ((Water y) - (SCROLL Y))\n\ngo to [back v] layer\n\nwhen flag clicked\npoint in direction (90)\nset [water x v] to [9855]\nset [water y v] to [-132]\n\n@background\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Platforms: x) - (SCROLL X)) ((Platforms: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [platforms: x v] to [0]\nset [platforms: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [480]\n    Clone at x: [480] y: [-480]\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [480]\n    Clone at x: [480] y: [-480]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [0]\n    Clone at x: [-480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [0] y: [380]\n    Clone at x: [480] y: [-380]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [310] y: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [480] y: [0]\nend\n\ndefine Position (x) (y)\nset size to (100) %\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 [platforms: x v] by (x)\nchange [platforms: y v] by (y)\nnext costume\n\nwhen flag clicked\nhide\n\nchange [::::::::::::::::::::::::::coins v] by (999)\nchange [:::::::::::::::::::::diamonds v] by (999)\nchange [:::::::::::::::::::::diamonds v] by (50)\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (999)\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [31]> then\n        repeat (55)\n            change [platforms: x v] by (-5)\n        end\n        repeat (55)\n            change [platforms: x v] by (5)\n        end\n    end\nend\n\nchange [platforms: y v] by (1)\n\n@wind mill thing\n\nwhen I receive [green flag v]\nset [wind palm x v] to [6787]\nset [wind palm y v] to [291]\n\ndefine position x (x) y (y)\ngo to x: (x) y: (y)\ngo to [front v] layer\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [tick v]\nturn left (1) degrees\nposition x ((wind palm x) - (SCROLL X)) y ((wind palm y) - (SCROLL Y))\n\n@God mode #1\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [connected v]\ngo to [front v] layer\nforever\n    if <(Finish?) = [1]> then\n        show\n        go to x: (-200) y: (100)\n        if <(God mode \(costume type\)) = [On]> then\n            switch costume to (costume3 v)\n        else\n            switch costume to (costume2 v)\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [god mode \(costume type\) v] to [On]\n            set [_god mode? v] to [1]\n            switch costume to (costume3 v)\n        end\n    end\nend\n\n@God mode #2\n\nwhen flag clicked\nswitch costume to (costume2 v)\nhide\n\nwhen I receive [connected v]\ngo to [front v] layer\nforever\n    if <(Finish?) = [1]> then\n        show\n        go to x: (-200) y: (100)\n        if <(God mode \(costume type\)) = [Off]> then\n            switch costume to (costume1 v)\n        else\n            switch costume to (costume2 v)\n        end\n        if <<touching (mouse-pointer v)?> and <mouse down?>> then\n            set [god mode \(costume type\) v] to [Off]\n            set [_god mode? v] to [0]\n            switch costume to (costume1 v)\n        end\n    end\nend\n\n@God mode #3\n\nwhen flag clicked\nset [god mode \(costume type\) v] to [off]\nset [finish? v] to [0]\nhide\nforever\n    if <(Finish?) = [1]> then\n        show\n        go to x: (-200) y: (100)\n    end\nend\n\nset [finish? v] to [1]\nset [exit v] to [win]\n\n@Text Engine\n\ndefine Type (text) at x: (x) y: (y)\nswitch costume to (rectangle v)\nset x to (0)\nset y to (-130)\nset size to (40) %\nshow\ngo to [front v] layer\nrepeat (20)\n    change size by (((100) - (size)) / (4))\nend\nset [text engine: x v] to (x)\nset [text engine: y v] to (y)\nset [# v] to [0]\nset [`^is texting v] to [1]\nrepeat (length of (text))\n    change [# v] by (1)\n    set [asset v] to (letter (#) of (text))\n    create clone of (_myself_ v)\n    if <<key (space v) pressed?> or <mouse down?>> then\n        set [speed up? v] to [1]\n    end\n    if <(Speed up?) = [0]> then\n        wait (0.05) seconds\n    end\n    if <((#) mod ((Speed up?) + (1))) = [0]> then\n        start sound [text v]\n    end\nend\nwait until <<key (space v) pressed?> or <mouse down?>>\nwait until <not <<key (space v) pressed?> or <mouse down?>>>\nset [`^is texting v] to [0]\nbroadcast (Clear v)\nhide\n\ndefine Clone Setup\nrepeat (#)\n    change x by (15)\n    if <(x position) > [172]> then\n        set x to ((Text Engine: x) + (15))\n        change y by (-18)\n    end\nend\ngo to [front v] layer\n\nwhen I start as a clone\nset x to (Text Engine: x)\nset y to (Text Engine: y)\nswitch costume to (asset)\nset [brightness v] effect to (40)\nif <(costume [number v]) = [37]> then\n    switch costume to ( v)\n    delete this clone\nend\nClone Setup\nshow\ngo to [front v] layer\n\nwhen I receive [clear v]\nset [speed up? v] to [0]\ndelete this clone\n\nwhen I receive [could you go search a diamond for me? v]\nType [can you go search a diamond for me?\(click again here for yes\)] at x: [-171] y: [-105]\n\nwhen flag clicked\nhide\n\nwhen I receive [thank you reward v]\nType [thanks a lot, here's a reward] at x: [-171] y: [-105]\n\nwhen I receive [you do not have any diamond with you v]\nType [you don't have any with you!] at x: [-171] y: [-105]\n\nwhen I receive [ok, have a great day v]\nType [no problem, have a great day!] at x: [-171] y: [-105]\n\nwhen I receive [great job player! v]\nType [great job!] at x: [-171] y: [-105]\n\nwhen I receive [what would you like to trade? v]\nType [what would you like to trade?] at x: [-171] y: [-105]\n\nwhen I receive [could you go search an emerald v]\nType [can you go search an emerald for me?\(click again here for yes\)] at x: [-171] y: [-105]\n\nwhen I receive [you do not have any emerald with you v]\nType [you don't have any emerald with you!] at x: [-171] y: [-105]\n\nwhen I receive [what a nice beautiful day for diamonds v]\nType [it's a good day to go hunt diamonds!] at x: [-171] y: [-105]\n\nwhen I receive [good luck! v]\nType [good luck player!] at x: [-171] y: [-105]\n\nwhen I receive [you got really far! v]\nType [you got really far now!] at x: [-171] y: [-105]\n\nwhen I receive [i think you need diamomnd to open this door v]\nType [i think you need diamomonds to open that door!] at x: [-171] y: [-105]\n\n@Sun \n\nwhen flag clicked\nset size to (100) %\nforever\n    go to x: (200) y: (145)\n    if <(backdrop [number v]) = [1]> then\n        switch costume to (d v)\n    else\n        switch costume to (n v)\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    go to [back v] layer\nend\n\nwhen flag clicked\n\n@Ray\n\nwhen flag clicked\nset size to (100) %\ngo to [back v] layer\nforever\n    repeat until <(size) = [120]>\n        change size by (((120) - (size)) / (6))\n    end\n    repeat until <(size) = [100]>\n        change size by (((100) - (size)) / (6))\n    end\nend\n\nwhen flag clicked\nrepeat (10)\n    go to [back v] layer\nend\nforever\n    go to x: (200) y: (145)\n    if <(backdrop [number v]) = [1]> then\n        switch costume to (d v)\n    else\n        switch costume to (n v)\n    end\nend\n\n@parallax\n\nwhen I receive [tick v]\nGo to (((((@ID) * (480)) - ((SCROLL X) / (6))) mod (960)) - (480)) ((((SCROLL Y) * (-1)) - (150)) / (3))\n\nwhen I start as a clone\npoint in direction (90)\nset [ghost v] effect to (0)\nset [@id v] to [0]\nswitch costume to (costume2 v)\nhide\n\ndefine Go to (x) (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\ngo to [back v] layer\nif <(backdrop [number v]) = [1]> then\n    set [brightness v] effect to (30)\n    set [color v] effect to (>BACKGROUNDS COLORS)\nelse\n    set [brightness v] effect to (0)\n    set [color v] effect to (20)\nend\n\nwhen I receive [connected v]\ncreate clone of (_myself_ v)\nset [@id v] to [-1]\nswitch costume to (costume1 v)\n\nwhen flag clicked\nhide\n\n@COINS SETUP\n\nClone at x: [-113] y: [66]\nClone at x: [-23] y: [212]\nClone at x: [83] y: [545]\nClone at x: [312] y: [496]\nClone at x: [508] y: [617]\nClone at x: [1046] y: [155]\nClone at x: [1795] y: [507]\nClone at x: [2272] y: [506]\nClone at x: [2443] y: [107]\nClone at x: [2397] y: [-33]\nClone at x: [2673] y: [-3]\nClone at x: [4584] y: [111]\nClone at x: [5756] y: [213]\nClone at x: [5828] y: [58]\nClone at x: [8595] y: [105]\nClone at x: [8717] y: [88]\nClone at x: [8877] y: [53]\nClone at x: [10866] y: [75]\nClone at x: [10678] y: [70]\nClone at x: [11286] y: [28]\nClone at x: [11977] y: [-60]\nClone at x: [12398] y: [0]\n\nClone at x: [548] y: [218]\nClone at x: [2119] y: [294]\nClone at x: [2694] y: [323]\nClone at x: [5588] y: [382]\nClone at x: [8304] y: [314]\nClone at x: [9442] y: [69]\nClone at x: [10624] y: [151]\nClone at x: [12089] y: [14]\n\nClone at x: [2144] y: [70]\nClone at x: [3983] y: [287]\nClone at x: [6751] y: [240]\nClone at x: [9946] y: [-18]\nClone at x: [11550] y: [-164]\n\n@IMPOSSIBLE DOOR\n\nwhen flag clicked\nset [door x v] to [12426]\nset [door y v] to [44]\n\nwhen I receive [tick v]\nPosition x ((door x) - (SCROLL X)) ((door y) - (SCROLL Y))\n\ndefine Position x (x) (y)\ngo to [back v] layer\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\n\n@DIAMONDS\n\ndefine Smooth Glide to X: (x) Y: (y) At speed (speed)\nrepeat until <<(round (Collectables: x)) = (x)> and <(round (Collectables: y)) = (y)>>\n    change [collectables: x v] by (((x) - (Collectables: x)) / ([abs v] of ((-10) + (speed)) ))\n    change [collectables: y v] by (((y) - (Collectables: y)) / ([abs v] of ((-10) + (speed)) ))\nend\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\n\nwhen I receive [tick v]\nPosition ((Collectables: x) - (SCROLL X)) ((Collectables: y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Coin v]\n    broadcast (Coin Collected v)\n    change [:::::::::::::::::::::diamonds v] by (1)\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\ngo to [front v] layer\n\ndefine Clone at x: (x) y: (y)\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [:::::::::::::::::::::diamonds v] to [0]\nswitch costume to (coin1 v)\nwait () seconds\nClone at x: [548] y: [218]\nClone at x: [2119] y: [294]\nClone at x: [2694] y: [323]\nClone at x: [5588] y: [382]\nClone at x: [8304] y: [314]\nClone at x: [9442] y: [69]\nClone at x: [10624] y: [151]\nClone at x: [12089] y: [14]\nset [collectables: x v] to [-9999999999]\n\nwhen flag clicked\nset [coins v] to [0]\nset [collectables: x v] to [0]\nset [collectables: y v] to [0]\nhide\n\nwhen I start as a clone\nforever\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) + (10)) At speed (1)\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) - (10)) At speed (1)\nend\n\nwhen I receive [green flag v]\nhide\n\n@EMERALDS\n\ndefine Smooth Glide to X: (x) Y: (y) At speed (speed)\nrepeat until <<(round (Collectables: x)) = (x)> and <(round (Collectables: y)) = (y)>>\n    change [collectables: x v] by (((x) - (Collectables: x)) / ([abs v] of ((-10) + (speed)) ))\n    change [collectables: y v] by (((y) - (Collectables: y)) / ([abs v] of ((-10) + (speed)) ))\nend\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\n\nwhen I receive [tick v]\nPosition ((Collectables: x) - (SCROLL X)) ((Collectables: y) - (SCROLL Y))\nif <touching (player v)?> then\n    start sound [Coin v]\n    broadcast (Coin Collected v)\n    change [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\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\ngo to [front v] layer\n\ndefine Clone at x: (x) y: (y)\nset [collectables: x v] to (x)\nset [collectables: y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [:::::::::::::::::::::::::::::::::::::emeralds v] to [0]\nswitch costume to (coin1 v)\nwait () seconds\nClone at x: [2144] y: [70]\nClone at x: [3983] y: [287]\nClone at x: [6751] y: [240]\nClone at x: [9946] y: [-18]\nClone at x: [11550] y: [-164]\nset [collectables: x v] to [-9999999999]\n\nwhen flag clicked\nset [coins v] to [0]\nset [collectables: x v] to [0]\nset [collectables: y v] to [0]\nhide\n\nwhen I start as a clone\nforever\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) + (10)) At speed (1)\n    Smooth Glide to X: (Collectables: x) Y: ((Collectables: y) - (10)) At speed (1)\nend\n\nwhen I receive [green flag v]\nhide\n\n