BASKETBALL || A Platformer! #games #all


@Stage\n\nwhen [b v] key pressed\nif <(username) = [StratfordJames]> then\n    change [brightness v] effect by (1)\nend\n\nwhen flag clicked\nset [exit status v] to [0]\nforever\n    if <<(Heart) > [9]> and <(Star) > [9]>> then\n        set [exit status v] to [1]\n        broadcast (you win!!! v) and wait\n        stop [this script v]\n    end\nend\n\nwhen flag clicked\ndelete all of [acheivements! v]\nadd [0] to [acheivements! v]\nadd [0] to [acheivements! v]\nadd [0] to [acheivements! v]\n\nwhen flag clicked\nwait until <(item (1) of [acheivements! v]) > [49]>\nbroadcast (jumps v)\nwait until <(item (1) of [acheivements! v]) > [99]>\nbroadcast (jumps2 v)\n\nwhen flag clicked\nwait until <(item (2) of [acheivements! v]) > [20]>\nbroadcast (swimmer v)\n\nwhen I receive [start! v]\nwait until <key (r v) pressed?>\nwait (1) seconds\nbroadcast (restarted v)\n\nwhen flag clicked\nset volume to (100) %\nforever\n    play sound [IMG_5803 2 v] until done\nend\n\nwhen flag clicked\nwait until <(item (3) of [acheivements! v]) = [1]>\nbroadcast (chat v)\n\n@Blank\n\n@Thumbnail\n\nwhen flag clicked\nswitch costume to (costume2 v)\nset size to (100) %\nswitch costume to (thmbnail2 v)\ngo to x: (0) y: (0)\nforever\n    set [color v] effect to (0)\n    go to [front v] layer\n    go [backward v] (13) layers\nend\n\nwhen [timer v] > (0.01)\nif <(exit status) = [0]> then\n    set [color v] effect to (0)\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\n    go [backward v] (0) layers\n    switch costume to (costume2 v)\n    set size to (150) %\n    switch costume to (thmbnail2 v)\n    show\n    repeat until <(size) < [102]>\n        wait (0.0001) seconds\n        switch costume to (costume2 v)\n        change size by (((101) - (size)) / (4))\n        switch costume to (thmbnail2 v)\n        change [ghost v] effect by (-7)\n    end\nelse\n    if <(exit status) = [2]> then\n        set [color v] effect to (0)\n        set [ghost v] effect to (100)\n        show\n        go to [front v] layer\n        go [backward v] (1) layers\n        switch costume to (costume2 v)\n        set size to (150) %\n        switch costume to (thmbnail2 v)\n        show\n        repeat until <(size) < [102]>\n            wait (0.0001) seconds\n            switch costume to (costume2 v)\n            change size by (((101) - (size)) / (8))\n            switch costume to (thmbnail2 v)\n            change [ghost v] effect by (-5)\n            go to [front v] layer\n        end\n    else\n        if <(exit status) = [timeout]> then\n            set [color v] effect to (0)\n            set [ghost v] effect to (100)\n            show\n            go to [front v] layer\n            go [backward v] (1) layers\n            switch costume to (costume2 v)\n            set size to (150) %\n            switch costume to (timeout v)\n            show\n            repeat until <(size) < [102]>\n                wait (0.0001) seconds\n                switch costume to (costume2 v)\n                change size by (((101) - (size)) / (8))\n                switch costume to (timeout v)\n                change [ghost v] effect by (-5)\n                go to [front v] layer\n            end\n        else\n            if <(exit status) = [error]> then\n                set [color v] effect to (0)\n                set [ghost v] effect to (100)\n                show\n                go to [front v] layer\n                go [backward v] (1) layers\n                switch costume to (costume2 v)\n                set size to (150) %\n                switch costume to (error v)\n                show\n                repeat until <(size) < [102]>\n                    switch costume to (costume2 v)\n                    change size by (((101) - (size)) / (8))\n                    switch costume to (error v)\n                    change [ghost v] effect by (-5)\n                    go to [front v] layer\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [heart v] to [0]\n\nwhen I receive [start! v]\ngo to [front v] layer\nwait (1) seconds\nrepeat (10)\n    go to [front v] layer\n    change [ghost v] effect by (10)\n    switch costume to (thmbnail2 v)\nend\nhide\n\nwhen I receive [transfer v]\nwait (2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\n    switch costume to (thmbnail2 v)\nend\n\nwhen I receive [completition1 v]\nwait (1) seconds\nshow\nset [ghost v] effect to (100)\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\nwhen flag clicked\nhide\nif <(intro done?) = [1]> then\n\nshow\n\nwhen flag clicked\nforever\n    reset timer\nend\n\nwhen I receive [stiop v]\n\nwhen I receive [trap v]\nset [exit status v] to [2]\nstop [all v]\n\nwhen flag clicked\ndelete all of [admin v]\nadd [krishtheking123] to [admin v]\nadd [vincentfait] to [admin v]\nadd [TimMcCool] to [admin v]\nadd [ElectricEnt] to [admin v]\nadd [IcedSnow] to [admin v]\nadd [Lukas1410] to [admin v]\nadd [Darkstar177] to [admin v]\nadd [NightTaco9672] to [admin v]\nadd [Sterlon] to [admin v]\nadd [ILoveHotDogz] to [admin v]\nadd [Icmy123] to [admin v]\nadd [Khushi_Strawberry] to [admin v]\n\nwhen flag clicked\ndelete all of [creator v]\nadd [ivanbb3] to [creator v]\nadd [StratfordJames] to [creator v]\nadd [StratfordJamesTest] to [creator v]\nforever\n    if <mouse down?> then\n        set [old v] to [0]\n    end\nend\n\nwhen I receive [init clone v]\nset [old v] to [0]\nwait (1) seconds\nforever\n    change [old v] by (1)\n    if <(old) > [50]> then\n        set [exit status v] to [timeout]\n        stop [all v]\n    end\n    wait (1) seconds\nend\n\nrepeat (2)\n    switch costume to (real thmbs v)\n    clear graphic effects\n    go to [front v] layer\n    set [intro done? v] to [0]\nend\n\nset [@player v] to [1]\n\nwhen [any v] key pressed\nset [old v] to [0]\n\n@Game_player\n\nwhen flag clicked\nshow\n\nwhen I receive [tick v]\nshow\nset [sy2 v] to (YV)\nset [clike v] to <<mouse down?> and <touching (mouse-pointer v)?>>\n\ndefine reset\nset [yv v] to [0]\nset [xv v] to [0]\nset [in air v] to [0]\nset [scroll x v] to (checkpoint x)\nset [scroll y v] to (checkpoint y)\nset [local x v] to (checkpoint x)\nset [local y v] to (checkpoint y)\n\ndefine game on!\nbroadcast (close space v)\nset rotation style [left-right v]\npoint in direction (90)\nshow\n\nwhen I receive [green flag v]\nreset\nset [level v] to [1]\nset [xv v] to [0]\nset size to (100) %\nset [level v] to [1]\n\ndefine Tick\nchange player x by (round ((Xv) / (1.9)))\nif <<<(clikc2?) = [0]> and <[] = []>> and <<<<(mouse x) > ((x position) + (10))> and <mouse down?>> and <(click for chat mobiel) = [false]>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n    if <touching (game_level_liquid v)?> then\n        change [xv v] by (1.4)\n        change [frame v] by (0.2)\n    else\n        change [xv v] by (2)\n        change [frame v] by (0.4)\n    end\nelse\n    if <<(clikc2?) = [0]> and <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<<mouse down?> and <(mouse x) < ((x position) + (-10))>> and <(click for chat mobiel) = [false]>>>> then\n        if <touching (game_level_liquid v)?> then\n            change [xv v] by (-1.4)\n            change [frame v] by (-0.2)\n        else\n            change [xv v] by (-2)\n            change [frame v] by (0.4)\n        end\n    else\n        set [frame v] to [0]\n    end\nend\nif <<<<(click) = [0]> and <(clikc2?) = [0]>> and <[1] = [1]>> and <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<<(mouse y) > ((y position) + (10))> and <mouse down?>> and <(click for chat mobiel) = [false]>>>> then\n    if <touching (game_level_liquid v)?> then\n        if <(water) > [3]> then\n            change [yv v] by (4)\n        end\n        change [water v] by (1)\n    else\n        if <(in air) < [4]> then\n            set [yv v] to [8]\n        end\n    end\nend\nif <touching (game_level_liquid v)?> then\n    change [yv v] by (-1.2)\nelse\n    change [yv v] by (-0.6)\nend\nchange player y by (YV)\nPosition\nchange [scroll x v] by (round (((local x) - (SCROLL X)) / (7)))\nchange [scroll y v] by (round (((local y) - (SCROLL Y)) / (7)))\nposition\nset [xv v] to ((Xv) * (0.75))\n\ndefine change player x by (sx)\nswitch costume to (hitbox v)\nchange [local x v] by ((sx) * (1.15))\nposition\nif <touching (game_level_hitbox v)?> then\n    repeat (10)\n        change [local y v] by (1)\n        position\n        if <not <touching (game_level_hitbox v)?>> then\n            stop [this script v]\n        end\n    end\n    change [local y v] by (-10)\n    repeat until <not <touching (game_level_hitbox v)?>>\n        if <(sx) > [0]> then\n            change [local x v] by (-0.1)\n        else\n            change [local x v] by (0.1)\n        end\n        position\n    end\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>>> then\n    switch costume to (join [2a] (letter (1) of <[admin v] contains (username)?>))\nelse\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>>> then\n        switch costume to (join [1a] (letter (1) of <[admin v] contains (username)?>))\n    else\n        switch costume to (join [3a] (letter (1) of <[admin v] contains (username)?>))\n    end\nend\nset [localcostume v] to (letter (1) of (costume [name v]))\n\nwhen I receive [tick v]\nTick\n\ndefine position\ngo to x: (round ((local x) - (SCROLL X))) y: ((local y) - (SCROLL Y))\n\ndefine test die\n\ndefine change player y by (sy)\nswitch costume to (hitbox v)\nchange [local y v] by ((sy) * (1.1))\nchange [in air v] by (1)\nposition\nrepeat until <not <touching (game_level_hitbox v)?>>\n    if <(sy) > [0]> then\n        change [local y v] by (-0.5)\n    else\n        change [local y v] by (1)\n        if <<not <<key (up arrow v) pressed?> or <<key (w v) pressed?> or <<mouse down?> and <(mouse y) > (y position)>>>>> or <touching (game_level_liquid v)?>> then\n            set [in air v] to [0]\n        end\n    end\n    position\n    set [yv v] to [0]\nend\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [10]>>>> then\n    if <[creator v] contains (username)?> then\n        switch costume to (2ac v)\n    else\n        switch costume to (join [2a] (letter (1) of <[admin v] contains (username)?>))\n    end\nelse\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-10]>>>> then\n        if <[creator v] contains (username)?> then\n            switch costume to (1ac v)\n        else\n            switch costume to (join [1a] (letter (1) of <[admin v] contains (username)?>))\n        end\n    else\n        if <[creator v] contains (username)?> then\n            switch costume to (3ac v)\n        else\n            switch costume to (join [3a] (letter (1) of <[admin v] contains (username)?>))\n        end\n    end\nend\nset [localcostume v] to (letter (1) of (costume [name v]))\n\nwhen I receive [tick v]\nset size to (68) %\nset size to (68) %\n\ndefine Set Costume\n\nwhen flag clicked\n\nwhen I receive [tick v]\nif <touching (game_level_liquid v)?> then\n    set [yv v] to ((YV) * (0.5))\nend\n\ndefine Set Costume\n\ndefine Run\n\nwhen flag clicked\n\ndefine game - win\n\ndefine \n\nwhen flag clicked\nset [ghost v] effect to (100)\nforever\n    go to [back v] layer\nend\n\nchange player y by [5]\n\nwhen flag clicked\nforever\n    if <touching (game_level_liquid v)?> then\nend\n\nchange [yv v] by (-1)\n\ndefine game-die\n\nif <touching (game_level_liquid v)?> then\n\nwhen flag clicked\nbroadcast (Setup v)\n\nwhen I receive [hide v]\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\nwhen [r v] key pressed\nbroadcast (fade v) and wait\n\nwhen flag clicked\n\nwhen I receive [reset v]\nreset\n\nwhen I receive [offline v]\nset [local x v] to [-220]\nset [local y v] to [71]\nwait (0) seconds\nforever\n    if <<(don?) = [n]> and <(turbo/) = [0]>> then\n        broadcast (Tick v)\n    end\nend\n\nchange [yv v] by (5)\n\nchange [yv v] by (10)\n\nwhen flag clicked\nset [don? v] to [n]\nwait (0.1) seconds\nforever\n    wait until <(turbo/) = [1]>\n    broadcast (stop that turbo v)\n    stop [this script v]\nend\n\nwhen I receive [start! v]\nforever\n    if <touching (game_level_liquid v)?> then\n        wait (1) seconds\n        replace item (2) of [acheivements! v] with ((item (2) of [acheivements! v]) + (1))\n    end\nend\n\nwhen I receive [start! v]\nforever\n    wait until <(in air) > [2]>\n    replace item (1) of [acheivements! v] with ((item (1) of [acheivements! v]) + (1))\n    wait until <(in air) < [2]>\nend\n\nwhen I receive [online v]\nforever\n    if <(chat item) = [0]> then\n        say []\n    else\n        say (item (chat item) of [chat list v])\n    end\nend\n\nwhen I receive [online v]\n\nwhen I receive [prog v]\nwait (0) seconds\nrepeat (10)\n    reset\nend\n\nwhen flag clicked\ngo to x: (0) y: (5)\nset [@player v] to [0]\n\nwhen I receive [offline v]\nrepeat (5)\n    reset\nend\n\nif <(@Player) = [11]> then\n\nwhen flag clicked\n\nwhen flag clicked\nswitch costume to (3af v)\nreset\n\nwhen I receive [online v]\nbroadcast (prog v)\n\nwhen I receive [prog v]\nset [local x v] to [-220]\nset [local y v] to [71]\nbroadcast (Tick v)\nwait (2) seconds\nforever\n    if <<(don?) = [n]> and <(turbo/) = [0]>> then\n        broadcast (Tick v)\n    end\nend\n\n@Game_Player_waterParticles\n\nwhen I receive [water v]\nrepeat (1)\n    repeat (4)\n        change [ghost v] effect by (25)\n    end\n    delete this clone\nend\nif <(costume [name v]) = [costume2]> then\n    set [idwater v] to [1]\n    repeat (pick random (7) to (8))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\n\nwhen I start as a clone\nset [watervel v] to [5]\nshow\nParticle (pick random (-3.0) to (3.0))\n\ndefine Particle (xvel)\nclear graphic effects\nswitch costume to (costume22 v)\ngo to (game_player v)\nset size to (pick random (55) to (70)) %\nshow\nset [brightness v] effect to (pick random (0) to (0))\nrepeat (30)\n    go to [back v] layer\n    change x by ((Xv) * (-0.2))\n    change x by (xvel)\n    change y by (watervel)\n    change [watervel v] by (-0.15)\n    change [ghost v] effect by (3)\nend\nrepeat (2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\nwhen I start as a clone\nforever\n    if <touching (game_level_liquid v)?> then\n        repeat (9)\n            change [ghost v] effect by (12)\n        end\n        delete this clone\n    end\nend\n\n@Game_lights\n\nwhen flag clicked\nset [size v] to [0]\nerase all\nhide\ndelete all of [light x v]\ndelete all of [light y v]\nAdd Light @ [70] [105]\nAdd Light @ [180] [38]\nAdd Light @ [-10] [-60]\nAdd Light @ [145] [-250]\nAdd Light @ [180] [-367]\nAdd Light @ [0] [-375]\nAdd Light @ [-180] [-475]\nAdd Light @ [-210] [110]\nAdd Light @ [-40] [30]\nAdd Light @ [-160] [-280]\nAdd Light @ [-30] [-170]\nAdd Light @ [-398] [-376]\nAdd Light @ [-580] [-426]\ndelete all of [light x v]\ndelete all of [light y v]\n\ndefine Add Light @ (x) (y)\nadd (x) to [light x v]\nadd (y) to [light y v]\n\nwhen I receive [tick v]\nDraw [1]\n\ndefine Draw (mode)\nif <(mode) = [1]> then\n    set [color v] effect to (0)\n    erase all\n    go to x: (0) y: (0)\n    point towards (game_player v)\n    move ((distance to [game_player v]) / (6)) steps\n    show\n    set [brightness v] effect to (-30)\n    set size to (((([cos v] of (size) ) + (100)) * ((([cos v] of (size) ) + (100)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n    switch costume to (costume1 v)\n    set [ghost v] effect to (0)\n    stamp\n    hide\nelse\n    set [color v] effect to (0)\n    erase all\n    show\n    show\n    set [counter1 v] to [1]\n    switch costume to (1 v)\n    set size to (((([cos v] of (size) ) + (90)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n    stamp\n    repeat (length of [light x v])\n        set size to (((([cos v] of (size) ) + (50)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n        go to x: (((x) - (SCROLL X)) + (item (counter1) of [light x v])) y: (((y) - (SCROLL Y)) + (item (counter1) of [light y v]))\n        stamp\n        change [counter1 v] by (1)\n    end\n    set [counter1 v] to [1]\n    switch costume to (2 v)\n    set size to (((([cos v] of (size) ) + (90)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n    stamp\n    repeat (length of [light x v])\n        set size to (((([cos v] of (size) ) + (50)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n        change size by (-3)\n        go to x: (((x) - (SCROLL X)) + (item (counter1) of [light x v])) y: (((y) - (SCROLL Y)) + (item (counter1) of [light y v]))\n        stamp\n        change [counter1 v] by (1)\n    end\n    set [counter1 v] to [1]\n    switch costume to (3 v)\n    set size to (((([cos v] of (size) ) + (90)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n    stamp\n    repeat (length of [light x v])\n        set size to (((([cos v] of (size) ) + (50)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n        change size by (-7)\n        go to x: (((x) - (SCROLL X)) + (item (counter1) of [light x v])) y: (((y) - (SCROLL Y)) + (item (counter1) of [light y v]))\n        stamp\n        change [counter1 v] by (1)\n    end\n    set [counter1 v] to [1]\n    switch costume to (4 v)\n    set size to (((([cos v] of (size) ) + (90)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n    stamp\n    repeat (length of [light x v])\n        switch costume to (4 v)\n        set size to (((([cos v] of (size) ) + (50)) * ((([cos v] of (size) ) + (90)) * (([cos v] of (size) ) + (120)))) / (13200)) %\n        change size by (-12)\n        go to x: (((x) - (SCROLL X)) + (item (counter1) of [light x v])) y: (((y) - (SCROLL Y)) + (item (counter1) of [light y v]))\n        stamp\n        change [counter1 v] by (1)\n        switch costume to (5 v)\n        stamp\n    end\n    hide\nend\n\nwhen flag clicked\nset [online? v] to [0]\nforever\n    change [size v] by (4)\n    set [size2 v] to (size)\n    go to [back v] layer\nend\n\ndefine other (number or text)\nset [c1 v] to [1]\nrepeat (length of [connection v])\n    if <(@Player) = (((c1) / (2)) + (0.5))> then\n        hide\n    else\n        go to x: (((item (c1) of [cloudcoord v]) - (50000)) - (SCROLL X)) y: (((item ((c1) + (1)) of [cloudcoord v]) - (50000)) - (SCROLL Y))\n        if <(letter (((c1) / (2)) + (0.5)) of (number or text)) = [0]> then\n            hide\n        else\n            show\n            set [brightness v] effect to (-30)\n            stamp\n            hide\n        end\n    end\n    change [c1 v] by (2)\nend\n\nif <(online?) = [yes]> then\n    other (join (join (letter (12) of (☁ Player1)) (letter (12) of (☁ Player2))) (letter (12) of (☁ Player3)))\nend\n\nwhen I receive [online v]\nset [online? v] to [yes]\n\nclear graphic effects\n\n@Game_Level_Hitbox\n\nwhen flag clicked\ngo to [front v] layer\nset [level v] to [1]\n\nwhen I receive [setup v]\n\nwhen flag clicked\nbroadcast (Delete all clones v)\nbroadcast (Setup v)\nset [level v] to [1]\n\nwhen I receive [tick v]\nGo to (round ((Level-Hitbox: x) + ((0) - (SCROLL X)))) (round ((Level-Hitbox: y) + ((0) - (SCROLL Y))))\n\ndefine Clone (x) (y)\nchange [level-hitbox: x v] by (x)\nchange [level-hitbox: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\npoint in direction (90)\nset [ground: i am a clone? v] to [1]\nshow\nset [ghost v] effect to (99)\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\nif <(Ground: I am a clone?) = [0]> then\n    hide\nend\n\nClone [0] [0]\n\nswitch costume to (hitbox v)\n\nwhen flag clicked\nrepeat (1)\n    delete this clone\nend\nset [ground: i am a clone? v] to [0]\nswitch costume to (1a v)\nset [level-hitbox: x v] to [0]\nset [level-hitbox: y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (1a v)\n    Clone [0] [0]\n    switch costume to (2a v)\n    Clone [0] [-360]\n    switch costume to (b1 v)\n    Clone [-480] [-64]\n    switch costume to (1b v)\n    Clone [960] [334]\n    switch costume to (1b2 v)\n    Clone [480] [0]\n    switch costume to (1b3 v)\n    Clone [0] [-360]\n    set [level-hitbox: x v] to [-900]\n    set [level-hitbox: y v] to [-497]\n    switch costume to (2c v)\n    Clone [0] [0]\n    switch costume to (2d v)\n    Clone [0] [360]\n    switch costume to (4f v)\n    Clone [-480] [100]\n    switch costume to (5f v)\n    Clone [300] [300]\n    switch costume to (5a v)\n    Clone [480] [-200]\n    switch costume to (5f@ v)\n    Clone [-100] [350]\nend\n\n@Game_Level-Graphics\n\nwhen flag clicked\nset [level v] to [1]\n\nwhen I receive [tick v]\nGo to ((Ground: x) + ((0) - (SCROLL X))) ((Ground: y) + ((0) - (SCROLL Y)))\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\nif <(Ground: I am a clone?) = [0]> then\n    hide\nend\n\nwhen flag clicked\nbroadcast (Delete all clones v)\nbroadcast (Setup v)\nset [level v] to [1]\n\nwhen I receive [hide v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\nwhen I receive [setup v]\nwait (0.5) seconds\nrepeat (10)\n    go to [front v] layer\nend\n\n\n\nwhen flag clicked\nrepeat (1)\n    delete this clone\nend\nset [ground: i am a clone? v] to [0]\nswitch costume to (1ay v)\nset [ground: x v] to [0]\nset [ground: y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (1ay v)\n    Clone [0] [0]\n    switch costume to (2a v)\n    Clone [0] [-360]\n    switch costume to (b1 v)\n    Clone [-480] [-64]\n    switch costume to (1b v)\n    Clone [960] [334]\n    switch costume to (1b2 v)\n    Clone [480] [0]\n    switch costume to (1b3 v)\n    Clone [0] [-360]\n    set [ground: x v] to [-900]\n    set [ground: y v] to [-497]\n    switch costume to (2c v)\n    Clone [0] [0]\n    switch costume to (2d v)\n    Clone [0] [360]\n    switch costume to (4f v)\n    Clone [-480] [100]\n    switch costume to (5f v)\n    Clone [300] [300]\n    switch costume to (5a v)\n    Clone [480] [-200]\n    switch costume to (5f2 v)\n    Clone [-100] [350]\nend\n\ndefine Clone (x) (y)\nchange [ground: x v] by (x)\nchange [ground: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\nset [ground: i am a clone? v] to [1]\npoint in direction (90)\nset [ghost v] effect to (100)\ngo to [front v] layer\nshow\n\n@Game_collectable\n\nwhen I start as a clone\nforever\n    if <touching (game_player v)?> then\n        set [xlocheart v] to (x position)\n        set [ylocheart v] to (y position)\n        if <(costume [name v]) = [heart]> then\n            broadcast (heart particle v)\n        else\n            if <(costume [name v]) = [star]> then\n                broadcast (star particle v)\n            end\n        end\n        repeat (25)\n            change size by (((0) - (size)) / (8))\n            change [ghost v] effect by (4)\n        end\n        if <(costume [name v]) = [heart]> then\n            change [heart v] by (1)\n            broadcast (heart v)\n        else\n            if <(costume [name v]) = [star]> then\n                change [star v] by (1)\n                broadcast (star v)\n            end\n        end\n        delete this clone\n    end\nend\n\nwhen flag clicked\nset [heart v] to [0]\nset [star v] to [0]\n\nwhen I receive [hide v]\nrepeat (5)\n    change [ghost v] effect by (-20)\nend\n\ndefine back\ngo to [back v] layer\n\nwhen I start as a clone\nclear graphic effects\nforever\n    back\nend\n\nset [checkpoint x v] to [-982]\nset [checkpoint y v] to [-191]\n\nwhen I receive [setup v]\nhide\npoint in direction (90.01)\ndelete all of [artifact x v]\ndelete all of [artifact y v]\nClone [143] [16] [heart]\nClone [90] [-257] [star]\nClone [40] [-510] [heart]\nClone [570] [-490] [star]\nClone [570] [-390] [heart]\nClone [637] [-185] [heart]\nClone [498] [-7] [star]\nClone [-56] [15] [star]\nClone [-521] [-447] [heart]\nClone [-1004] [-474] [heart]\nClone [-1105] [-312] [star]\nClone [-1344] [-55] [star]\nClone [-604] [-536] [star]\nClone [-456] [-153] [star]\nClone [-636] [-131] [heart]\nClone [-996] [166] [heart]\nClone [-711] [404] [star]\nClone [-576] [259] [heart]\nClone [-508] [133] [star]\nClone [-377] [430] [heart]\nClone [12] [-395] [star]\nClone [-293] [-395] [heart]\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nset size to (24) %\nshow\nforever\n    set [color v] effect to (0)\n    go to x: (((0) - (SCROLL X)) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [artifact x v])) y: ((item (join (letter (4) of (direction)) (letter (5) of (direction))) of [artifact y v]) + (() - (SCROLL Y)))\n    if <<([abs v] of (x position) ) > [235]> or <([abs v] of (y position) ) > [175]>> then\n        hide\n    else\n        if <<not <([abs v] of (x position) ) > [235]>> and <not <([abs v] of (y position) ) > [175]>>> then\n            show\n        end\n    end\n    if <(costume [name v]) = [heart]> then\n        set [brightness v] effect to (-5)\n    else\n        set [brightness v] effect to (-7)\n    end\nend\n\ndefine Clone (x) (y) (costume)\nadd (x) to [artifact x v]\nadd (y) to [artifact y v]\nswitch costume to (costume)\ncreate clone of (_myself_ v)\nturn right (0.01) degrees\n\n@Game_collectible_particles\n\ndefine add particle (x) (y) (costume)\nadd (x) to [particle x v]\nadd (y) to [particle y v]\nadd [0] to [particle change y v]\nif <(costume) = [heart]> then\n    set [color v] effect to (170)\nelse\n    set [color v] effect to (0)\nend\ncreate clone of (_myself_ v)\nturn right (0.01) degrees\n\nwhen flag clicked\ndelete all of [particle change y v]\ndelete all of [particle x v]\ndelete all of [particle y v]\nhide\npoint in direction (90.01)\nrepeat (3)\n    add particle [143] [16] [heart]\n    add particle [90] [-257] [star]\n    add particle [40] [-510] [heart]\n    add particle [570] [-490] [star]\n    add particle [570] [-390] [heart]\n    add particle [637] [-185] [heart]\n    add particle [498] [-7] [star]\n    add particle [-56] [15] [star]\n    add particle [-521] [-447] [heart]\n    add particle [-1004] [-474] [heart]\n    add particle [-1105] [-312] [star]\n    add particle [-1344] [-55] [star]\n    add particle [-604] [-536] [star]\n    add particle [-456] [-153] [star]\n    add particle [-636] [-131] [heart]\n    add particle [-996] [166] [heart]\n    add particle [-711] [404] [star]\n    add particle [-576] [259] [heart]\n    add particle [-508] [133] [star]\n    add particle [-377] [430] [heart]\n    add particle [12] [-395] [star]\n    add particle [-293] [-395] [heart]\n    wait ((1) / (3)) seconds\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nshow\nset size to (23) %\ngo to [back v] layer\nforever\n    wait (pick random (0.2) to (0.4)) seconds\n    switch costume to (pick random (5) to (1))\n    replace item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v] with [-5]\n    repeat (10)\n        change [ghost v] effect by (-10)\n        replace item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v] with ((1) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v]))\n    end\n    repeat (10)\n        replace item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v] with ((0.75) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v]))\n    end\n    repeat (10)\n        change [ghost v] effect by (10)\n        replace item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v] with ((0.5) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v]))\n    end\nend\n\nwhen I start as a clone\nforever\n    go to x: (((0) - (SCROLL X)) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle x v])) y: ((item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle y v]) + ((item (join (letter (4) of (direction)) (letter (5) of (direction))) of [particle change y v]) - (SCROLL Y)))\n    if <<([abs v] of (y position) ) < [170]> and <([abs v] of (x position) ) < [235]>> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I start as a clone\nforever\n    if <(distance to [game_player v]) < [30]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\nend\n\nwhen I receive [start! v]\ngo to [back v] layer\n\n@Game_Notifications\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [heart v]\nwait until <(untilwait) = [0]>\npop-in/out [heart] []\n\nwhen flag clicked\nset [untilwait v] to [0]\nforever\n    go to [front v] layer\n    go [backward v] (2) layers\n    set size to (100) %\n    set [brightness v] effect to (0)\n    set [ghost v] effect to (0)\nend\n\ndefine pop-in/out (costume) (long)\nset [untilwait v] to [1]\nswitch costume to (costume)\nif <(long) = [yes]> then\n    broadcast (longmoveon v)\nelse\n    broadcast (moveon v)\nend\n\nwhen I receive [star v]\nwait until <(untilwait) = [0]>\npop-in/out [star] []\n\nwhen I receive [player joined v]\n\nwait until <(untilwait) = [0]>\npop-in/out [joined] []\n\nwhen I receive [online on checked status v]\nwait (0) seconds\nwait until <(untilwait) = [2]>\npop-in/out [game_on] []\n\nwhen I receive [player left v]\n\nwait until <(untilwait) = [0]>\npop-in/out [left] []\n\nwhen I receive [checkpoint saved v]\nwait until <(untilwait) = [0]>\npop-in/out [checkpoint] []\n\nwhen I receive [moveon v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (50)\nshow\nrepeat (19)\n    change [ghost v] effect by (-6)\n    change y by (((-1) - (y position)) / (6))\nend\nwait (1.5) seconds\nrepeat (25)\n    change y by ((y position) / (3.5))\n    change [ghost v] effect by (4)\nend\nhide\nset [untilwait v] to [0]\n\nwhen I receive [transfer v]\nset [untilwait v] to [1]\nwait (2) seconds\npop-in/out [full] []\nwait until <(untilwait) = [0]>\npop-in/out [offline_auto] [yes]\n\nwhen I receive [offline v]\nwait (1.5) seconds\nwait until <(untilwait) = [0]>\npop-in/out [game_on] []\n\nwhen I receive [alert v]\nwait (0.3) seconds\nwait until <(untilwait) = [0]>\npop-in/out [thanks] []\nwait until <(untilwait) = [0]>\npop-in/out [free] []\n\nwhen I receive [sad v]\nwait until <(untilwait) = [0]>\npop-in/out [sad] []\n\nwhen I receive [stop that turbo v]\nbroadcast (trap v)\nstop [other scripts in sprite v]\n\nwhen [timer v] > (0.01)\nif <(exit status) = [2]> then\n    wait (1) seconds\n    set [untilwait v] to [1]\n    switch costume to (turbo v)\n    set [ghost v] effect to (200)\n    go to x: (0) y: (200)\n    show\n    set size to (100) %\n    repeat (19)\n        go to [front v] layer\n        change [ghost v] effect by (-6)\n        change y by (((134) - (y position)) / (6))\n        wait (0.001) seconds\n    end\n    wait (1) seconds\n    repeat (25)\n        change y by (((y position) - (135)) / (3.5))\n        wait (0.00001) seconds\n        change [ghost v] effect by (4)\n    end\n    hide\nend\n\nwhen [timer v] > (0.01)\ngo to [front v] layer\n\nwhen I receive [you win!!! v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [swimmer v]\nwait until <(untilwait) = [0]>\npop-in/out [water] []\n\nwhen I receive [restarted v]\nwait until <(untilwait) = [0]>\npop-in/out [restarted] []\n\nwhen I receive [jumps v]\nwait until <(untilwait) = [0]>\npop-in/out [jumps] []\n\nwhen I receive [longmoveon v]\nset [ghost v] effect to (100)\ngo to x: (0) y: (105)\nshow\nrepeat (25)\n    change [ghost v] effect by (-6)\n    change y by (((-2) - (y position)) / (6))\nend\nwait (2) seconds\nrepeat (25)\n    change y by (((y position) + (2)) / (4))\n    change [ghost v] effect by (4)\nend\nhide\nset [untilwait v] to [2]\n\nwhen I receive [chat v]\nwait until <(untilwait) = [0]>\npop-in/out [chat] []\n\nwhen I receive [jumps2 v]\nwait until <(untilwait) = [0]>\npop-in/out [jumps2] []\n\n@Game_Level_liquid\n\nwhen I receive [tick v]\nGo to (((Ground: x) + ((0) - (SCROLL X))) + ()) (((Ground: y) + ((0) - (SCROLL Y))) + (([cos v] of (size2) ) * (5)))\n\ndefine Go to (x) (y)\nset [color v] effect to (0)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\nif <(Ground: I am a clone?) = [0]> then\n    hide\nend\nset [brightness v] effect to (-10)\n\nwhen flag clicked\nbroadcast (Delete all clones v)\nbroadcast (Setup v)\nset [level v] to [1]\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\nset [ground: i am a clone? v] to [0]\nswitch costume to (b2 v)\nset [ground: x v] to [0]\nset [ground: y v] to [0]\nhide\nif <(LEVEL) = [1]> then\n    switch costume to (b3 v)\n    Clone [-480] [-424]\n    switch costume to (1b v)\n    Clone [960] [334]\n    set [ground: x v] to [-454]\n    set [ground: y v] to [-100]\n    switch costume to (5a v)\n    Clone [0] [0]\nend\n\ndefine Clone (x) (y)\nchange [ground: x v] by (x)\nchange [ground: y v] by (y)\ncreate clone of (_myself_ v)\nnext costume\n\nwhen I start as a clone\ngo to [back v] layer\nset [ground: i am a clone? v] to [1]\npoint in direction (90)\nset [ghost v] effect to (20)\nshow\n\nwhen I receive [setup v]\ngo to [front v] layer\n\n@Game_Quests\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nswitch costume to (0s v)\nshow\nif <(id) = [1]> then\n    set [id v] to [2]\n    switch costume to (0s v)\n    create clone of (_myself_ v)\n    forever\n        set size to (125) %\n        go to x: ((96) + (xpos)) y: (48)\n        go to [front v] layer\n        go [backward v] (1) layers\n        switch costume to (join ((Heart) + (0)) [s])\n        if <(xpos) > [70]> then\n            change [ghost v] effect by (20)\n        else\n            change [ghost v] effect by (-20)\n        end\n    end\nelse\n    if <(id) = [2]> then\n        forever\n            set size to (125) %\n            go to x: ((96) + (xpos)) y: (-23)\n            go to [front v] layer\n            go [backward v] (1) layers\n            switch costume to (join ((Star) + (0)) [s])\n            go [backward v] (1) layers\n            if <(xpos) > [70]> then\n                change [ghost v] effect by (20)\n            else\n                change [ghost v] effect by (-20)\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nshow\n\nwhen flag clicked\nset [ghost v] effect to (100)\nhide\n\ndefine frontttt\ngo to [front v] layer\ngo [backward v] (1) layers\n\nwhen flag clicked\nforever\n    frontttt\nend\n\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nforever\n    set [xpos v] to (x position)\nend\n\nwhen I receive [start! v]\nshow\ngo to x: (125) y: (0)\nwait (1) seconds\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nif <(costume [name v]) = [menu]> then\n    forever\n        show\n        set [ghost v] effect to (0)\n        switch costume to (menu v)\n        if <<touching (mouse-pointer v)?> and <(mouse x) < [240]>> then\n            repeat (5)\n                set [open v] to [1]\n                if <(x position) > [50]> then\n                    change x by (-8)\n                else\n                    change x by (((0) - (x position)) / (6))\n                end\n            end\n        else\n            repeat (5)\n                set [open v] to [0]\n                if <(x position) < [75]> then\n                    change x by (8)\n                else\n                    change x by (((125) - (x position)) / (6))\n                end\n            end\n        end\n    end\nend\n\nwhen flag clicked\nset [id v] to [1]\ncreate clone of (_myself_ v)\nset [open v] to [0]\ngo to x: (0) y: (0)\n\nwhen flag clicked\nswitch costume to (menu v)\ngo to x: (130) y: (0)\nhide\n\nwhen I receive [you win!!! v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\n@Game_Checkpoints\n\ndefine Checkpoint @ (scrollx) (scrolly) (costume)\nswitch costume to (costume)\nadd (scrollx) to [checkpoint x v]\nadd (scrolly) to [checkpoing y v]\ncreate clone of (_myself_ v)\nturn right (0.01) degrees\n\nwhen I start as a clone\nshow\nforever\n    go to x: ((() - (SCROLL X)) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [checkpoint x v])) y: ((() - (SCROLL Y)) + (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [checkpoing y v]))\n    set [ghost v] effect to (99)\nend\n\ndefine Save Checkpoint (x) (y)\nadd (x) to [save x v]\nadd (y) to [save y v]\n\ndefine save\ndelete all of [save x v]\ndelete all of [save y v]\nSave Checkpoint [-221] [67]\nSave Checkpoint [208] [-399]\nSave Checkpoint [-1106] [-496]\n\ndefine make\ndelete all of [checkpoint x v]\ndelete all of [checkpoing y v]\nCheckpoint @ [-220] [50] [1a]\nCheckpoint @ [208] [-399] [1b]\nCheckpoint @ [-900] [-496] [c1]\n\nwhen I start as a clone\nwait (0.1) seconds\nshow\nforever\n    if <touching (game_player v)?> then\n        if <not <(join (checkpoint x) (checkpoint y)) = (join (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [save x v]) (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [save y v]))>> then\n            set [checkpoint x v] to (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [save x v])\n            set [checkpoint y v] to (item (join (letter (4) of (direction)) (letter (5) of (direction))) of [save y v])\n            broadcast (checkpoint saved v)\n            wait until <not <touching (game_player v)?>>\n            wait (0.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\nset [checkpoint x v] to [-221]\nset [checkpoint y v] to [67]\npoint in direction (90.01)\nhide\nsave\nmake\n\n@Game_PlayMenu\n\nwhen I receive [menu v]\nwait (0.1) seconds\nset [level v] to [0]\nswitch costume to (offline v)\ncreate clone of (_myself_ v)\nswitch costume to (online v)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset size to (20) %\nset [ghost v] effect to (100)\nshow\nif <(costume [name v]) = [Offline]> then\n    if <(until) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\n    go to x: (0) y: (-60)\n    forever\n        go to [front v] layer\n        go to [front v] layer\n        if <(until) = [0]> then\n            change [ghost v] effect by (-8)\n        end\n        change y by (((-80) - (y position)) / (6))\n        if <<<touching (mouse-pointer v)?> and <(LEVEL) = [0]>> and <(until) = [0]>> then\n            repeat (5)\n                go to [front v] layer\n                change [ghost v] effect by (-8)\n                change size by (((105) - (size)) / (6))\n                if <mouse down?> then\n                    broadcast (hide v)\n                    repeat (20)\n                        change size by (((10) - (size)) / (6))\n                        change [ghost v] effect by (5)\n                    end\n                    hide\n                    wait until <(until) = [2]>\n                    broadcast (offline v)\n                    broadcast (green flag v)\n                    broadcast (start! v)\n                    stop [this script v]\n                end\n            end\n        else\n            change size by (((90) - (size)) / (6))\n        end\n    end\nend\nif <(costume [name v]) = [Online]> then\n    if <(until) = [1]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    end\n    go to x: (0) y: (-105)\n    forever\n        go to [front v] layer\n        if <(until) = [0]> then\n            change [ghost v] effect by (-8)\n        end\n        change y by (((-125) - (y position)) / (6))\n        if <<<touching (mouse-pointer v)?> and <(LEVEL) = [0]>> and <(until) = [0]>> then\n            repeat (5)\n                go to [front v] layer\n                change [ghost v] effect by (-8)\n                change size by (((105) - (size)) / (6))\n                if <mouse down?> then\n                    wait (0.2) seconds\n                    broadcast (hide v)\n                    repeat (20)\n                        change size by (((10) - (size)) / (6))\n                        change [ghost v] effect by (5)\n                    end\n                    hide\n                    broadcast (online v)\n                    stop [this script v]\n                end\n            end\n        else\n            change size by (((90) - (size)) / (6))\n        end\n    end\nend\n\nbroadcast (green flag v)\nbroadcast (start! v)\n\nwhen I receive [hide v]\nset [until v] to [1]\nrepeat (20)\n    change [ghost v] effect by (5)\nend\nhide\nset [until v] to [2]\n\ndefine turn\npoint in direction ((([cos v] of (size2) ) * (5)) - (-90))\nset [deg v] to (direction)\n\nwhen flag clicked\nforever\n    turn\nend\n\nwhen I start as a clone\nforever\n    point in direction (deg)\nend\n\nwhen flag clicked\nset [until v] to [0]\n\nwhen flag clicked\n\nwhen I receive [intro_finished v]\nswitch costume to (play v)\ngo to x: (0) y: (-80)\npoint in direction (85)\nset [ghost v] effect to (100)\nset size to (20) %\nwait (0.5) seconds\nset [size2 v] to [0]\nshow\nforever\n    go to [front v] layer\n    go [backward v] (3) layers\n    change [ghost v] effect by (-4)\n    change y by (((-100) - (y position)) / (6))\n    if <touching (mouse-pointer v)?> then\n        repeat (5)\n            change [ghost v] effect by (-4)\n            change size by (((125) - (size)) / (6))\n            if <mouse down?> then\n                repeat (13)\n                    change size by (((10) - (size)) / (8))\n                    change [ghost v] effect by (8)\n                end\n                hide\n                wait (0.3) seconds\n                broadcast (menu v)\n                stop [this script v]\n            end\n        end\n    else\n        change size by (((100) - (size)) / (12))\n    end\nend\n\nwhen flag clicked\nhide\n\n@Game_fade\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nforever\n    front\nend\n\nwhen I receive [fade v]\nset [ghost v] effect to (100)\nshow\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\nwait (0.2) seconds\nbroadcast (reset v)\nwait (0.2) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\nhide\n\ndefine front\nrepeat (1)\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\nend\n\n@Game_Quests_Fill\n\nwhen flag clicked\nhide\ngo to x: (0) y: (0)\nset [currentid v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nset [ghost v] effect to (10)\nif <(currentid) = [1]> then\n    set [currentid v] to [2]\n    create clone of (_myself_ v)\n    forever\n        show\n        frontttt\n        go to x: (xpos) y: (0)\n        switch costume to (join [s] (Heart))\n    end\nelse\n    forever\n        show\n        frontttt\n        go to x: (xpos) y: (-70)\n        switch costume to (join [s] (Star))\n    end\nend\n\ndefine frontttt\nrepeat (1)\n    go to [front v] layer\n    go to [front v] layer\n    go to [front v] layer\n    go [backward v] (1) layers\nend\n\n@Player Arrow\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (90) %\nif <(item (cloneid2) of [connection v]) = [1]> then\n    if <(names???) = [1]> then\n        set [ghost v] effect to (100)\n    else\n        set [ghost v] effect to (0)\n    end\nelse\n    set [ghost v] effect to (100)\nend\nshow\nif <(cloneid3) = [1]> then\n    forever\n        Go to [1] ((item (1) of [cloudcoord v]) - (50000)) ((item (2) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player1)) (item (1) of [connection v])\n    end\nelse\n    if <(cloneid3) = [2]> then\n        forever\n            Go to [2] ((item (3) of [cloudcoord v]) - (50000)) ((item (4) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player2)) (item (2) of [connection v])\n        end\n    else\n        if <(cloneid3) = [3]> then\n            forever\n                Go to [3] ((item (5) of [cloudcoord v]) - (50000)) ((item (6) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player3)) (item (3) of [connection v])\n            end\n        else\n            if <(cloneid3) = [4]> then\n                forever\n                    Go to [4] ((item (7) of [cloudcoord v]) - (50000)) ((item (8) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player4)) (item (4) of [connection v])\n                end\n            else\n                if <(cloneid3) = [5]> then\n                    forever\n                        Go to [5] ((item (9) of [cloudcoord v]) - (50000)) ((item (10) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player5)) (item (5) of [connection v])\n                    end\n                else\n                    if <(cloneid3) = [6]> then\n                        forever\n                            Go to [6] ((item (11) of [cloudcoord v]) - (50000)) ((item (12) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player6)) (item (6) of [connection v])\n                        end\n                    else\n                        if <(cloneid3) = [7]> then\n                            forever\n                                Go to [7] ((item (13) of [cloudcoord v]) - (50000)) ((item (14) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player7)) (item (7) of [connection v])\n                            end\n                        else\n                            if <(cloneid3) = [8]> then\n                                forever\n                                    Go to [8] ((item (15) of [cloudcoord v]) - (50000)) ((item (16) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player8)) (item (8) of [connection v])\n                                end\n                            else\n                                if <(cloneid3) = [9]> then\n                                    forever\n                                        Go to [9] ((item (17) of [cloudcoord v]) - (50000)) ((item (18) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player9)) (item (9) of [connection v])\n                                    end\n                                else\n                                    if <(cloneid3) = [10]> then\n                                        forever\n                                            Go to [10] ((item (19) of [cloudcoord v]) - (50000)) ((item (20) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player10)) (item (10) of [connection v])\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Go to (id) (x) (y) (costume) (show?)\nshow\nchange x by (((((x) - (SCROLL X)) - (0)) - (x position)) / (3))\nchange y by (((((y) - (SCROLL Y)) - (0)) - (y position)) / (3))\nswitch costume to (arrow v)\npoint towards (center v)\nturn right (180) degrees\nmove (-30) steps\nif <(names???) = [1]> then\n    change [ghost v] effect by (10)\nelse\n    if <<([abs v] of (x position) ) > [205]> or <([abs v] of (y position) ) > [145]>> then\n        if <(show?) = [1]> then\n            change [ghost v] effect by (-20)\n        else\n            change [ghost v] effect by (20)\n        end\n    else\n        change [ghost v] effect by (10)\n    end\nend\n\nwhen I receive [init clone v]\nrepeat (1)\n    delete this clone\nend\nhide\nset [cloneid3 v] to [1]\nrepeat (10)\n    if <not <(@Player) = (cloneid3)>> then\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    change [cloneid3 v] by (1)\nend\n\n@Cloud ENGINE\n\nwhen [space v] key pressed\nif <(username) = [StratfordJames]> then\n    wait (0.1) seconds\n    set [☁ player1 v] to (save)\n    wait (0.1) seconds\n    set [☁ player2 v] to (save)\n    wait (0.1) seconds\n    set [☁ player3 v] to (save)\n    wait (0.1) seconds\n    set [☁ player4 v] to (save)\n    wait (0.1) seconds\n    set [☁ player5 v] to (save)\n    wait (0.1) seconds\n    set [☁ player6 v] to (save)\n    wait (0.1) seconds\n    set [☁ player7 v] to (save)\n    wait (0.1) seconds\n    set [☁ player8 v] to (save)\n    wait (0.1) seconds\n    set [☁ player9 v] to (save)\n    wait (0.1) seconds\n    set [☁ player10 v] to (save)\nend\n\ndefine Position @ (playerid) (input)\nif <(playerid) = [1]> then\n    set [☁ player1 v] to (input)\nelse\n    if <(playerid) = [2]> then\n        set [☁ player2 v] to (input)\n    else\n        if <(playerid) = [3]> then\n            set [☁ player3 v] to (input)\n        else\n            if <(playerid) = [4]> then\n                set [☁ player4 v] to (input)\n            else\n                if <(playerid) = [5]> then\n                    set [☁ player5 v] to (input)\n                else\n                    if <(playerid) = [6]> then\n                        set [☁ player6 v] to (input)\n                    else\n                        if <(playerid) = [7]> then\n                            set [☁ player7 v] to (input)\n                        else\n                            if <(playerid) = [8]> then\n                                set [☁ player8 v] to (input)\n                            else\n                                if <(playerid) = [9]> then\n                                    set [☁ player9 v] to (input)\n                                else\n                                    if <(playerid) = [10]> then\n                                        set [☁ player10 v] to (input)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Pulse\nif <(Connection) = [9]> then\n    set [connection v] to [1]\nelse\n    change [connection v] by (1)\nend\n\nwhen I receive [cloudtick v]\nPosition @ (@Player) (join (join (join (join (join (join ((SCROLL X) + (50000)) ((SCROLL Y) + (50000))) (Connection)) (item (@Player) of [connection v])) (Local-Encoded)) (localcostume)) (chat item))\n\ndefine Timeout @Other\nif <not <(@Player) = [1]>> then\n    if <(item (1) of [pulse_cloud v]) = (letter (11) of (☁ Player1))> then\n        replace item (1) of [connection v] with [0]\n    else\n        replace item (1) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [2]>> then\n    if <(item (2) of [pulse_cloud v]) = (letter (11) of (☁ Player2))> then\n        replace item (2) of [connection v] with [0]\n    else\n        replace item (2) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [3]>> then\n    if <(item (3) of [pulse_cloud v]) = (letter (11) of (☁ Player3))> then\n        replace item (3) of [connection v] with [0]\n    else\n        replace item (3) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [4]>> then\n    if <(item (4) of [pulse_cloud v]) = (letter (11) of (☁ Player4))> then\n        replace item (4) of [connection v] with [0]\n    else\n        replace item (4) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [5]>> then\n    if <(item (5) of [pulse_cloud v]) = (letter (11) of (☁ Player5))> then\n        replace item (5) of [connection v] with [0]\n    else\n        replace item (5) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [6]>> then\n    if <(item (6) of [pulse_cloud v]) = (letter (11) of (☁ Player6))> then\n        replace item (6) of [connection v] with [0]\n    else\n        replace item (6) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [7]>> then\n    if <(item (7) of [pulse_cloud v]) = (letter (11) of (☁ Player7))> then\n        replace item (7) of [connection v] with [0]\n    else\n        replace item (7) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [8]>> then\n    if <(item (8) of [pulse_cloud v]) = (letter (11) of (☁ Player8))> then\n        replace item (8) of [connection v] with [0]\n    else\n        replace item (8) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [9]>> then\n    if <(item (9) of [pulse_cloud v]) = (letter (11) of (☁ Player9))> then\n        replace item (9) of [connection v] with [0]\n    else\n        replace item (9) of [connection v] with [1]\n    end\nend\nif <not <(@Player) = [10]>> then\n    if <(item (10) of [pulse_cloud v]) = (letter (11) of (☁ Player10))> then\n        replace item (10) of [connection v] with [0]\n    else\n        replace item (10) of [connection v] with [1]\n    end\nend\n\ndefine Import (input)\ndelete all of [cloudcoord v]\nset [counter6 v] to [1]\nset [counter5 v] to [1]\nrepeat ((length of (input)) / (54))\n    repeat (2)\n        add [] to [cloudcoord v]\n        repeat (5)\n            replace item (counter6) of [cloudcoord v] with (join (item (counter6) of [cloudcoord v]) (letter (counter5) of (input)))\n            change [counter5 v] by (1)\n        end\n        change [counter6 v] by (1)\n    end\n    change [counter5 v] by (44)\nend\n\nwhen I receive [cloudstart v]\nforever\n    Import (join (join (join (join (join (join (join (join (join (☁ Player1) (☁ Player2)) (☁ Player3)) (☁ Player4)) (☁ Player5)) (☁ Player6)) (☁ Player7)) (☁ Player8)) (☁ Player9)) (☁ Player10))\nend\n\ndefine determine players (input)\nset [old player# v] to (active players)\nset [active players v] to [0]\nset [counter7 v] to [1]\nrepeat (length of [connection v])\n    if <(letter (counter7) of (input)) = [1]> then\n        change [active players v] by (1)\n    end\n    change [counter7 v] by (1)\nend\nif <(old player#) > (active players)> then\n    broadcast (player left v)\nelse\n    if <(old player#) < (active players)> then\n        broadcast (player joined v)\n    end\nend\n\nwhen I receive [online v]\nshow variable [active players v]\nset [save v] to (join (join ((-220) + (50000)) ((69) + (50000))) [10656565656565656565656565656565656565656520])\nset [connection v] to [1]\ndetermine id\nbroadcast (detect v)\nbroadcast (cloudstart v)\nbroadcast (starttcik v)\nbroadcast (connecting v) and wait\nbroadcast (online on checked status v)\nbroadcast (green flag v)\nbroadcast (start! v)\nbroadcast (init clone v)\n\nwhen flag clicked\nset [rdy v] to [0]\nhide variable [active players v]\nhide variable [☁ player1 v]\nhide variable [☁ player2 v]\nhide variable [☁ player3 v]\nforever\n    if <(mouse y) < [-100]> then\n        if <<(username) = [NightTaco9672]> or <<(username) = [StratfordJames]> or <(username) = [IcedSnow]>>> then\n            hide list [clouddatadecoded v]\n            show variable [☁ player10 v]\n            show variable [☁ player2 v]\n            show variable [☁ player3 v]\n            show variable [@player v]\n            show variable [☁ player1 v]\n            show variable [☁ player4 v]\n            show variable [☁ player5 v]\n            show variable [☁ player6 v]\n            show variable [☁ player7 v]\n            show variable [☁ player8 v]\n            hide list [connection v]\n            show variable [☁ player9 v]\n        end\n    else\n        show list [clouddatadecoded v]\n        hide variable [☁ player1 v]\n        hide variable [☁ player2 v]\n        hide variable [☁ player3 v]\n        hide variable [@player v]\n        show list [connection v]\n        hide variable [☁ player4 v]\n        hide variable [☁ player5 v]\n        hide variable [☁ player6 v]\n        hide variable [☁ player7 v]\n        hide variable [☁ player8 v]\n        hide variable [☁ player9 v]\n        hide variable [☁ player10 v]\n    end\nend\n\nwhen I receive [cloudstart v]\nforever\n    wait (0.4) seconds\n    Pulse\nend\n\ndefine determine id\nassign\nif <not <(@Player) = [full]>> then\n    Position @ (@Player) (join (join (join (join (join (join (((round ()) + (SCROLL X)) + (50000)) (((round ()) + (SCROLL Y)) + (50000))) (Connection)) [1]) (Local-Encoded)) (localcostume)) (chat item))\n    broadcast (connecthold v)\nend\n\nwhen I receive [starttcik v]\nforever\n    broadcast (cloudtick v)\nend\n\ndefine detect overlap\nset [counter8 v] to [1]\nrepeat (length of [connection v])\n    if <(username) = (item (counter8) of [clouddatadecoded v])> then\n        set [@player v] to (counter8)\n        stop [this script v]\n    end\n    change [counter8 v] by (1)\nend\n\nwhen I receive [connecthold v]\nwait (0) seconds\nforever\n    replace item (@Player) of [connection v] with [1]\nend\n\nwhen flag clicked\ndelete all of [pulse_cloud v]\nrepeat (10)\n    add [1] to [pulse_cloud v]\nend\ndelete all of [connection v]\nrepeat (10)\n    add [0] to [connection v]\nend\nforever\n    if <not <(@Player) = [1]>> then\n        replace item (1) of [pulse_cloud v] with (letter (11) of (☁ Player1))\n    end\n    if <not <(@Player) = [2]>> then\n        replace item (2) of [pulse_cloud v] with (letter (11) of (☁ Player2))\n    end\n    if <not <(@Player) = [3]>> then\n        replace item (3) of [pulse_cloud v] with (letter (11) of (☁ Player3))\n    end\n    if <not <(@Player) = [4]>> then\n        replace item (4) of [pulse_cloud v] with (letter (11) of (☁ Player4))\n    end\n    if <not <(@Player) = [5]>> then\n        replace item (5) of [pulse_cloud v] with (letter (11) of (☁ Player5))\n    end\n    if <not <(@Player) = [6]>> then\n        replace item (6) of [pulse_cloud v] with (letter (11) of (☁ Player6))\n    end\n    if <not <(@Player) = [7]>> then\n        replace item (7) of [pulse_cloud v] with (letter (11) of (☁ Player7))\n    end\n    if <not <(@Player) = [8]>> then\n        replace item (8) of [pulse_cloud v] with (letter (11) of (☁ Player8))\n    end\n    if <not <(@Player) = [9]>> then\n        replace item (9) of [pulse_cloud v] with (letter (11) of (☁ Player9))\n    end\n    if <not <(@Player) = [10]>> then\n        replace item (10) of [pulse_cloud v] with (letter (11) of (☁ Player10))\n    end\n    wait (2) seconds\n    Timeout @Other\n    determine players (connection)\nend\n\ndefine assign\nif <(item (1) of [connection v]) = [0]> then\n    set [@player v] to [1]\nelse\n    if <(item (2) of [connection v]) = [0]> then\n        set [@player v] to [2]\n    else\n        if <(item (3) of [connection v]) = [0]> then\n            set [@player v] to [3]\n        else\n            if <(item (4) of [connection v]) = [0]> then\n                set [@player v] to [4]\n            else\n                if <(item (5) of [connection v]) = [0]> then\n                    set [@player v] to [5]\n                else\n                    if <(item (6) of [connection v]) = [0]> then\n                        set [@player v] to [ 6]\n                    else\n                        if <(item (7) of [connection v]) = [0]> then\n                            set [@player v] to [7]\n                        else\n                            if <(item (8) of [connection v]) = [0]> then\n                                set [@player v] to [8]\n                            else\n                                if <(item (9) of [connection v]) = [0]> then\n                                    set [@player v] to [9]\n                                else\n                                    if <(item (10) of [connection v]) = [0]> then\n                                        set [@player v] to [10]\n                                    else\n                                        set [@player v] to [full]\n                                        broadcast (transfer v)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [connecthold v]\nwait (1) seconds\nforever\n    if <not <(username) = (item (@Player) of [clouddatadecoded v])>> then\n        set [exit status v] to [error]\n        stop [all v]\n    end\nend\n\n@Encoder/Decoder\n\ndefine Encode (input)\nset [local-encoded v] to []\nset [counter v] to [1]\nrepeat (20)\n    if <(letter (counter) of (input)) = []> then\n        switch costume to (  v)\n    else\n        if < [0123456789] contains (letter (counter) of (input))?> then\n            switch costume to (join (letter (counter) of (input)) [x])\n        else\n            switch costume to (letter (counter) of (input))\n        end\n    end\n    set [local-encoded v] to (join (Local-Encoded) ((costume [number v]) + (10)))\n    change [counter v] by (1)\nend\n\nwhen I receive [cloudstart v]\nEncode (username)\nforever\n    Import (join (join (join (join (join (join (join (join (join (☁ Player1) (☁ Player2)) (☁ Player3)) (☁ Player4)) (☁ Player5)) (☁ Player6)) (☁ Player7)) (☁ Player8)) (☁ Player9)) (☁ Player10))\n    Decode (join (join (join (join (join (join (join (join (join (item (1) of [clouddataencoded v]) (item (2) of [clouddataencoded v])) (item (3) of [clouddataencoded v])) (item (4) of [clouddataencoded v])) (item (5) of [clouddataencoded v])) (item (6) of [clouddataencoded v])) (item (7) of [clouddataencoded v])) (item (8) of [clouddataencoded v])) (item (9) of [clouddataencoded v])) (item (10) of [clouddataencoded v]))\nend\n\ndefine Decode (clouddata)\ndelete all of [clouddatadecoded v]\nset [counter2 v] to [1]\nset [counter v] to [1]\nrepeat ((length of (clouddata)) / (40))\n    add [] to [clouddatadecoded v]\n    repeat (20)\n        switch costume to ((join (letter (counter) of (clouddata)) (letter ((counter) + (1)) of (clouddata))) - (10))\n        if <(costume [name v]) = [ ]> then\n            replace item (counter2) of [clouddatadecoded v] with (item (counter2) of [clouddatadecoded v])\n        else\n            replace item (counter2) of [clouddatadecoded v] with (join (item (counter2) of [clouddatadecoded v]) (letter (1) of (costume [name v])))\n        end\n        change [counter v] by (2)\n    end\n    change [counter2 v] by (1)\nend\n\ndefine Import (couldjoined)\ndelete all of [clouddataencoded v]\nset [counter4 v] to [1]\nset [counter3 v] to [1]\nrepeat ((length of (couldjoined)) / (54))\n    add [] to [clouddataencoded v]\n    change [counter3 v] by (12)\n    repeat (40)\n        replace item (counter4) of [clouddataencoded v] with (join (item (counter4) of [clouddataencoded v]) (letter (counter3) of (couldjoined)))\n        change [counter3 v] by (1)\n    end\n    change [counter4 v] by (1)\n    change [counter3 v] by (2)\nend\n\n@Player Clones Blur\n\nwhen I start as a clone\nshow\nset size to (90) %\nset [ghost v] effect to (100)\nif <(cloneID) = [1]> then\n    forever\n        Go to [1] ((item (1) of [cloudcoord v]) - (50000)) ((item (2) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player1)) (item (1) of [connection v]) (item (1) of [clouddatadecoded v])\n    end\nelse\n    if <(cloneID) = [2]> then\n        forever\n            Go to [2] ((item (3) of [cloudcoord v]) - (50000)) ((item (4) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player2)) (item (2) of [connection v]) (item (2) of [clouddatadecoded v])\n        end\n    else\n        if <(cloneID) = [3]> then\n            forever\n                Go to [3] ((item (5) of [cloudcoord v]) - (50000)) ((item (6) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player3)) (item (3) of [connection v]) (item (3) of [clouddatadecoded v])\n            end\n        else\n            if <(cloneID) = [4]> then\n                forever\n                    Go to [4] ((item (7) of [cloudcoord v]) - (50000)) ((item (8) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player4)) (item (4) of [connection v]) (item (4) of [clouddatadecoded v])\n                end\n            else\n                if <(cloneID) = [5]> then\n                    forever\n                        Go to [5] ((item (9) of [cloudcoord v]) - (50000)) ((item (10) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player5)) (item (5) of [connection v]) (item (5) of [clouddatadecoded v])\n                    end\n                else\n                    if <(cloneID) = [6]> then\n                        forever\n                            Go to [6] ((item (11) of [cloudcoord v]) - (50000)) ((item (12) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player6)) (item (6) of [connection v]) (item (6) of [clouddatadecoded v])\n                        end\n                    else\n                        if <(cloneID) = [7]> then\n                            forever\n                                Go to [7] ((item (13) of [cloudcoord v]) - (50000)) ((item (14) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player7)) (item (7) of [connection v]) (item (7) of [clouddatadecoded v])\n                            end\n                        else\n                            if <(cloneID) = [8]> then\n                                forever\n                                    Go to [8] ((item (15) of [cloudcoord v]) - (50000)) ((item (16) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player8)) (item (8) of [connection v]) (item (8) of [clouddatadecoded v])\n                                end\n                            else\n                                if <(cloneID) = [9]> then\n                                    forever\n                                        Go to [9] ((item (17) of [cloudcoord v]) - (50000)) ((item (18) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player9)) (item (9) of [connection v]) (item (9) of [clouddatadecoded v])\n                                    end\n                                else\n                                    if <(cloneID) = [10]> then\n                                        forever\n                                            Go to [10] ((item (19) of [cloudcoord v]) - (50000)) ((item (20) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player10)) (item (10) of [connection v]) (item (10) of [clouddatadecoded v])\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Go to (id) (x) (y) (costume) (show?) (dialogue)\nset [brightness v] effect to (-30)\nswitch costume to (costume)\nchange x by (((((x) - (SCROLL X)) - (0)) - (x position)) / (1.5))\nchange y by (((((y) - (SCROLL Y)) - (0)) - (y position)) / (1.5))\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\nshow\nset size to (68) %\ngo to [back v] layer\nif <(show?) = [1]> then\n    change [ghost v] effect by (-20)\nelse\n    change [ghost v] effect by (20)\nend\nbackk!\n\nwhen I receive [init clone v]\nrepeat (1)\n    delete this clone\nend\nhide\nset [cloneid v] to [1]\nrepeat (10)\n    if <not <(@Player) = (cloneID)>> then\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    change [cloneid v] by (1)\nend\n\ndefine backk!\ngo to [back v] layer\ngo to [back v] layer\ngo to [back v] layer\n\nwhen flag clicked\nhide\n\nrepeat (1)\n    delete this clone\nend\n\n@Player Clones Body\n\nwhen I start as a clone\nchange y by (0)\ngo to [back v] layer\nset size to (68) %\nset [ghost v] effect to (100)\nset rotation style [don't rotate v]\nshow\nif <(cloneid2) = [1]> then\n    forever\n        Go to [1] ((item (1) of [cloudcoord v]) - (50000)) ((item (2) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player1)) (item (1) of [connection v]) (item (1) of [clouddatadecoded v])\n    end\nelse\n    if <(cloneid2) = [2]> then\n        forever\n            Go to [2] ((item (3) of [cloudcoord v]) - (50000)) ((item (4) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player2)) (item (2) of [connection v]) (item (2) of [clouddatadecoded v])\n        end\n    else\n        if <(cloneid2) = [3]> then\n            forever\n                Go to [3] ((item (5) of [cloudcoord v]) - (50000)) ((item (6) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player3)) (item (3) of [connection v]) (item (3) of [clouddatadecoded v])\n            end\n        else\n            if <(cloneid2) = [4]> then\n                forever\n                    Go to [4] ((item (7) of [cloudcoord v]) - (50000)) ((item (8) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player4)) (item (4) of [connection v]) (item (4) of [clouddatadecoded v])\n                end\n            else\n                if <(cloneid2) = [5]> then\n                    forever\n                        Go to [5] ((item (9) of [cloudcoord v]) - (50000)) ((item (10) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player5)) (item (5) of [connection v]) (item (5) of [clouddatadecoded v])\n                    end\n                else\n                    if <(cloneid2) = [6]> then\n                        forever\n                            Go to [6] ((item (11) of [cloudcoord v]) - (50000)) ((item (12) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player6)) (item (6) of [connection v]) (item (6) of [clouddatadecoded v])\n                        end\n                    else\n                        if <(cloneid2) = [7]> then\n                            forever\n                                Go to [7] ((item (13) of [cloudcoord v]) - (50000)) ((item (14) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player7)) (item (7) of [connection v]) (item (7) of [clouddatadecoded v])\n                            end\n                        else\n                            if <(cloneid2) = [8]> then\n                                forever\n                                    Go to [8] ((item (15) of [cloudcoord v]) - (50000)) ((item (16) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player8)) (item (8) of [connection v]) (item (8) of [clouddatadecoded v])\n                                end\n                            else\n                                if <(cloneid2) = [9]> then\n                                    forever\n                                        Go to [9] ((item (17) of [cloudcoord v]) - (50000)) ((item (18) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player9)) (item (9) of [connection v]) (item (9) of [clouddatadecoded v])\n                                    end\n                                else\n                                    if <(cloneid2) = [10]> then\n                                        forever\n                                            Go to [10] ((item (19) of [cloudcoord v]) - (50000)) ((item (20) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player10)) (item (10) of [connection v]) (item (10) of [clouddatadecoded v])\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Go to (id) (x) (y) (costume) (show?) (diag)\nchange x by (((((x) - (SCROLL X)) - (0)) - (x position)) / (2))\nchange y by (((((y) - (SCROLL Y)) - (0)) - (y position)) / (1.4))\nif <[creator v] contains (diag)?> then\n    switch costume to (join (join (costume) [a]) [C])\nelse\n    switch costume to (join (join (costume) [a]) (letter (1) of <[admin v] contains (diag)?>))\nend\nif <<([abs v] of (x position) ) > [250]> or <([abs v] of (y position) ) > [190]>> then\n    hide\nelse\n    show\nend\nif <(show?) = [1]> then\n    change [ghost v] effect by (-20)\nelse\n    change [ghost v] effect by (20)\nend\n\nset size to (68) %\n\nwhen I receive [init clone v]\nrepeat (1)\n    delete this clone\nend\nhide\nset [cloneid2 v] to [1]\nrepeat (10)\n    if <not <(@Player) = (cloneid2)>> then\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    change [cloneid2 v] by (1)\nend\n\nrepeat (1)\n    delete this clone\nend\n\n@Player Clones Dialogue\n\nwhen I start as a clone\nchange y by (10)\ngo to [back v] layer\nset size to (68) %\nset [ghost v] effect to (100)\nshow\nif <(id4) = [1]> then\n    forever\n        Go to [1] ((item (1) of [cloudcoord v]) - (50000)) ((item (2) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player1)) (item (1) of [connection v]) (item (1) of [clouddatadecoded v]) (letter (54) of (☁ Player1))\n    end\nelse\n    if <(id4) = [2]> then\n        forever\n            Go to [2] ((item (3) of [cloudcoord v]) - (50000)) ((item (4) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player2)) (item (2) of [connection v]) (item (2) of [clouddatadecoded v]) (letter (54) of (☁ Player2))\n        end\n    else\n        if <(id4) = [3]> then\n            forever\n                Go to [3] ((item (5) of [cloudcoord v]) - (50000)) ((item (6) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player3)) (item (3) of [connection v]) (item (3) of [clouddatadecoded v]) (letter (54) of (☁ Player3))\n            end\n        else\n            if <(id4) = [4]> then\n                forever\n                    Go to [4] ((item (7) of [cloudcoord v]) - (50000)) ((item (8) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player4)) (item (4) of [connection v]) (item (4) of [clouddatadecoded v]) (letter (54) of (☁ Player4))\n                end\n            else\n                if <(id4) = [5]> then\n                    forever\n                        Go to [5] ((item (9) of [cloudcoord v]) - (50000)) ((item (10) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player5)) (item (5) of [connection v]) (item (5) of [clouddatadecoded v]) (letter (54) of (☁ Player5))\n                    end\n                else\n                    if <(id4) = [6]> then\n                        forever\n                            Go to [6] ((item (11) of [cloudcoord v]) - (50000)) ((item (12) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player6)) (item (6) of [connection v]) (item (6) of [clouddatadecoded v]) (letter (54) of (☁ Player6))\n                        end\n                    else\n                        if <(id4) = [7]> then\n                            forever\n                                Go to [7] ((item (13) of [cloudcoord v]) - (50000)) ((item (14) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player7)) (item (7) of [connection v]) (item (7) of [clouddatadecoded v]) (letter (54) of (☁ Player7))\n                            end\n                        else\n                            if <(id4) = [8]> then\n                                forever\n                                    Go to [8] ((item (15) of [cloudcoord v]) - (50000)) ((item (16) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player8)) (item (8) of [connection v]) (item (8) of [clouddatadecoded v]) (letter (54) of (☁ Player8))\n                                end\n                            else\n                                if <(id4) = [9]> then\n                                    forever\n                                        Go to [9] ((item (17) of [cloudcoord v]) - (50000)) ((item (18) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player9)) (item (9) of [connection v]) (item (9) of [clouddatadecoded v]) (letter (54) of (☁ Player9))\n                                    end\n                                else\n                                    if <(id4) = [10]> then\n                                        forever\n                                            Go to [10] ((item (19) of [cloudcoord v]) - (50000)) ((item (20) of [cloudcoord v]) - (50000)) (letter (53) of (☁ Player10)) (item (10) of [connection v]) (item (10) of [clouddatadecoded v]) (letter (54) of (☁ Player10))\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Go to (id) (x) (y) (costume) (show?) (diag) (chatttt)\nset [ghost v] effect to (100)\nchange x by (((((x) - (SCROLL X)) - (0)) - (x position)) / (1.5))\nchange y by (((((y) - (SCROLL Y)) - (-2)) - (y position)) / (1.5))\nif <(show?) = [1]> then\n    if <(names???) = [1]> then\n        if <(chatttt) = [0]> then\n            say (diag)\n        else\n            say (item (chatttt) of [chat list v])\n        end\n    else\n        if <(chatttt) = [0]> then\n            say []\n        else\n            say (item (chatttt) of [chat list v])\n        end\n    end\nelse\n    say []\nend\n\nif <<([abs v] of (x position) ) > [230]> or <([abs v] of (y position) ) > [170]>> then\n    if <(chatttt) = [0]> then\n        say []\n    else\n        say (item (chatttt) of [chat list v])\n    end\nelse\nend\n\nsay []\n\nwhen I receive [init clone v]\nrepeat (1)\n    delete this clone\nend\nhide\nset [id4 v] to [1]\nrepeat (10)\n    if <not <(@Player) = (id4)>> then\n        create clone of (_myself_ v)\n    end\n    wait (0.1) seconds\n    change [id4 v] by (1)\nend\n\nwhen flag clicked\nhide\n\nwhen flag clicked\nset [names??? v] to [1]\n\nsay (diag)\n\nwhen I receive [online v]\nforever\n    if <key (n v) pressed?> then\n        set [names??? v] to ((1) - (names???))\n        wait until <not <key (n v) pressed?>>\n    end\nend\n\nrepeat (1)\n    delete this clone\nend\n\n@Connecting...\n\nwhen flag clicked\ngo to x: (0) y: (-150)\nhide\nforever\n    go to [front v] layer\nend\n\nwhen I receive [connecting v]\nswitch costume to (costume1 v)\nshow\nset size to (150) %\nset [ghost v] effect to (100)\nrepeat until <(size) < [101]>\n    change [ghost v] effect by (-7)\n    change size by (((100) - (size)) / (6))\nend\nwait (1) seconds\nrepeat until <(size) < [20]>\n    change size by (((0) - (size)) / (6))\n    change [ghost v] effect by (10)\nend\nswitch costume to (costume2 v)\nrepeat until <(size) > [98]>\n    change [ghost v] effect by (-10)\n    change size by (((100) - (size)) / (6))\nend\nwait (1) seconds\nrepeat until <(size) < [20]>\n    change size by (((0) - (size)) / (7))\n    change [ghost v] effect by (8)\nend\nhide\n\nwhen I receive [transfer v]\nwait (2) seconds\nstop [other scripts in sprite v]\nrepeat until <(size) < [30]>\n    change size by (((0) - (size)) / (6))\n    change [ghost v] effect by (10)\nend\nhide\n\n@Center\n\nwhen flag clicked\ngo to x: (0) y: (0)\nhide\n\n@Intro\n\ndefine Follower (y/n)\nif <[yes] = (y/n)> then\n    switch costume to (followers v)\n    create clone of (_myself_ v)\n    switch costume to (base v)\nend\n\ndefine Glide\nset [ghost v] effect to (100)\nshow\nswitch costume to (sizer v)\nset size to (30) %\nswitch costume to (base v)\nrepeat until <(size) > [89]>\n    change [ghost v] effect by (-10)\n    go to [front v] layer\n    switch costume to (sizer v)\n    change size by (((90) - (size)) / (4))\n    switch costume to (base v)\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [Followers]> then\n    go to [front v] layer\n    go to x: (70) y: (85)\n    show\n    set size to (1) %\n    set [ghost v] effect to (100)\n    repeat until <(size) > [85]>\n        change size by ((size) / (4.3))\n        change [ghost v] effect by (-8.5)\n        go to [front v] layer\n    end\n    repeat until <(size) > [110]>\n        change size by (((111) - (size)) / (2.6))\n        go to [front v] layer\n    end\n    repeat until <(size) < [91]>\n        change size by (((90) - (size)) / (2))\n        go to [front v] layer\n    end\n    wait (2.5) seconds\n    broadcast (Completition1 v)\nelse\n    if <(costume [name v]) = [Mask1]> then\n        clear graphic effects\n        point in direction (90)\n        go to x: (-250) y: (0)\n        show\n        switch costume to (sizer v)\n        set size to (300) %\n        switch costume to (mask1 v)\n        repeat until <(x position) > [-100]>\n            go to [front v] layer\n            change x by (15)\n        end\n        repeat until <(x position) > [-1]>\n            go to [front v] layer\n            change x by (((2) - (x position)) / (7))\n        end\n        point in direction (90)\n        broadcast (Completition1 v)\n        wait (0.3) seconds\n        repeat until <(direction) > [179.9]>\n            go to [front v] layer\n            turn right (((180.1) - (direction)) / (6)) degrees\n        end\n        point in direction (180)\n        set y to (0)\n        broadcast (intro_finished v)\n        wait (0.3) seconds\n        repeat until <(y position) > [250]>\n            go to [front v] layer\n            change y by (((y position) - (-20)) / (10))\n        end\n        delete this clone\n    else\n        if <(costume [name v]) = [Mask2]> then\n            point in direction (90)\n            switch costume to (sizer v)\n            set size to (300) %\n            switch costume to (mask2 v)\n            clear graphic effects\n            show\n            go to x: (250) y: (0)\n            repeat until <(x position) < [100]>\n                go to [front v] layer\n                change x by (-15)\n            end\n            repeat until <(x position) < [1]>\n                go to [front v] layer\n                change x by (((-2) - (x position)) / (7))\n            end\n            point in direction (90)\n            wait (0.3) seconds\n            repeat until <(direction) > [179.9]>\n                go to [front v] layer\n                turn right (((180.1) - (direction)) / (6)) degrees\n            end\n            point in direction (180)\n            set y to (0)\n            wait (0.3) seconds\n            repeat until <(y position) < [-250]>\n                go to [front v] layer\n                change y by (((y position) - (20)) / (10))\n            end\n            delete this clone\n        else\n            if <(costume [name v]) = [background]> then\n                set size to (100) %\n                switch costume to (background v)\n                go to x: (0) y: (0)\n                show\n            else\n            end\n        end\n    end\nend\n\ndefine Mask\nswitch costume to (mask1 v)\ncreate clone of (_myself_ v)\nswitch costume to (mask2 v)\ncreate clone of (_myself_ v)\nswitch costume to (base v)\n\nwhen I receive [completition1 v]\nwait (0.5) seconds\nif <<<(costume [name v]) = [Base]> or <(costume [name v]) = [Followers]>> or <(costume [name v]) = [background]>> then\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    hide\n    delete this clone\nend\n\nwhen flag clicked\nset [ghost v] effect to (0)\nshow\nswitch costume to (background v)\ncreate clone of (_myself_ v)\nGlide\nwait (0.3) seconds\nFollower [yes]\nwait (2) seconds\nMask\nwait (1) seconds\nset [intro done? v] to [1]\n\nif <(intro done?) = [1]> then\nelse\nend\n\nset [intro done? v] to [0]\nset [intro done? v] to [0]\n\nwhen flag clicked\ngo to x: (0) y: (0)\n\n@Detector\n\nwhen flag clicked\nset [both??? v] to [0]\nset [star v] to [false]\nset [heart v] to [false]\nshow\nset [stared? v] to [0]\nset [loved? v] to [0]\n\nwhen flag clicked\nset [both??? v] to [0]\nset [stared? v] to [0]\nset [loved? v] to [0]\nforever\n    wait until <<(Stared?) = [1]> and <(Loved?) = [1]>>\n    wait (0.1) seconds\n    set [loved? v] to [0]\n    set [stared? v] to [0]\n    set [both??? v] to ((1) - (both???))\n    if <(both???) = [1]> then\n        broadcast (alert v)\n        change [heart v] by (1)\n        change [star v] by (1)\n    else\n        broadcast (sad v)\n        change [heart v] by (-1)\n        change [star v] by (-1)\n    end\n    wait until <<(heart) = [false]> and <(star) = [false]>>\n    set [stared? v] to [0]\n    set [loved? v] to [0]\nend\n\nwhen flag clicked\nset [detector di v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(detector DI) = [1]> then\n    switch costume to (fave v)\n    set [detector di v] to [2]\n    create clone of (_myself_ v)\n    go to x: (-15) y: (0)\n    forever\n        set [star v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [stared? v] to [1]\n        end\n    end\nelse\n    switch costume to (love v)\n    go to x: (-15) y: (0)\n    show\n    forever\n        set [heart v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved? v] to [1]\n        end\n    end\nend\n\n@Tutorial\n\nwhen flag clicked\nset [tutorial???? v] to [0]\n\nwhen flag clicked\nhide\nforever\n    go to x: ((join (join (join (letter (1) of (costume [name v])) (letter (2) of (costume [name v]))) (letter (3) of (costume [name v]))) (join (letter (4) of (costume [name v])) (letter (5) of (costume [name v])))) - (SCROLL X)) y: ((join (join (join (letter (6) of (costume [name v])) (letter (7) of (costume [name v]))) (letter (8) of (costume [name v]))) (join (letter (9) of (costume [name v])) (letter (10) of (costume [name v])))) - (SCROLL Y))\nend\n\nwhen I receive [utt v]\nset [ghost v] effect to (100)\nshow\nforever\n    go to [front v] layer\n    go [backward v] (5) layers\n    if <<(SCROLL X) > [-70]> and <<(SCROLL X) < [70]> and <<(SCROLL Y) > [-80]> and <(SCROLL Y) < [37]>>>> then\n        switch costume to (-010000011 v)\n        if <(tutorial????) = [1]> then\n            change [ghost v] effect by (-10)\n        else\n            change [ghost v] effect by (10)\n        end\n    else\n        if <<(SCROLL X) > [-250]> and <<(SCROLL X) < [-50]> and <(SCROLL Y) > [35]>>> then\n            switch costume to (0000000010 v)\n            if <(tutorial????) = [1]> then\n                change [ghost v] effect by (-10)\n            else\n                change [ghost v] effect by (10)\n            end\n        else\n            if <<(SCROLL X) > [30]> and <<(SCROLL X) < [250]> and <<(SCROLL Y) < [100]> and <(SCROLL Y) > [-5]>>>> then\n                switch costume to (0000000011 v)\n                if <(tutorial????) = [1]> then\n                    change [ghost v] effect by (-10)\n                else\n                    change [ghost v] effect by (10)\n                end\n            else\n                if <<<(SCROLL X) > [-146]> and <(SCROLL Y) < [-350]>> and <(SCROLL Y) > [-450]>> then\n                    if <(tutorial????) = [1]> then\n                        if <not <(costume [name v]) = (join [00050-0390] (letter (1) of <(distance to [mouse-pointer v]) < [60]>))>> then\n                            repeat (10)\n                                change [ghost v] effect by (10)\n                            end\n                            switch costume to (join [00050-0390] (letter (1) of <(distance to [mouse-pointer v]) < [60]>))\n                            repeat (10)\n                                change [ghost v] effect by (-10)\n                            end\n                        else\n                            change [ghost v] effect by (-10)\n                        end\n                    else\n                        change [ghost v] effect by (10)\n                    end\n                else\n                    if <<(SCROLL X) > [-360]> and <<(SCROLL X) < [-150]> and <(SCROLL Y) < [-400]>>> then\n                        switch costume to (-0300-0500 v)\n                        if <(tutorial????) = [1]> then\n                            change [ghost v] effect by (-10)\n                        else\n                            change [ghost v] effect by (10)\n                        end\n                    else\n                        change [ghost v] effect by (10)\n                    end\n                end\n            end\n        end\n    end\n    if <(SCROLL X) < [-400]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n            stop [this script v]\n        end\n    end\nend\n\nwhen I receive [you win!!! v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\n@Menu_tutorial\n\nwhen I receive [start! v]\nwait (10) seconds\nwait until <(untilwait) = [0]>\nset [untilwait v] to [1]\nset [ghost v] effect to (0)\nshow\nrepeat until <(y position) < [167]>\n    switch costume to (costume1 v)\n    change y by (((165) - (y position)) / (6))\n    switch costume to (menu v)\n    set [untilwait v] to [1]\nend\nforever\n    set [untilwait v] to [1]\n    if <<key (n v) pressed?> or <<<(mouse y) > [136]> and <(mouse y) < [159]>> and <<(mouse x) < [35]> and <(mouse x) > [2]>>>> then\n        switch costume to (over no v)\n        if <<key (n v) pressed?> or <mouse down?>> then\n            set [tutorial???? v] to [0]\n            broadcast (utt v)\n            wait (0.1) seconds\n            repeat until <(y position) > [250]>\n                switch costume to (costume1 v)\n                change y by (((y position) - (150)) / (5))\n                switch costume to (over no v)\n                set [untilwait v] to [1]\n            end\n            set [untilwait v] to [0]\n            hide\n            stop [this script v]\n        end\n    else\n        if <<key (y v) pressed?> or <<<(mouse x) < [1]> and <(mouse x) > [-38]>> and <<(mouse y) > [136]> and <(mouse y) < [159]>>>> then\n            switch costume to (over yes v)\n            if <<key (y v) pressed?> or <mouse down?>> then\n                set [tutorial???? v] to [1]\n                broadcast (utt v)\n                wait (0) seconds\n                repeat until <(y position) > [250]>\n                    switch costume to (costume1 v)\n                    change y by (((y position) - (150)) / (5))\n                    switch costume to (over yes v)\n                    set [untilwait v] to [1]\n                end\n                set [untilwait v] to [0]\n                hide\n                stop [this script v]\n            end\n        else\n            switch costume to (menu v)\n        end\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1 v)\ngo to x: (0) y: (250)\nswitch costume to (menu v)\nhide\nset size to (100) %\nforever\n    go to [front v] layer\nend\n\nwhen flag clicked\nforever\n    if <<touching (mouse-pointer v)?> and <mouse down?>> then\n        set [clikc2? v] to [1]\n    else\n        set [clikc2? v] to [0]\n    end\nend\n\n@Game_Heart_Particle\n\nwhen I receive [heart particle v]\nif <(costume [name v]) = [costume2]> then\n    repeat (pick random (5) to (7))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\n\nwhen I start as a clone\nset [heargvel v] to [7]\nshow\nParticle (pick random (-3.2) to (3.2))\n\ndefine Particle (xvel)\nclear graphic effects\nswitch costume to (costume22 v)\ngo to (game_player v)\nset size to (pick random (55) to (70)) %\nshow\nset [brightness v] effect to (pick random (0) to (0))\nrepeat (30)\n    go to [back v] layer\n    change x by ((Xv) * (-0.3))\n    change x by (xvel)\n    change y by (heargvel)\n    change [heargvel v] by (-0.15)\n    change [ghost v] effect by (3)\nend\nrepeat (2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\n@Game_Star_Particle\n\nwhen I receive [star particle v]\nif <(costume [name v]) = [costume2]> then\n    repeat (pick random (5) to (7))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\n\nwhen I start as a clone\nset [starvel v] to [7]\nshow\nParticle (pick random (-3.2) to (3.2))\n\ndefine Particle (xvel)\nclear graphic effects\nswitch costume to (costume22 v)\ngo to (game_player v)\nset size to (pick random (55) to (70)) %\nshow\nset [brightness v] effect to (pick random (0) to (0))\nrepeat (30)\n    go to [back v] layer\n    change x by ((Xv) * (-0.3))\n    change x by (xvel)\n    change y by (starvel)\n    change [starvel v] by (-0.15)\n    change [ghost v] effect by (3)\nend\nrepeat (2)\n    change [ghost v] effect by (5)\nend\ndelete this clone\n\n@Turbo Mode Detec\n\nwhen flag clicked\nforever\n    set [tmer v] to [0]\n    wait (0.0001) seconds\n    if <(tmer) > [130]> then\n        set [turbo/ v] to [1]\n    else\n        set [turbo/ v] to [0]\n    end\nend\n\nwhen flag clicked\nset [tmer v] to [0]\nforever\n    change [tmer v] by (99)\nend\n\n@Game_Win_Particles\n\nwhen I receive [you win!!! v]\nif <(costume [name v]) = [costume2]> then\n    repeat (pick random (12) to (16))\n        create clone of (_myself_ v)\n    end\nend\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\n\nwhen I start as a clone\nset [winve; v] to [7]\nshow\nParticle (pick random (-4.1) to (4.1))\n\ndefine Particle (xvel)\nclear graphic effects\nswitch costume to (costume24 v)\ngo to (game_player v)\nset size to (pick random (45) to (55)) %\nshow\nset [brightness v] effect to (pick random (0) to (0))\nrepeat (30)\n    go to [back v] layer\n    change x by (xvel)\n    change y by (winve;)\n    change [winve; v] by (-0.07)\n    change [ghost v] effect by (3.5)\nend\ndelete this clone\n\nchange [heart v] by (4)\nchange [star v] by (4)\n\nforever\n    broadcast (you win!!! v)\n    wait (2) seconds\nend\n\n@Win\n\nwhen flag clicked\nset [timer v] to [0]\nswitch costume to (costume1menu v)\nhide\n\nwhen I receive [you win!!! v]\nrepeat (1)\n    delete this clone\nend\nif <(costume [name v]) = [costume1menu]> then\n    set [don? v] to [ty]\n    go to x: (0) y: (10)\n    stop [other scripts in sprite v]\n    wait (2) seconds\n    broadcast (fron v)\n    set [ghost v] effect to (100)\n    set size to (1) %\n    repeat until <(size) > [99]>\n        change size by (((100) - (size)) / (5))\n        change [ghost v] effect by (-5)\n    end\n    wait (0.7) seconds\n    set [localid v] to [0]\n    create clone of (_myself_ v)\n    repeat until <(y position) > [34]>\n        change y by (((35) - (y position)) / (6))\n    end\n    draw (timer)\n    set [localid v] to [end]\n    wait (1.4) seconds\n    create clone of (_myself_ v)\n    switch costume to (costume1menu v)\nend\n\nwhen I receive [start! v]\nwait (1) seconds\nforever\n    wait (1) seconds\n    change [timer v] by (1)\nend\n\ndefine draw (number or text)\nhide\nset [localid v] to [n]\nset size to (97) %\ngo to x: (-7) y: (-45)\nset [conet v] to [1]\nrepeat (length of (number or text))\n    switch costume to (join [s] (letter (conet) of (number or text)))\n    create clone of (_myself_ v)\n    if <(costume [name v]) = [s1]> then\n        change x by (12)\n    else\n        change x by (14)\n    end\n    change [conet v] by (1)\nend\nchange x by (4)\nswitch costume to (sec v)\ncreate clone of (_myself_ v)\nswitch costume to (costume1menu v)\nshow\ngo to x: (0) y: (35)\nset size to (100) %\n\nwhen I receive [fron v]\nset [ghost v] effect to (100)\nshow\nforever\n    front\nend\n\nwhen I start as a clone\ngo to [front v] layer\nif <(localid) = [0]> then\n    go [backward v] (1) layers\n    switch costume to (costume2 v)\n    show\n    set [ghost v] effect to (100)\n    repeat until <(y position) < [-19]>\n        change [ghost v] effect by (-100)\n        change y by (((-20) - (y position)) / (6))\n    end\nelse\n    if <(localid) = [n]> then\n        show\n        set [ghost v] effect to (100)\n        set y to (-30)\n        repeat until <(y position) < [-44]>\n            change y by (((-45) - (y position)) / (5))\n            change [ghost v] effect by (-10)\n        end\n    else\n        if <(localid) = [end]> then\n            switch costume to (play again!!! v)\n            set size to (100) %\n            clear graphic effects\n            show\n            go to x: (-370) y: (186)\n            repeat until <(x position) > [-140]>\n                change x by (((x position) + (400)) / (10))\n            end\n            repeat until <(x position) > [-100]>\n                change x by (((-99) - (x position)) / (2))\n            end\n            repeat until <(x position) < [-111.5]>\n                change x by (((x position) - (69)) / (40))\n            end\n        end\n    end\nend\n\ndefine front\nif <(costume [name v]) = [costume1menu]> then\n    go to [front v] layer\nelse\n    if <(costume [name v]) = [costume2]> then\n        go to [front v] layer\n        go [backward v] (2) layers\n    else\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n        go to [front v] layer\n    end\nend\n\nwhen flag clicked\nswitch costume to (costume1menu v)\n\nwhen I start as a clone\nforever\n    front\nend\n\nbroadcast (you win!!! v)\n\nswitch costume to (costume1menu v)\n\n@Chat\n\nwhen flag clicked\nset [ghost v] effect to (100)\nset [open caht v] to [0]\ndelete all of [chat list v]\nadd [Hello!] to [chat list v]\nadd [Help me!] to [chat list v]\nadd [Bye!] to [chat list v]\nadd [I found one!] to [chat list v]\nadd [This way!] to [chat list v]\nadd [It's lagging :\(] to [chat list v]\nadd [Which way?] to [chat list v]\nadd [Okay!] to [chat list v]\nadd [Got to go :\)] to [chat list v]\nhide\nset [ghost v] to [100]\nforever\n    set [ghost v] effect to (ghost)\n    go to [front v] layer\n    if <(open caht) = [1]> then\n        change [ghost v] by (((-1) - (ghost)) / (5))\n    else\n        change [ghost v] by (((101) - (ghost)) / (5))\n    end\n    go to x: (-150) y: (0)\nend\n\nwhen I receive [init clone v]\nshow\nforever\n    if <key (t v) pressed?> then\n        set [open caht v] to ((1) - (open caht))\n        wait until <not <key (t v) pressed?>>\n    end\n    if <(clike) = [true]> then\n        set [open caht v] to ((1) - (open caht))\n        wait until <not <(clike) = [true]>>\n    end\nend\n\nwhen flag clicked\nset [chat item v] to [0]\nforever\n    if <(open caht) = [1]> then\n        if <<mouse down?> and <<<(mouse y) > [66]> and <(mouse y) < [83]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [1]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [49]> and <(mouse y) < [66]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [2]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [30]> and <(mouse y) < [49]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [3]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [13]> and <(mouse y) < [30]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [4]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [-4]> and <(mouse y) < [13]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [5]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [-21]> and <(mouse y) < [-4]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [6]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [-38]> and <(mouse y) < [-21]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [7]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [-55]> and <(mouse y) < [-38]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [8]\n            wait until <not <mouse down?>>\n        end\n        if <<mouse down?> and <<<(mouse y) > [-72]> and <(mouse y) < [-55]>> and <<(mouse x) > [-210]> and <(mouse x) < [-105]>>>> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [9]\n            wait until <not <mouse down?>>\n        end\n        if <key (1 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [1]\n            wait until <not <key (1 v) pressed?>>\n        end\n        if <key (2 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [2]\n            wait until <not <key (2 v) pressed?>>\n        end\n        if <key (3 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [3]\n            wait until <not <key (3 v) pressed?>>\n        end\n        if <key (4 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [4]\n            wait until <not <key (4 v) pressed?>>\n        end\n        if <key (5 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [5]\n            wait until <not <key (5 v) pressed?>>\n        end\n        if <key (6 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [6]\n            wait until <not <key (6 v) pressed?>>\n        end\n        if <key (7 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [7]\n            wait until <not <key (7 v) pressed?>>\n        end\n        if <key (8 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [8]\n            wait until <not <key (8 v) pressed?>>\n        end\n        if <key (9 v) pressed?> then\n            hide\n            set [timerx v] to [0]\n            set [chat item v] to [9]\n            wait until <not <key (9 v) pressed?>>\n        end\n    end\nend\n\nwhen flag clicked\nset [timerx v] to [6]\nforever\n    wait (1) seconds\n    change [timerx v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <(timerx) > [5]> then\n        set [chat item v] to [0]\n    end\nend\n\ndefine hide\nreplace item (3) of [acheivements! v] with [1]\nset [open caht v] to [0]\n\nwhen flag clicked\n\nwhen I receive [tick v]\nset [click for chat mobiel v] to <<(ghost) < [30]> and <<touching (mouse-pointer v)?> and <mouse down?>>>\n\nset [ghost v] effect to (0)\n\n