[DEMO] Life 2 || Multiplayer Platformer                            #games #all #art #music    

Instructions: DISCLAIMER: N = NO NAMES\nTHIS NOT FINISHED AND ISN'T ALL THE PROGRESS I HAVE ACTUALLY MADE, THANKS.\nI WANTED TO JUST SAY I AM BACK FROM BREAK :\n\nRESHARED TO RESET CLOUD, MAKE 10 PLAYER CLOUD, FIX TRADING, AND FIX A SHOP BUG :( \nWHY U HATED ON ME, ALL IT DOES IS MAKE ME DEMOTIVATED. MASS REPORTED x1 :(\n\nHello! I Was Very Excited To Release This. When I Scrapped It, I Actually Figured Out The Problem! So This Version Has No Landscape, Very Little Space To Move Around. There Will Be 5x More Stuff Overall In Finished Version. My 3 Months Of Trial And Error Is Almost Done :D\n\nHow To Play:\nUse Arrow Keys, WASD, Or Drag To Move.\nDon't Touch Enemies, Fall To Pits, Spikes, Or Saws.\nCollect Coins And Trade To Buy Stuff\nN = Toggle Names\n\nSubscribe To My YT! Just Search JTHEJET\n\nCredits:\n@StratfordJames For Helping Me :D And Some Art\n@Griffpatch For Teaching Me Stuff\n@tennisboy188 For The Epic Intro :D\n@MaxyBrian for the ground!\nThe Menu, Trading, And Etc Idea Was By Me

@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\nwhen I receive [song v]\nbroadcast (Epik v)\nplay sound [Amadeus Legendary EDM Release v] until done\n\nwhen I receive [epik v]\nwait (241.60) seconds\nbroadcast (Epik x 2 v)\nplay sound [Hooley Gun By Garlon v] until done\n\nwhen I receive [epik x 2 v]\nwait (185.96) seconds\nbroadcast (epik x 3 v)\nplay sound [Xaf - Kaled v] until done\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]\n\nwhen I receive [epik x 3 v]\nwait (203.96) seconds\nplay sound [bensound-memories v] until done\nbroadcast (Epik v)\n\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (1)\nchange [:::::::::::::::::::::diamonds v] by (5)\nchange [::::::::::::::::::::::::::coins v] by (10)\n\nwhen I receive [setup v]\nif <(username) = [JTHEJET]> then\nend\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 (-1)\n    else\n        change [y v] by (1)\n        set [in air v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine Game On\n\ndefine Test - Die\nif <touching (danger 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\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\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\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\ndefine Tick\nSkin Stuff\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            set [sy v] to [16]\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 []\nwrite (username) to encoded\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 () 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 [play game v]\nforever\n    if <(Connected?) = [1]> then\n        broadcast (Reset v) and wait\n        broadcast (Setup v) and wait\n        Game On\n        repeat until <(EXIT) > []>\n            Tick\n            broadcast (Tick v)\n        end\n        if <(EXIT) = [win]> then\n            Game - Win\n        else\n            Game - Die\n        end\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 [0]\nset [y v] to [0]\nset [sx v] to [0]\nset [sy v] to [0]\nset [in air v] to [0]\nset [exit v] to []\nset [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\nStuff\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 Stuff\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\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        Tick\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 (normal v)\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                                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\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?> 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@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: [0]\n    Clone at x: [480] y: [0]\n    Clone at x: [1000] y: [480]\n    Clone at x: [480] y: [-480]\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\n@DANGER\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((DANGER: x) - (SCROLL X)) ((DANGER: y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide variable [mouse x,y v]\nhide\nset [danger: x v] to [0]\nset [danger: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    Clone at x: [480] y: []\nend\n\ndefine Position (x) (y)\ngo to [back v] layer\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\ncreate clone of (_myself_ v)\nchange [danger: x v] by (x)\nchange [danger: y v] by (y)\nnext costume\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))\ngo to [back v] layer\n\nwhen I receive [setup v]\nhide\nset [::::::::::::::::::::::::::coins v] to [0]\nset [saws: x v] to [0]\nset [saws: y v] to [0]\nif <(LEVEL) = [1]> then\n    Clone at x: [193] y: [12]\n    Clone at x: [436] y: [-60]\n    Clone at x: [660] y: [-73]\n    Clone at x: [1300] y: [30]\nelse\nend\nset [saws: 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 [saws: x v] to (x)\nset [saws: y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [340] y: [27]\nClone at x: [530] y: [27]\nClone at x: [786] y: [27]\nClone at x: [1124] y: [27]\nClone at x: [1331] y: [245]\nClone at x: [1065] y: [345]\nClone at x: [825] y: [272]\nClone at x: [392] y: [245]\nClone at x: [197] y: [335]\n\nClone at x: [631] y: [11]\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]\nend\n\nwhen I receive [setup v]\nhide\nset [::::::::::::::::::::::::::coins v] to [0]\nset [exit: x v] to [0]\nset [exit: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (closed v)\n    Clone at x: [324] y: [242423]\nend\n\ndefine Position (x) (y)\ngo to [back v] layer\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine Clone at x: (x) y: (y)\nset [exit: x v] to (x)\nset [exit: y v] to (y)\n\n@Love fave\n\nwhen flag clicked\nset [costume 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 <(Costume) > [0]> then\n        hide\n        stop [this script v]\n    end\nend\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]>>\nwait (1) seconds\nbroadcast (FREE REWARDS v)\n\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    set [loved__ v] to [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    set [faved___ v] to [0]\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\n@Joining\n\nwhen flag clicked\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]\nrepeat (11)\n    create clone of (_myself_ v)\n    turn right (40) degrees\nend\n\nwhen I receive [connected v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nforever\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (-6)\n        change size by (1)\n    end\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (6)\n        change size by (-1)\n    end\nend\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\n@Intro for @JTHEJET\n\nwhen I start as a clone\nif <(costume [number v]) = [1]> then\n    show\n    go to x: (480) y: (y position)\n    set [ghost v] effect to (100)\n    repeat (20)\n        change x by (((0) - (x position)) / (5))\n        change [ghost v] effect by (-10)\n    end\n    wait (.3) seconds\n    go to x: (0) y: (y position)\n    repeat (10)\n        change [ghost v] effect by (10)\n        change size by (-5)\n    end\n    set [sequence v] to [2]\n    delete this clone\nend\nif <<(costume [number v]) > [1]> and <(costume [number v]) < [9]>> then\n    show\n    go to x: (-500) y: (-500)\n    set size to (0) %\n    point in direction (45)\n    set [ghost v] effect to (100)\n    repeat until <(Sequence) = [3]>\n        change [ghost v] effect by (-7)\n        change size by (((80) - (size)) / (5))\n        change x by (((i) - (x position)) / (5))\n        change y by (((0) - (y position)) / (5))\n        turn right (((90) - (direction)) / (5)) degrees\n    end\n    set [i v] to [15]\n    repeat (20)\n        change [ghost v] effect by (5)\n        change y by (i)\n        change [i v] by (-1.5)\n        turn right ((x position) / (30)) degrees\n        change size by (-1.5)\n    end\n    set [sequence v] to [4]\n    delete this clone\nend\nif <<(costume [number v]) = [9]> or <(costume [number v]) = [10]>> then\n    show\n    go to x: (-500) y: (500)\n    clear graphic effects\n    repeat (20)\n        go to x: ((x position) / (1.2)) y: ((y position) / (1.2))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\nif <<(costume [number v]) > [10]> and <(costume [number v]) < [14]>> then\n    show\n    set [ghost v] effect to (100)\n    set size to (0) %\n    point in direction (45)\n    repeat until <(Sequence) = [6]>\n        change [ghost v] effect by (-10)\n        set [i v] to (((i) * (.8)) + (((65) - (size)) / (5)))\n        change size by (i)\n        set [i2 v] to (((i2) * (.7)) + (((90) - (direction)) / (5)))\n        turn right (i2) degrees\n    end\n    repeat until <(Sequence) = [7]>\n        set [i v] to (((i) * (.8)) + (((120) - (size)) / (5)))\n        change size by (i)\n        point in direction ((90) + ((3) * ([cos v] of ((timer) * (180)) )))\n        set y to ((10) * ([cos v] of (((timer) - (1)) * (200)) ))\n    end\n    if <(costume [number v]) = [11]> then\n        set [i v] to [10]\n        set [i2 v] to [13]\n        repeat (40)\n            turn right ((x position) / (40)) degrees\n            change [ghost v] effect by (3)\n            change x by (i2)\n            change y by (i)\n            change size by (-2)\n            change [i v] by (-1.5)\n            set [i2 v] to ((i2) * (.9))\n        end\n        set [sequence v] to [8]\n        delete this clone\n    else\n        if <(costume [number v]) = [12]> then\n            set [i v] to [12]\n            set [i2 v] to [5]\n            repeat (40)\n                turn right ((x position) / (40)) degrees\n                change size by (-2)\n                change [ghost v] effect by (3)\n                change x by (i2)\n                change y by (i)\n                change [i v] by (-1)\n                set [i2 v] to ((i2) * (.9))\n            end\n            delete this clone\n        else\n            set [i v] to [12]\n            set [i2 v] to [-10]\n            repeat (40)\n                turn right ((x position) / (40)) degrees\n                change size by (-2)\n                change [ghost v] effect by (3)\n                change x by (i2)\n                change y by (i)\n                change [i v] by (-1)\n                set [i2 v] to ((i2) * (.9))\n            end\n            delete this clone\n        end\n    end\nend\nif <(costume [number v]) = [14]> then\n    if <not <(Sequence) = [9]>> then\n        go to x: (0) y: (0)\n        go to [front v] layer\n        show\n        set [ghost v] effect to (0)\n        set [brightness v] effect to (-100)\n        repeat (40)\n            go to [front v] layer\n            change [ghost v] effect by (4)\n        end\n        delete this clone\n    else\n        go to x: (0) y: (0)\n        go to [front v] layer\n        show\n        set [ghost v] effect to (0)\n        set [brightness v] effect to (100)\n        repeat (40)\n            go to [front v] layer\n            change [ghost v] effect by (4)\n        end\n        delete this clone\n    end\nend\nif <(costume [number v]) = [15]> then\n    show\n    set size to (pick random (80) to (200)) %\n    set [ghost v] effect to (pick random (10) to (30))\n    set [brightness v] effect to (pick random (-20) to (20))\n    set [i v] to (pick random (-20) to (20))\n    set [i2 v] to (pick random (10) to (20))\n    repeat until <touching (_edge_ v)?>\n        change size by (-1)\n        change x by (i)\n        change y by (i2)\n        change [i2 v] by (-2)\n    end\n    delete this clone\nend\nif <<(costume [number v]) = [16]> or <(costume [number v]) = [17]>> then\n    show\n    switch costume to (ring v)\n    set size to (20) %\n    set [ghost v] effect to (80)\n    go to x: (0) y: (0)\n    point in direction (90)\n    go to [front v] layer\n    set [i v] to [5]\n    repeat (50)\n        switch costume to (ring2 v)\n        set size to (i2) %\n        change size by (i)\n        set [i2 v] to (size)\n        change [i v] by (2)\n        switch costume to (ring v)\n    end\n    delete this clone\nend\nif <(costume [number v]) = [18]> then\n    show\n    go to x: (0) y: (360)\n    set [ghost v] effect to (100)\n    repeat until <(round (y position)) = [0]>\n        change [ghost v] effect by (-10)\n        change y by (((0) - (y position)) / (6))\n    end\n    set [sequence v] to [9]\n    wait until <(Sequence) = [10]>\n    repeat until <(round (y position)) = [360]>\n        change [ghost v] effect by (5)\n        change y by (((360) - (y position)) / (6))\n    end\n    set [sequence v] to [11]\n    delete this clone\nend\nif <(costume [number v]) = [19]> then\n    show\n    show\n    go to [front v] layer\n    go to x: (0) y: (0)\n    set size to (100) %\n    set [ghost v] effect to (0)\n    point in direction (90)\n    repeat (50)\n        change [ghost v] effect by (3)\n        change size by (-0.5)\n    end\n    set [sequence v] to [10]\n    delete this clone\nend\nif <(costume [number v]) = [20]> then\n    show\n    go to x: (0) y: (0)\n    wait until <(Sequence) = [11]>\n    set [sequence v] to [12]\n    delete this clone\nend\n\nwhen flag clicked\nset volume to (30) %\nIntro\n\ndefine Intro\nhide\nstart sound [Intro v]\ngo to x: (0) y: (0)\npoint in direction (90)\nclear graphic effects\nset size to (100) %\nset [i v] to [0]\nset [i2 v] to [0]\nset [sequence v] to [1]\nswitch costume to (white v)\ncreate clone of (_myself_ v)\nswitch costume to (bar v)\ngo to x: (0) y: (-150)\ncreate clone of (_myself_ v)\nrepeat (5)\n    change y by (60)\n    create clone of (_myself_ v)\n    wait (.05) seconds\nend\ngo to x: (0) y: (0)\nwait until <(Sequence) = [2]>\nswitch costume to (letter1 v)\nset [i v] to [-180]\nrepeat (7)\n    create clone of (_myself_ v)\n    next costume\n    change [i v] by (60)\n    wait (.025) seconds\nend\nset [i v] to [0]\nwait (.75) seconds\nset [sequence v] to [3]\nwait until <(Sequence) = [4]>\nrepeat (2)\n    switch costume to (filler v)\n    create clone of (_myself_ v)\n    wait (.1) seconds\n    switch costume to (filler2 v)\n    create clone of (_myself_ v)\n    wait (.1) seconds\nend\nwait (0.8) seconds\nset [sequence v] to [5]\nswitch costume to (logo v)\ncreate clone of (_myself_ v)\nwait (.02) seconds\nswitch costume to (logo2 v)\ncreate clone of (_myself_ v)\nwait (.02) seconds\nswitch costume to (logo3 v)\ncreate clone of (_myself_ v)\nwait (.02) seconds\nwait (.75) seconds\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\nswitch costume to (ring v)\ncreate clone of (_myself_ v)\nset [sequence v] to [6]\nParticles\nwait (1) seconds\nset [sequence v] to [7]\nwait until <(Sequence) = [8]>\nswitch costume to (box v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [9]>\nswitch costume to (jthejet v)\ncreate clone of (_myself_ v)\nswitch costume to (flash v)\ncreate clone of (_myself_ v)\nwait until <(Sequence) = [12]>\nbroadcast (Song v)\nset volume to (100) %\nbroadcast (Intro End v)\nstop [this script v]\n\nwhen I receive [change size v]\nrepeat (7)\n    change size by (((200) - (size)) / (5))\nend\n\ndefine Particles\ngo [backward v] (5) layers\nswitch costume to (particle v)\nrepeat (10)\n    create clone of (_myself_ v)\nend\n\nbroadcast (Intro End v)\n\n@menu\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)\nset size to (20) %\nshow\nrepeat until <(size) = [100]>\n    repeat until <not <mouse down?>>\n        change size by (((100) - (size)) / (6))\n    end\nend\n\n@actual menu\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\nbroadcast (Close Menu v)\n\n@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@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@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@Shoppp\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@Collectables\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nnext costume\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\nwhen I receive [setup v]\nset [coins v] to [0]\nhide\nset [collectables: x v] to [0]\nset [collectables: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (coin1 v)\n    Clone at x: [-218] y: [3]\n    Clone at x: [-147] y: [3]\n    Clone at x: [-190] y: [82]\n    Clone at x: [155] y: [127]\n    Clone at x: [230] y: [127]\n    Clone at x: [480] y: [-70]\n    Clone at x: [480] y: [0]\n    Clone at x: [687] y: [53]\n    Clone at x: [1147] y: [134]\n    Clone at x: [1229] y: [134]\n    Clone at x: [1912] y: [100]\n    Clone at x: [1912] y: [170]\n    Clone at x: [1912] y: [240]\n    Clone at x: [1912] y: [310]\n    Clone at x: [1625] y: [107]\n    Clone at x: [1700] y: [107]\n    Clone at x: [2128] y: [378]\n    Clone at x: [2128] y: [310]\n    Clone at x: [2477] y: [427]\n    Clone at x: [2477] y: [358]\n    Clone at x: [2761] y: [296]\n    Clone at x: [2761] y: [230]\n    Clone at x: [2761] y: [170]\n    Clone at x: [2761] y: [110]\n    Clone at x: [2761] y: [40]\n    Clone at x: [2761] y: [-20]\nend\nset [collectables: x v] to [-9999999999]\n\ncreate clone of (_myself_ v)\n\nnext costume\nnext costume\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 [collectables: x v] to (x)\nset [collectables: y v] to (y)\ncreate clone of (_myself_ v)\n\nchange [::::::::::::::::::::::::::coins v] by (4)\n\n@Diamonds\n\nwhen I receive [green flag v]\nhide\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 (Diamond Collected v)\n    change [:::::::::::::::::::::diamonds v] by (1)\n    delete this clone\nend\n\nwhen I receive [setup v]\nset [coins v] to [0]\nhide\nset [:::::::::::::::::::::diamonds v] to [0]\nset [collectables: x v] to [0]\nset [collectables: y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (diamond v)\n    Clone at x: [183] y: [-153]\n    Clone at x: [2696] y: [317]\nend\nset [collectables: x v] to [-9999999999]\n\ncreate clone of (_myself_ v)\n\nnext costume\nnext costume\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 [collectables: x v] to (x)\nset [collectables: y v] to (y)\ncreate clone of (_myself_ v)\n\n@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@statsss\n\nwhen flag clicked\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@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\n\nwhen I receive [tick v]\nPosition ((Saws: x) - (SCROLL X)) ((Saws: y) - (SCROLL Y))\ngo to [back v] layer\nif <touching (player v)?> then\n    say [Hello! I Am Mr Spot. Trade Your Diamond And Coins With Me Here!]\n    broadcast (Trade? v)\nelse\n    say []\nend\n\nwhen I receive [setup v]\npoint in direction (90)\nhide\nset [saws: x v] to [0]\nset [saws: y v] to [0]\nif <(LEVEL) = [1]> then\nend\nset [saws: 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 [saws: x v] to (x)\nset [saws: y v] to (y)\ncreate clone of (_myself_ v)\n\nClone at x: [340] y: [27]\nClone at x: [530] y: [27]\nClone at x: [786] y: [27]\nClone at x: [1124] y: [27]\nClone at x: [1331] y: [245]\nClone at x: [1065] y: [345]\nClone at x: [825] y: [272]\nClone at x: [392] y: [245]\nClone at x: [197] y: [335]\n\nClone at x: [631] y: [11]\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?> 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]\nclone [0] [30]\nclone [899] [100]\nclone [2873] [-16]\nswitch costume to (blankkkkk v)\n\n@Trade\n\nwhen I receive [trade? v]\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\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@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 [::::::::::::::::::::::::::coins 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: [1916] y: [20]\n    Clone at x: [2762] y: [-50]\nelse\nend\nset [trampoline: x v] to [-9999999999]\n\ndefine Position (x) (y)\ngo to [back 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\nelse\n    hide\nend\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\nbroadcast (FREE REWARDS v)\n\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (10)\n\nchange [:::::::::::::::::::::diamonds v] by (19)\n\nchange [::::::::::::::::::::::::::coins v] by (10)\n\n@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 (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@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 (35) %\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)?> 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: [1471] y: [28] MAX [80]\n    Clone at x: [1700] y: [28] MAX [80]\n    Clone at x: [2330] y: [335] MAX [250]\n    Clone at x: [2248] y: [335] MAX [160]\nend\nset [enemies: x v] to [-999999999999999]\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nswitch costume to (red1 v)\n\nwhen I start as a clone\nforever\n    next costume\n    wait (0.035) seconds\nend\n\n@Note\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [begin v]\nforever\n    wait (pick random (7) to (15)) seconds\n    set size to (80) %\n    switch costume to (pick random (1) to (12))\n    go to x: (-43) y: (97)\n    show\n    go to [back v] layer\n    repeat (9)\n        change y by (-6)\n    end\n    repeat (5)\n        change y by (1)\n    end\n    repeat (5)\n        change y by (-1)\n    end\n    wait (pick random (3) to (5)) seconds\n    repeat (15)\n        change y by (7)\n    end\n    hide\nend\n\nwhen flag clicked\nhide\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@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@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@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 (shop thing 2 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [red skin m hide v]\nhide\n\n@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 (shop thing 3 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [blue skin m hide v]\nhide\n\n@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@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 (shop thing 4 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [jthejet skin m hide v]\nhide\n\n@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\nchange [::::::::::::::::::::::::::coins v] by (20)\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)\n\n@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 (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@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@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\nchange [:::::::::::::::::::::diamonds v] by (3)\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@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 (shop thing 6 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [orange skin m hide v]\nhide\n\n@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\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (3)\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@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 (shop thing 7 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [green skin m hide v]\nhide\n\n@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\nchange [:::::::::::::::::::::::::::::::::::::emeralds v] by (4)\n\nwhen I receive [ultra boost... v]\nset [:::::::::::::::::::::::::::::::::::::::::::::jump boost v] to [2]\nset [::::::::::::::::::::::::::::::::::::::::::::::::::speed boost v] to [2]\n\n@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 (shop thing 8 v)?> then\n    switch costume to (2 v)\nend\n\nwhen I receive [bluee skin m hide v]\nhide\n\n@TB\n\nwhen I receive [green flag v]\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nshow\nhide\n\nwhen flag clicked\nset [ghost v] effect to (100)\n\nglide (1) secs to (random position v)\n\n@Save\n\nwhen I receive [trade? v]\nshow\nswitch costume to (save button v)\ngo to x: (-100) y: (-155)\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            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 [::::::::::::::::::::::::::coins v] to [0]\n    set [:::::::::::::::::::::diamonds v] to [0]\n    set [::::::::::::::::::::::::::::::::::::::::::::::::::::::::die v] to [0]\nelse\n    stop [this script v]\nend\n\n