rainbow platformer infity lifes #games #stories #art

Instructions: Press green flag keys or wasd and you cant wall jump took me 5 weeks for this it would mean alot if i got favs and hearts and tell me what platformer next and follow my other account to @creeperanimatornatio and when you like and fav you get jump boost not scam when i get to 30 hearts and favs i will work on a new online and t for text platformer of regular \n @https://www.youtube.com/watch?v=6IVtqhaFZ9w

@Stage\n\n@Platforms\n\nwhen flag clicked\nset [old  level v] to []\n\ndefine Create clones (x) (y) (type)\nswitch costume to (type)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    Position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nend\n\nwhen I receive [start! v]\nhide\nif <not <(LEVEL) = (Old  level)>> then\n    repeat (1)\n        delete this clone\n    end\n    set [old  level v] to (LEVEL)\n    Create clones [-150] [-11] [1]\n    Create clones [465] [-11] [2]\n    Create clones [1145] [-11] [3]\n    Create clones [1450] [-11] [4]\n    Create clones [2010] [301] [5]\n    Create clones [2010] [575] [6]\n    Create clones [2680] [756] [7]\n    Create clones [2899] [756] [8]\n    Create clones [2900] [1330] [9]\n    Create clones [3370] [1750] [10]\n    Create clones [3800] [1750] [11]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Design\n\nwhen flag clicked\nset [old  level v] to []\n\ndefine Create clones (x) (y) (type)\nswitch costume to (type)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nshow\nforever\n    Position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nend\n\nwhen I receive [start! v]\nhide\nif <not <(LEVEL) = (Old  level)>> then\n    repeat (1)\n        delete this clone\n    end\n    set [old  level v] to (LEVEL)\n    Create clones [-150] [-11] [1]\n    Create clones [0] [0] [2]\n    Create clones [1000] [-11] [3]\n    Create clones [1450] [-11] [4]\n    Create clones [2010] [301] [5]\n    Create clones [3370] [1750] [6]\nend\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@parallax\n\nwhen I receive [tick v]\nGo to (((((parallax: @ID) * (480)) - ((SCROLL X) / (6))) mod (960)) - (480)) (Y_SHAKE)\n\nwhen I start as a clone\npoint in direction (90)\nset [ghost v] effect to (0)\nset [parallax: @id v] to [0]\nswitch costume to (item0 v)\nhide\n\ndefine Go to (x) (y)\ngo to x: (x) y: (y)\nif <<(x position) = (x)> and <(y position) = (y)>> then\n    show\nelse\n    hide\nend\ngo to [back v] layer\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nset [parallax: @id v] to [-1]\nswitch costume to (item1 v)\n\n@Moon\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@DANGER\n\nwhen flag clicked\nset [old  level v] to []\n\nwhen I receive [reset v]\nhide\n\nwhen flag clicked\nforever\n    go to [back v] layer\n    if <not <(LEVEL) = (Old  level)>> then\n        repeat (1)\n            delete this clone\n        end\n        set [old  level v] to (LEVEL)\n        Create clones [1350] [0] [1]\n    end\nend\n\nwhen I start as a clone\nshow\nforever\n    Position ((x) - (SCROLL X)) ((y) - (SCROLL Y))\nend\n\ndefine Create clones (x) (y) (type)\nswitch costume to (type)\nset [x v] to (x)\nset [y v] to (y)\ncreate clone of (_myself_ v)\n\ndefine Position (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\n@notif\n\nwhen flag clicked\ngo to x: (0) y: (50)\nhide\nwait (pick random (8) to (15)) seconds\nshow\nrepeat until <(y position) < [6]>\n    change y by (((5) - (y position)) / (6))\nend\nwait (3.5) seconds\nrepeat until <(y position) > [49.5]>\n    change y by (((y position) + (5)) / (5))\nend\nhide\nforever\n    wait (pick random (14) to (26)) seconds\n    show\n    repeat until <(y position) < [6]>\n        change y by (((5) - (y position)) / (6))\n    end\n    wait (3.5) seconds\n    repeat until <(y position) > [49.5]>\n        change y by (((y position) + (5)) / (5))\n    end\n    hide\nend\n\nwhen I receive [alert v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nhide\n\nwhen I receive [tick v]\ngo to [front v] layer\n\n@Enemies\n\nwhen flag clicked\nset [bounce???? v] to [0]\nhide\n\ndefine CLONE @ (x) (y) (type) (change)\nswitch costume to (type)\nset [@change v] to (change)\nset [@offsetx v] to (x)\nset [@offsety v] to (y)\ncreate clone of (_myself_ v)\n\nwhen I receive [tick v]\nGO_TO (((@offsetx) - (SCROLL X)) + (@Change_OFFSET)) ((Y_SHAKE) + ((@offsety) - (SCROLL Y)))\n\ndefine GO_TO (x) (y)\ngo to x: (x) y: (y)\nif <<([abs v] of (x position) ) < [240]> and <([abs v] of (y position) ) < [180]>> then\n    show\nelse\n    hide\nend\n\nwhen I start as a clone\nset size to (30) %\nset rotation style [left-right v]\nif <(costume [name v]) = [red1]> then\n    wait (1) seconds\n    forever\n        if <touching (player v)?> then\n            if <<([y position v] of [player v]) > (y position)> and <([yv v] of [player v]) < [-1]>> then\n                stop [other scripts in sprite v]\n                broadcast (small_bounce v)\n                switch costume to (costume1 v)\n                repeat (4)\n                    next costume\n                    change [ghost v] effect by (0)\n                end\n                repeat (5)\n                    change [ghost v] effect by (20)\n                end\n                set [loot x v] to (round ((@offsetx) + (@Change_OFFSET)))\n                set [loot y v] to (round (@offsety))\n                broadcast (loot v)\n                delete this clone\n            else\n                broadcast (die v)\n            end\n            wait (3) seconds\n        end\n    end\nelse\n    if <(costume [name v]) = [bot1]> then\n        forever\n            if <touching (player v)?> then\n                if <<([y position v] of [player v]) > (y position)> and <([yv v] of [player v]) < [-1]>> then\n                    broadcast (boucne v)\n                    switch costume to (bot1 v)\n                    repeat (4)\n                        next costume\n                    end\n                    wait (0.02) seconds\n                    repeat (4)\n                        switch costume to ((costume [number v]) - (1))\n                    end\n                end\n                wait (0.1) seconds\n            end\n        end\n    else\n        if <(costume [name v]) = [y1]> then\n            wait (1) seconds\n            forever\n                if <touching (player v)?> then\n                    if <<([y position v] of [player v]) > (y position)> and <([yv v] of [player v]) < [-1]>> then\n                        stop [other scripts in sprite v]\n                        broadcast (small_bounce v)\n                        switch costume to (y1 v)\n                        repeat (4)\n                            next costume\n                            change [ghost v] effect by (0)\n                        end\n                        repeat (5)\n                            change [ghost v] effect by (20)\n                        end\n                        set [loot x v] to (round ((@offsetx) + (@Change_OFFSET)))\n                        set [loot y v] to (round (@offsety))\n                        broadcast (loot v)\n                        delete this clone\n                    else\n                        broadcast (die v)\n                    end\n                    wait (3) seconds\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [red1]> then\n    forever\n        if <<<([abs v] of ((y position) - ([y position v] of [player v])) ) < [30]> and <<(([x position v] of [player v]) + (80)) > ((x position) - (@Change_OFFSET))> and <(([x position v] of [player v]) - (80)) < (((x position) - (@Change_OFFSET)) + (@Change))>>> and <<<(direction) = [90]> and <([x position v] of [player v]) > (x position)>> or <<(direction) = [-90]> and <([x position v] of [player v]) < (x position)>>>> then\n            switch costume to (red1 v)\n            repeat (6)\n                next costume\n            end\n            wait (0.01) seconds\n            repeat (6)\n                switch costume to ((costume [number v]) - (1))\n                wait (0.01) seconds\n            end\n        end\n    end\nend\n\nwhen I receive [start! v]\nswitch costume to (blank v)\nCLONE @ [544] [-40] [red1] [81]\nCLONE @ [1050] [-37] [bot1] [120]\nCLONE @ [1195] [146] [bot1] [81]\nCLONE @ [1408] [195] [bot1] [81]\nCLONE @ [1613] [277] [bot1] [100]\nCLONE @ [2100] [275] [bot1] [100]\nCLONE @ [1926] [536] [bot1] [86]\nCLONE @ [4000] [1630] [red1] [86]\nCLONE @ [4001] [1630] [red1] [86]\nCLONE @ [4002] [1630] [red1] [86]\nCLONE @ [4003] [1630] [red1] [86]\nCLONE @ [4004] [1630] [red1] [86]\nCLONE @ [4005] [1630] [red1] [86]\nCLONE @ [4006] [1630] [red1] [86]\nCLONE @ [4007] [1630] [red1] [86]\nCLONE @ [4008] [1630] [red1] [86]\nCLONE @ [4009] [1630] [red1] [86]\nCLONE @ [4010] [1630] [red1] [86]\nCLONE @ [4011] [1630] [red1] [86]\nCLONE @ [4012] [1630] [red1] [86]\nCLONE @ [4013] [1630] [red1] [86]\nCLONE @ [4014] [1630] [red1] [86]\nCLONE @ [4015] [1630] [red1] [86]\nCLONE @ [4016] [1630] [red1] [86]\nCLONE @ [4017] [1630] [red1] [86]\nCLONE @ [4018] [1630] [red1] [86]\nCLONE @ [4019] [1630] [red1] [86]\nCLONE @ [4020] [1630] [red1] [86]\nCLONE @ [4021] [1630] [red1] [86]\nCLONE @ [4022] [1630] [red1] [86]\nCLONE @ [4023] [1630] [red1] [86]\nCLONE @ [4024] [1630] [red1] [86]\nCLONE @ [4025] [1630] [red1] [86]\nCLONE @ [4026] [1630] [red1] [86]\nCLONE @ [4027] [1630] [red1] [86]\nCLONE @ [4028] [1630] [red1] [86]\nCLONE @ [4029] [1630] [red1] [86]\nCLONE @ [4030] [1630] [red1] [86]\nCLONE @ [4031] [1630] [red1] [86]\nCLONE @ [4032] [1630] [red1] [86]\nCLONE @ [4033] [1630] [red1] [86]\nCLONE @ [4034] [1630] [red1] [86]\nCLONE @ [4035] [1630] [red1] [86]\nCLONE @ [4036] [1630] [red1] [86]\nCLONE @ [4038] [1630] [red1] [86]\nCLONE @ [4038] [1630] [red1] [86]\nCLONE @ [4039] [1630] [red1] [86]\nCLONE @ [4040] [1630] [red1] [86]\nCLONE @ [4041] [1630] [red1] [86]\nCLONE @ [4042] [1630] [red1] [86]\nCLONE @ [4043] [1630] [red1] [86]\nCLONE @ [4044] [1630] [red1] [86]\nCLONE @ [4045] [1630] [red1] [86]\nCLONE @ [4046] [1630] [red1] [86]\nCLONE @ [4047] [1630] [red1] [86]\n\nwhen I start as a clone\nforever\n    set [@change_offset v] to [0]\n    point in direction (90)\n    repeat until <((@Change_OFFSET) + (1)) > (@Change)>\n        if <<<<([abs v] of ((y position) - ([y position v] of [player v])) ) < [30]> and <<(([x position v] of [player v]) + (80)) > ((x position) - (@Change_OFFSET))> and <(([x position v] of [player v]) - (80)) < (((x position) - (@Change_OFFSET)) + (@Change))>>> and < (costume [name v]) contains [red]?>> and <([x position v] of [player v]) > (x position)>> then\n            change [@change_offset v] by (3)\n        else\n            change [@change_offset v] by (1.5)\n        end\n    end\n    point in direction (-90)\n    repeat until <(@Change_OFFSET) < [1]>\n        if <<<<([abs v] of ((y position) - ([y position v] of [player v])) ) < [30]> and <<(([x position v] of [player v]) + (80)) > ((x position) - (@Change_OFFSET))> and <(([x position v] of [player v]) - (80)) < (((x position) - (@Change_OFFSET)) + (@Change))>>> and < (costume [name v]) contains [red]?>> and <([x position v] of [player v]) < (x position)>> then\n            change [@change_offset v] by (-3)\n        else\n            change [@change_offset v] by (-1.5)\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    switch costume to (blank v)\nend\n\n@Player\n\nwhen flag clicked\nstart sound [The Script- Hall of Fame v]\ngo to [front v] layer\nset size to (80) %\nshow\nset [time v] to [0]\nreset\nbroadcast (setup v) and wait\nbroadcast (start! v)\nforever\n    Physics\n    broadcast (Tick v)\nend\n\ndefine reset\nswitch costume to (3a v)\nclear graphic effects\nset [scroll x v] to [-384]\nset [scroll y v] to [-23]\nset [offset x v] to [-400]\nset [offset y v] to [50]\nset [xv v] to [0]\nset [yv v] to [0]\nset [in air v] to [0]\npoint in direction (90)\nshow\n\ndefine Physics\nif <(pause) = [0]> then\n    change player x by (round ((XV) / (1.8)))\n    if <<(click2) = [0]> and <<<(mouse x) > ((x position) + (20))> and <<mouse down?> and <[0] = (clickShop)>>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>>> then\n        change [xv v] by (<<(LOVED__) = [1]> and <(FAVED___) = [1]>> * (3))\n        if <<touching (water v)?> or <touching (danger v)?>> then\n            change [xv v] by (2)\n        else\n            if <(slope) = [1]> then\n                change [xv v] by (3.3)\n                change [offset y v] by (1)\n            else\n                if <(slope) = [4]> then\n                    change [offset y v] by (-4)\n                    change [xv v] by (4)\n                else\n                    change [xv v] by (3.6)\n                end\n            end\n        end\n    else\n        if <<<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<(mouse x) < ((x position) + (-20))> and <<mouse down?> and <[0] = (clickShop)>>>> and <(click2) = [0]>> then\n            change [xv v] by (<<(LOVED__) = [1]> and <(FAVED___) = [1]>> * (-3))\n            if <<touching (water v)?> or <touching (danger v)?>> then\n                change [xv v] by (-2)\n            else\n                if <(slope) = [1]> then\n                    change [xv v] by (-3.3)\n                    change [offset y v] by (1)\n                else\n                    if <(slope) = [4]> then\n                        change [xv v] by (-4)\n                        change [offset y v] by (-4)\n                    else\n                        change [xv v] by (-3.6)\n                    end\n                end\n            end\n        end\n    end\n    if <<(click2) = [0]> and <<<(mouse y) > ((y position) + (20))> and <<mouse down?> and <[0] = (clickShop)>>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>>> then\n        if <<touching (water v)?> or <touching (danger v)?>> then\n            if <(water) > [5]> then\n                set [yv v] to ((14.4) + (<<(LOVED__) = [1]> and <(FAVED___) = [1]>> * (3)))\n            end\n        else\n            if <(in air) < [4]> then\n                set [yv v] to ((13.4) + (<<(LOVED__) = [1]> and <(FAVED___) = [1]>> * (3)))\n            end\n        end\n    end\n    switch costume to (water v)\n    if <<touching (water v)?> or <touching (danger v)?>> then\n        change [yv v] by (2)\n    end\n    switch costume to (hitbox v)\n    if <<touching (water v)?> or <touching (danger v)?>> then\n    Slope\n    if <<<(jumpBOOST?) = [1]> and <(YV) < [-5]>> and <<key (space v) pressed?> or <mouse down?>>> then\n        set [yv v] to [-5]\n    else\n        if <(YV) < [-10]> then\n            set [yv v] to [-10]\n        end\n    end\n    if <(Offset X) < [-452]> then\n        set [offset x v] to [-452]\n    end\n    change player y by (YV)\n    Position\n    change [scroll x v] by (round (((Offset X) - (SCROLL X)) / (9)))\n    change [scroll y v] by ((round (((Offset Y) - (SCROLL Y)) / (13))) + (2))\n    position\n    set [xv v] to ((XV) * (0.7))\n    if <touching (water v)?> then\n        set [yv v] to ((YV) * (0.5))\n        change [water v] by (1)\n    else\n        set [water v] to [0]\n    end\n    stop [this script v]\nend\n\ndefine change player x by (sx)\nswitch costume to (hitbox v)\nchange [offset x v] by ((sx) * (1.1))\nposition\nif <touching (platforms v)?> then\n    repeat (10)\n        change [offset y v] by (0.5)\n        position\n        if <not <touching (platforms v)?>> then\n            stop [this script v]\n        end\n    end\n    change [offset y v] by (-5)\n    repeat until <not <touching (platforms v)?>>\n        if <(sx) > [0]> then\n            change [offset x v] by (-1)\n        else\n            change [offset x v] by (1)\n        end\n        position\n    end\nend\nSet Costume\n\ndefine position\ngo to x: (round ((Offset X) - (SCROLL X))) y: ((Offset Y) - (SCROLL Y))\n\ndefine change player y by (sy)\nswitch costume to (hitbox v)\nchange [offset y v] by (sy)\nchange [in air v] by (1)\nposition\nrepeat until <not <touching (platforms v)?>>\n    if <(sy) > [0]> then\n        change [offset y v] by (-1)\n    else\n        change [offset y v] by (1)\n        if <<<not <<(mouse y) > ((y position) + (10))> and <mouse down?>>> and <not <key (w v) pressed?>>> and <not <key (up arrow v) pressed?>>> then\n            set [in air v] to [0]\n        end\n    end\n    position\n    set [yv v] to [0]\nend\nswitch costume to (hitboxjumpth v)\nrepeat until <not <touching (jump_through v)?>>\n    switch costume to (hitboxjumpth v)\n    position\n    if <(YV) > [0]> then\n        Set Costume\n        stop [this script v]\n    end\n    if <(sy) > [0]> then\n        change [offset y v] by (-1)\n    else\n        change [offset y v] by (1)\n        if <<<not <<(mouse y) > ((y position) + (10))> and <mouse down?>>> and <not <key (w v) pressed?>>> and <not <key (up arrow v) pressed?>>> then\n            set [in air v] to [0]\n        end\n    end\n    position\n    set [yv v] to [0]\nend\nSet Costume\n\nwhen I receive [tick v]\nif <not <(chat item) = [0]>> then\n    say (item (chat item) of [chat list v])\nelse\n    say []\nend\n\nwhen [c v] key pressed\nif <(username) = [CMlukian]> then\n    set [yv v] to [10]\nend\n\nwhen I receive [small_bounce v]\nchange [offset y v] by (12)\nset [yv v] to [14]\n\nwhen I receive [die v]\nchange [lives v] by (-1)\nrepeat (5)\n    wait (0.2) seconds\n    repeat (2)\n        change [ghost v] effect by (50)\n    end\n    wait (0.2) seconds\n    repeat (2)\n        change [ghost v] effect by (-50)\n    end\nend\n\ndefine Slope\nswitch costume to (l v)\nif <<touching (platforms v)?> and <(XV) < [-0.01]>> then\n    set [slope v] to [1]\nelse\n    switch costume to (r v)\n    if <<touching (platforms v)?> and <(XV) > [0.01]>> then\n        set [slope v] to [1]\n    else\n        switch costume to (left2 v)\n        if <<touching (platforms v)?> and <(XV) > [0.01]>> then\n            switch costume to (right3 v)\n            if <not <touching (platforms v)?>> then\n                set [slope v] to [4]\n            else\n                set [slope v] to [0]\n            end\n        else\n            switch costume to (right2 v)\n            if <<touching (platforms v)?> and <(XV) < [-0.01]>> then\n                switch costume to (left3 v)\n                if <not <touching (platforms v)?>> then\n                    set [slope v] to [4]\n                else\n                    set [slope v] to [0]\n                end\n            else\n                set [slope v] to [0]\n            end\n        end\n        Set Costume\n    end\nend\n\ndefine Set Costume\nif <<key (right arrow v) pressed?> or <<key (d v) pressed?> or <<mouse down?> and <(mouse x) > [20]>>>> then\n    switch costume to (2a v)\n    if <<<mouse down?> and <(mouse y) > ((y position) + (20))>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        switch costume to (4a v)\n    end\nelse\n    if <<key (left arrow v) pressed?> or <<key (a v) pressed?> or <<mouse down?> and <(mouse x) < [-20]>>>> then\n        switch costume to (1a v)\n        if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (5a v)\n        end\n    else\n        switch costume to (3a v)\n        if <<<(mouse y) > ((y position) + (20))> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            switch costume to (6a v)\n        end\n    end\nend\nif <<<(YV) < [-1.5]> and <<(jumpBOOST?) = [1]> and <(water) < [3]>>> and <<key (space v) pressed?> or <mouse down?>>> then\n    switch costume to (join (letter (1) of (costume [name v])) [b])\nend\n\nwhen flag clicked\nset [y_shake v] to [0]\nwait (2) seconds\nforever\n    if <touching (danger v)?> then\n        broadcast (die v)\n        wait (5) seconds\n    end\nend\n\nwhen I receive [die v]\nset [y_shake v] to [12]\nwait (0.06) seconds\nset [y_shake v] to [-12]\nwait (0.06) seconds\nset [y_shake v] to [6]\nwait (0.06) seconds\nset [y_shake v] to [-4]\nwait (0.06) seconds\nset [y_shake v] to [2]\nwait (0.06) seconds\nset [y_shake v] to [-1]\nwait (0.06) seconds\nset [y_shake v] to [0]\n\nwhen I receive [boucne v]\nchange [offset y v] by (18)\nset [yv v] to [21]\n\nwhen this sprite clicked\nset [open caht v] to ((1) - (open caht))\nif <(open caht) = [1]> then\n    ask [Which item of chat?] and wait\n    if << [ghjvbn] contains (answer)?> or <<(answer) > [0]> and <(answer) < [10]>>> then\n        broadcast (mobile v)\n        if << [ghjvbn] contains (answer)?> and <not <(answer) = []>>> then\n            if <(EmojiCHAT?) = [1]> then\n                if <(answer) = [g]> then\n                    set [chat item v] to [10]\n                else\n                    if <(answer) = [h]> then\n                        set [chat item v] to [11]\n                    else\n                        if <(answer) = [j]> then\n                            set [chat item v] to [12]\n                        else\n                            if <(answer) = [v]> then\n                                set [chat item v] to [13]\n                            else\n                                if <(answer) = [b]> then\n                                    set [chat item v] to [14]\n                                else\n                                    set [chat item v] to [15]\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        else\n            set [chat item v] to (answer)\n        end\n    end\nend\n\nwhen [p v] key pressed\nif <(username) = [CMlukian]> then\n    switch costume to (3a v)\n    clear graphic effects\n    set [scroll x v] to [1296]\n    set [scroll y v] to [1212]\n    set [offset x v] to [1296]\n    set [offset y v] to [1212]\n    set [xv v] to [0]\n    set [yv v] to [0]\n    set [in air v] to [0]\n    point in direction (90)\n    show\nend\n\nwhen I receive [reset v]\nreset\n\ndefine Tick\n\n@detector \n\nwhen flag clicked\ngo to x: (0) y: (0)\nswitch costume to (costume1 v)\nhide\nrepeat until <<(LOVED__) = [1]> and <(FAVED___) = [1]>>\n    show\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (pick random (3) to (5)) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    wait (pick random (5) to (8)) seconds\nend\nif <<(LOVED__) = [1]> and <(FAVED___) = [1]>> then\n    show\n    switch costume to (costume2 v)\n    set [ghost v] effect to (100)\n    wait (0) seconds\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (pick random (3) to (5)) seconds\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\nend\nhide\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@detector\n\nwhen flag clicked\nhide\nset [faved___ v] to [0]\nset [loved__ v] to [0]\nset [clone id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.2) seconds\nset [clone id v] to [1]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(clone id) = [0]> then\n    go to x: (-15) y: (0)\n    set [loved__ v] to [0]\n    switch costume to (love v)\n    forever\n        set [love? v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [loved__ v] to [1]\n        end\n    end\nend\nif <(clone id) = [1]> then\n    go to x: (0) y: (0)\n    switch costume to (fave v)\n    set [faved___ v] to [0]\n    forever\n        set [fav v] to <touching (mouse-pointer v)?>\n        if <touching (mouse-pointer v)?> then\n            set [faved___ v] to [1]\n        end\n    end\nend\n\n@Thumbnail\n\nwhen flag clicked\ngo to x: (00) y: (0)\ngo to [front v] layer\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0)\nif <not <([exit v] of [alertsui v]) = [null]>> then\n    switch costume to (costume1 v)\n    set [ghost v] effect to (100)\n    show\n    go to [front v] layer\n    repeat (10)\n        change [ghost v] effect by (-10)\n        go to [front v] layer\n    end\nend\n\n@Hidden\n\nwhen I receive [tick v]\nif <(costume [name v]) = [sign]> then\n    go to (player v)\nelse\n    Go to (round ((@offset_x) - (SCROLL X))) ((round ((@offset_y) - (SCROLL Y))) + (Y_SHAKE))\nend\n\ndefine Clone (x) (y)\nchange [@offset_x v] by (x)\nchange [@offset_y v] by (y)\nset [@collected? v] to [0]\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\nif <(costume [name v]) = [sign]> then\n    set size to (72) %\n    set [ghost v] effect to (100)\n    wait (0.2) seconds\n    show\n    repeat until <(size) > [89]>\n        change [ghost v] effect by (-10)\n        change size by (((90) - (size)) / (5))\n    end\n    set size to (90) %\n    wait (2) seconds\n    repeat until <(size) < [73]>\n        change [ghost v] effect by (10)\n        change size by (((size) - (95)) / (7))\n    end\n    broadcast (exp v)\n    hide\n    delete this clone\nelse\n    set size to (100) %\n    set [@collected? v] to [0]\n    show\n    Go to (round ((@offset_x) - (SCROLL X))) ((round ((@offset_y) - (SCROLL Y))) + (Y_SHAKE))\n    go to [front v] layer\n    forever\n        check (costume [name v])\n    end\nend\nif <(costume [name v]) = [sign]> then\n    forever\n        go to [front v] layer\n    end\nend\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\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\nclear graphic effects\nset [exp v] to [0]\nset [@offset_x v] to [1950]\nset [@offset_y v] to [60]\nhide\nswitch costume to (r1 v)\nClone [460] [302]\n\ndefine check (i)\nswitch costume to (join (letter (1) of (i)) [0])\nif <touching (player v)?> then\n    change [ghost v] effect by (16)\n    if <(@collected?) = [0]> then\n        switch costume to (sign v)\n        create clone of (_myself_ v)\n        set [@collected? v] to [1]\n        change [exp v] by (10)\n    end\nelse\n    change [ghost v] effect by (-20)\nend\nswitch costume to (i)\n\nwhen I start as a clone\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\n@Collectibles2\n\nwhen I start as a clone\nset [y_chagne \(local\) v] to [0]\npoint in direction (90)\nshow\nwait (0.1) seconds\nforever\n    if <touching (player v)?> then\n        if <(costume [name v]) = [star]> then\n            clear graphic effects\n            set size to (100) %\n            set [click2 v] to [1]\n            repeat until <(direction) > [130]>\n                turn right (((direction) - (85)) / (5)) degrees\n                change size by (((177) - (size)) / (8))\n                change [ghost v] effect by (10)\n            end\n            repeat until <(size) > [180]>\n                turn right (((195) - (direction)) / (6)) degrees\n                change [ghost v] effect by (15)\n                change size by (((200) - (size)) / (8))\n            end\n            wait (0.3) seconds\n            broadcast (WIN!! v)\n            delete this clone\n        else\n            repeat (4)\n                change [ghost v] effect by (25)\n                change size by (((10) - (size)) / (4))\n            end\n            if <(costume [name v]) = [coin]> then\n                change [coins v] by (1)\n            else\n                if <(costume [name v]) = [heart]> then\n                    change [lives v] by (1)\n                end\n            end\n            set size to (110) %\n            switch costume to (+1 v)\n            repeat (4)\n                change [ghost v] effect by (-25)\n                change size by (((90) - (size)) / (6))\n                if <(y_chagne \(local\)) > [15]> then\n                    change [y_chagne \(local\) v] by (((25.5) - (y_chagne \(local\))) / (6))\n                else\n                    change [y_chagne \(local\) v] by (2)\n                end\n            end\n            repeat until <(y_chagne \(local\)) > [28]>\n                if <(y_chagne \(local\)) > [15]> then\n                    change [y_chagne \(local\) v] by (((28.5) - (y_chagne \(local\))) / (6))\n                    change [ghost v] effect by (4)\n                else\n                    change [y_chagne \(local\) v] by (2)\n                    change [ghost v] effect by (6)\n                end\n                change size by (((90) - (size)) / (5))\n            end\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\nset [loot x v] to [none]\nset [loot y v] to [none]\n\nwhen I receive [loot v]\nif <(offsetx) = [null]> then\n    set [offsetx v] to (loot x)\n    set [offsety v] to (loot y)\n    wait (0.4) seconds\n    switch costume to (coin v)\n    Clone [0] [15]\n    Clone [0] [34]\n    Clone [0] [34]\n    switch costume to (blank v)\n    set [offsetx v] to [null]\n    wait (0.1) seconds\n    set [loot x v] to [none]\nend\n\nwhen I receive [setup v]\nclone\n\nwhen I receive [tick v]\nGo to (round ((offsetx) - (SCROLL X))) ((Y_SHAKE) + ((round ((offsety) - (SCROLL Y))) + (y_chagne \(local\))))\n\ndefine Clone (x) (y)\ngo to x: (999999) y: (999999)\nchange [offsetx v] by (x)\nchange [offsety v] by (y)\ncreate clone of (_myself_ v)\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\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nrepeat (10)\n    change [ghost v] effect by (-10)\nend\n\ndefine clone\nhide\nset size to (100) %\nswitch costume to (coin v)\nset [offsetx v] to [-300]\nset [offsety v] to [30]\nClone [0] [0]\nClone [30] [0]\nClone [30] [0]\nClone [30] [0]\nClone [30] [0]\nset [offsetx v] to [110]\nset [offsety v] to [45]\nClone [30] [45]\nClone [30] [-15]\nClone [30] [-25]\nClone [30] [-30]\nClone [30] [-30]\nset [offsetx v] to [1115]\nset [offsety v] to [45]\nClone [-10] [0]\nClone [10] [30]\nClone [10] [30]\nClone [10] [30]\nClone [10] [30]\nset [offsetx v] to [1804]\nset [offsety v] to [330]\nClone [0] [0]\nClone [30] [30]\nClone [30] [30]\nClone [30] [-30]\nClone [30] [-30]\nset [offsetx v] to [2400]\nset [offsety v] to [800]\nClone [0] [0]\nClone [25] [30]\nswitch costume to (heart v)\nset [offsetx v] to [2469]\nset [offsety v] to [850]\nClone [0] [0]\nswitch costume to (coin v)\nset [offsetx v] to [2500]\nset [offsety v] to [830]\nClone [15] [0]\nClone [25] [-30]\nset [offsetx v] to [2955]\nset [offsety v] to [900]\nClone [-30] [0]\nClone [0] [150]\nClone [0] [150]\nClone [0] [150]\nClone [0] [150]\nswitch costume to (star v)\nset [offsetx v] to [3935]\nset [offsety v] to [1700]\nClone [0] [0]\nswitch costume to (blank v)\nset [offsetx v] to [Null]\n\n@Chat\n\nwhen flag clicked\nset [click2 v] to [0]\nset [ghost v] effect to (100)\nset [open caht v] to [0]\ndelete all of [chat list v]\nadd [Hey :D] to [chat list v]\nadd [This way!] to [chat list v]\nadd [Bye!] to [chat list v]\nadd [Watch out!] to [chat list v]\nadd [Lol] 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]\nset [open caht v] to [0]\ngo to x: (-150) y: (0)\nforever\n    set [ghost v] effect to (ghost)\n    if <(ghost) = [100]> then\n        hide\n    else\n        show\n    end\n    if <(open caht) = [1]> then\n        if <not <(ghost) = [0]>> then\n            change [ghost v] by (-20)\n        end\n    else\n        if <not <(ghost) = [100]>> then\n            change [ghost v] by (20)\n        end\n    end\n    if <(EmojiCHAT?) = [1]> then\n        switch costume to (main2 v)\n    else\n        switch costume to (main v)\n    end\n    go to [front v] layer\n    go [backward v] (10) layers\nend\n\nwhen flag clicked\nset [chat item v] to [0]\nforever\n    if <(open caht) = [1]> then\n        if <(EmojiCHAT?) = [1]> then\n            if <key (g v) pressed?> then\n                reset\n                set [chat item v] to [10]\n                wait until <not <key (g v) pressed?>>\n            end\n            if <key (h v) pressed?> then\n                reset\n                set [chat item v] to [11]\n                wait until <not <key (h v) pressed?>>\n            end\n            if <key (j v) pressed?> then\n                reset\n                set [chat item v] to [12]\n                wait until <not <key (j v) pressed?>>\n            end\n            if <key (v v) pressed?> then\n                reset\n                set [chat item v] to [13]\n                wait until <not <key (v v) pressed?>>\n            end\n            if <key (b v) pressed?> then\n                reset\n                set [chat item v] to [14]\n                wait until <not <key (b v) pressed?>>\n            end\n            if <key (n v) pressed?> then\n                reset\n                set [chat item v] to [15]\n                wait until <not <key (n v) pressed?>>\n            end\n        end\n        if <key (1 v) pressed?> then\n            reset\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            reset\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            reset\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            reset\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            reset\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            reset\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            reset\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            reset\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            reset\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 [chat reset v] to [6]\nforever\n    wait (1) seconds\n    change [chat reset v] by (1)\nend\n\nwhen flag clicked\nforever\n    if <(chat item) > [9]> then\n        if <(chat reset) > [3]> then\n            set [chat item v] to [0]\n        end\n    else\n        if <(chat reset) > [5]> then\n            set [chat item v] to [0]\n        end\n    end\nend\n\ndefine reset\nset [open caht v] to [0]\nset [chat reset v] to [0]\n\nwhen flag clicked\nswitch costume to (main v)\nshow\nwait (0.1) seconds\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\nend\n\nwhen I receive [mobile v]\nreset\n\nwhen [timer v] > (0.1)\nhide\n\n@EMOJI\n\nwhen I start as a clone\ngo to [front v] layer\nset size to (20) %\nshow\nsay []\nset [ghost v] effect to (100)\nforever\n    repeat until <<<(item (((EMOJI: @ID) * (6)) - (1)) of [cloud_data v]) < [16]> and <(item (((EMOJI: @ID) * (6)) - (1)) of [cloud_data v]) > [9]>> and <(item (EMOJI: @ID) of [active_check v]) = [1]>>\n        change [ghost v] effect by (20)\n        change size by (((20) - (size)) / (5))\n    end\n    switch costume to (join [emoji] (item (((EMOJI: @ID) * (6)) - (1)) of [cloud_data v]))\n    repeat until <<not <(costume [name v]) = (join [emoji] (item (((EMOJI: @ID) * (6)) - (1)) of [cloud_data v]))>> or <(item (EMOJI: @ID) of [active_check v]) = [0]>>\n        set [bvel v] to ((((100) - (size)) / (7)) + ((bvel) * (0.75)))\n        change size by (bvel)\n        change [ghost v] effect by (-20)\n    end\n    repeat until <(size) < [25]>\n        change size by (((20) - (size)) / (5))\n        change [ghost v] effect by (20)\n    end\nend\n\nwhen flag clicked\nhide\n\ndefine @Position XY (@player)\nif <(@player) = (playerID)> then\n    go to (player v)\n    change y by (35)\nelse\n    change x by (((((item (((@player) * (6)) - (5)) of [cloud_data v]) + (([x position v] of [player v]) * (-0.25))) - (SCROLL X)) - (x position)) / (2.5555555555555556))\n    change y by ((15) + (((((item (((@player) * (6)) - (4)) of [cloud_data v]) + (((-28) - ([y position v] of [player v])) * (0.12))) - (SCROLL Y)) - (y position)) / (2.5555555555555555555)))\n    go to x: (round (x position)) y: (round (y position))\nend\nstop [this script v]\n\nwhen I receive [cloud_tick v]\n@Position XY (EMOJI: @ID)\n\nwhen I receive [cloud_players v]\nset [emoji: @id v] to [1]\nrepeat (10)\n    create clone of (_myself_ v)\n    change [emoji: @id v] by (1)\nend\n\n@For griffpatch\n\nwhen flag clicked\nif <(username) = [Griffpatch ]> then\n    show\nelse\n    hide\nend\n\n@USER_INTERFACE\n\nwhen flag clicked\nSETUP\nforever\n    if <<<touching (mouse-pointer v)?> and <mouse down?>> and <(openmenu?) = [0]>> then\n        set [clickshop v] to [1]\n        repeat (7)\n            change [ghost v] effect by (15)\n        end\n        set [clickshop v] to [0]\n        set [shop_ghost v] to [100]\n        switch costume to (shop v)\n        set [y_shop v] to [-105]\n        set [openmenu? v] to [1]\n        repeat until <(y_shop) > [-1]>\n            change [y_shop v] by (((4) - (y_shop)) / (8))\n            change [ghost v] effect by (-10)\n            if <(shop_ghost) > [9]> then\n                change [shop_ghost v] by (-10)\n            end\n        end\n        repeat until <(close#) = [1]>\n            switch costume to (b1 v)\n            if <touching (mouse-pointer v)?> then\n                switch costume to (shopb v)\n                if <mouse down?> then\n                    set [close# v] to [1]\n                end\n            else\n                switch costume to (shop v)\n            end\n            if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                set [clickshop v] to [1]\n            else\n                set [clickshop v] to [0]\n            end\n        end\n        set [openmenu? v] to [0]\n        set [close# v] to [0]\n        repeat until <(y_shop) < [-99]>\n            change [y_shop v] by (((y_shop) - (21)) / (7))\n            change [ghost v] effect by (8.5)\n            if <(shop_ghost) < [91]> then\n                change [shop_ghost v] by (10)\n            end\n            if <(y_shop) < [-30]> then\n                set [clickshop v] to [0]\n            end\n        end\n        switch costume to (button v)\n        set [y_shop v] to [0]\n        repeat (7)\n            change [ghost v] effect by (-15)\n        end\n    end\nend\n\nwhen I start as a clone\nset [ghost v] effect to (100)\nshow\nif <(costume [name v]) = [coins]> then\n    go to x: (0) y: (0)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nelse\n    if <(letter (1) of (@clone)) = [v]> then\n        set [ghost v] effect to (100)\n        set [brightness v] effect to (100)\n        forever\n            if <(letter (4) of (@clone)) = [1]> then\n                switch costume to (join (letter (1) of (coins)) [a])\n            else\n                if <(letter (4) of (@clone)) = [2]> then\n                    switch costume to (join (letter (2) of (coins)) [a])\n                    if <(letter (1) of (coins)) = [1]> then\n                        set x to (202)\n                    else\n                        set x to (205)\n                    end\n                else\n                    if <(letter (4) of (@clone)) = [3]> then\n                        switch costume to (join (letter (3) of (coins)) [a])\n                        if <<(letter (2) of (coins)) = [1]> or <(letter (1) of (coins)) = [1]>> then\n                            if <<(letter (1) of (coins)) = [1]> and <(letter (2) of (coins)) = [1]>> then\n                                set x to (214)\n                            else\n                                set x to (217)\n                            end\n                        else\n                            set x to (220)\n                        end\n                    end\n                end\n            end\n        end\n    else\n        if <(costume [name v]) = [heart]> then\n            forever\n                if <(win) = [1]> then\n                    change [ghost v] effect by (10)\n                else\n                    if <(@clone) > (lives)> then\n                        change [ghost v] effect by (25)\n                    else\n                        change [ghost v] effect by (-25)\n                    end\n                end\n            end\n        else\n            if <(letter (1) of (@clone)) = [d]> then\n                go to x: (0) y: (0)\n                set size to (100) %\n                if <(letter (2) of (@clone)) = [1]> then\n                    switch costume to (c1 v)\n                    forever\n                        set [ghost v] effect to (shop_ghost)\n                        if <<<mouse down?> and <touching (mouse-pointer v)?>> and <(openmenu?) = [1]>> then\n                            if <<(coins) > [19]> and <(mousewait) = [0]>> then\n                                change [coins v] by (-20)\n                                change [lives v] by (1)\n                                set [mousewait v] to [1]\n                                broadcast (purch v)\n                            end\n                        end\n                    end\n                else\n                    if <(letter (2) of (@clone)) = [2]> then\n                        switch costume to (c2 v)\n                        forever\n                            set [ghost v] effect to (shop_ghost)\n                            if <<<mouse down?> and <touching (mouse-pointer v)?>> and <(openmenu?) = [1]>> then\n                                if <<<(coins) > [29]> and <(mousewait) = [0]>> and <(EmojiCHAT?) = [0]>> then\n                                    change [coins v] by (-30)\n                                    set [emojichat? v] to [1]\n                                    set [mousewait v] to [1]\n                                    broadcast (purch v)\n                                    repeat (5)\n                                        change [ghost v] effect by (20)\n                                    end\n                                    switch costume to (c2a v)\n                                    repeat (10)\n                                        change [ghost v] effect by (-10)\n                                    end\n                                end\n                            end\n                        end\n                    else\n                        if <(letter (2) of (@clone)) = [3]> then\n                            switch costume to (c3 v)\n                            forever\n                                set [ghost v] effect to (shop_ghost)\n                                if <<<mouse down?> and <touching (mouse-pointer v)?>> and <(openmenu?) = [1]>> then\n                                    if <<<(PARACHUTE) = [0]> and <(mousewait) = [0]>> and <(coins) > [39]>> then\n                                        change [coins v] by (-40)\n                                        set [parachute v] to [1]\n                                        set [mousewait v] to [1]\n                                        broadcast (purch v)\n                                        repeat (5)\n                                            change [ghost v] effect by (20)\n                                        end\n                                        switch costume to (c3a v)\n                                        repeat (10)\n                                            change [ghost v] effect by (-10)\n                                        end\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [tick v]\nif <(@clone) = [shop]> then\n    set y to (y_shop)\n    if <not <mouse down?>> then\n        set [mousewait v] to [0]\n    end\nelse\n    go to [front v] layer\n    if <<(costume [name v]) = [coins]> or <(costume [name v]) = [heart]>> then\n        set y to (Y_SHAKE)\n    else\n        if <(letter (1) of (@clone)) = [v]> then\n            set y to ((Y_SHAKE) + (147))\n        else\n            if <(letter (1) of (@clone)) = [d]> then\n                set y to (y_shop)\n                if <touching (mouse-pointer v)?> then\n                    set [brightness v] effect to (5)\n                else\n                    set [brightness v] effect to (0)\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [win!! v]\nrepeat (30)\n    change [ghost v] effect by (10)\nend\nhide\n\nwhen I receive [hide v]\nshow\nif <<<(costume [name v]) = [coins]> or <(@clone) = [shop]>> or <(letter (1) of (@clone)) = [v]>> then\n    repeat (30)\n        change [ghost v] effect by (-10)\n    end\nend\n\ndefine SETUP\ngo to x: (0) y: (0)\nset size to (100) %\nhide\nset [lives v] to [2]\nset [@clone v] to [1]\nrepeat (5)\n    switch costume to (heart v)\n    create clone of (_myself_ v)\n    change [@clone v] by (1)\n    change x by (35)\nend\nswitch costume to (coins v)\nset [@clone v] to [coins]\ncreate clone of (_myself_ v)\nset [openmenu? v] to [0]\nset size to (35) %\nswitch costume to (3a v)\ngo to x: (190) y: (147)\nset [@clone v] to [val1]\nrepeat (3)\n    create clone of (_myself_ v)\n    set [@clone v] to (join [val] ((letter (4) of (@clone)) + (1)))\n    change x by (15)\nend\nset [@clone v] to [d1]\nrepeat (3)\n    create clone of (_myself_ v)\n    set [@clone v] to (join [d] ((letter (2) of (@clone)) + (1)))\nend\nswitch costume to (button v)\nset size to (100) %\nshow\ngo to x: (0) y: (0)\nclear graphic effects\nset [close# v] to [0]\nset [@clone v] to [shop]\nset [clickshop v] to [0]\nset [mousewait v] to [0]\nset [emojichat? v] to [0]\nset [parachute v] to [0]\nset [shop_ghost v] to [100]\n\nwhen flag clicked\nforever\n    go to [front v] layer\nend\n\nwhen I start as a clone\nif <(letter (1) of (@clone)) = [v]> then\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\nelse\nend\n\n@multiplayer v3.0\n\ndefine decode (i)\nset [c1 v] to [1]\nrepeat until <(c1) > (length of (i))>\n    set [output v] to []\n    repeat until <(join (letter (c1) of (i)) (letter ((c1) + (1)) of (i))) < [1]>\n        switch costume to ((join (letter (c1) of (i)) (letter ((c1) + (1)) of (i))) - (9))\n        set [output v] to (join (output) (letter (1) of (costume [name v])))\n        change [c1 v] by (2)\n    end\n    add (output) to [cloud_data v]\n    change [c1 v] by (2)\nend\n\ndefine encode (i)\nset [c1 v] to [1]\nrepeat until <(c1) > (length of (i))>\n    switch costume to (join (letter (c1) of (i)) [x])\n    set [output v] to (join (output) ((costume [number v]) + (9)))\n    change [c1 v] by (1)\nend\nset [output v] to (join (output) [00])\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nsetup\nwait until <(w_Tick) > [3]>\nwait (0.1) seconds\ndetermine_ID\nbroadcast (cloud_players v)\n\ndefine setup\nset [@c v] to [0]\nset [playerid v] to [null]\nset [w_tick v] to [0]\ndelete all of [active_tick v]\ndelete all of [cloud_data v]\ndelete all of [active_check v]\ndelete all of [last_val v]\nset [names v] to [0]\nset [active check v] to [0]\nrepeat (10)\n    add [4] to [active_tick v]\n    add [null] to [active_check v]\n    add [9999] to [last_val v]\nend\nimport_clouddata\nbroadcast (cloud_start v)\n\nwhen I receive [cloud_start v]\nif <(@c) = [0]> then\n    forever\n        process [0]\n        wait (0.4) seconds\n        process [1]\n    end\nend\n\ndefine process (i)\nif <(i) = [0]> then\n    set [c1 v] to [0]\n    repeat (10)\n        change [c1 v] by (1)\n        replace item (c1) of [last_val v] with (item (((c1) * (6)) - (3)) of [cloud_data v])\n    end\nelse\n    set [c1 v] to [0]\n    repeat (10)\n        change [c1 v] by (1)\n        if <(item (((c1) * (6)) - (3)) of [cloud_data v]) = (item (c1) of [last_val v])> then\n            if <(item (c1) of [active_tick v]) < [4]> then\n                replace item (c1) of [active_tick v] with ((item (c1) of [active_tick v]) + (1))\n            end\n        else\n            replace item (c1) of [active_tick v] with [0]\n        end\n        replace item (c1) of [active_check v] with ((1) - <(item (c1) of [active_tick v]) = [4]>)\n    end\n    if <(w_Tick) < [4]> then\n        change [w_tick v] by (1)\n    end\nend\n\nwhen I receive [cloud_start v]\nif <(@c) = [0]> then\n    forever\n        broadcast (cloud_tick v)\n    end\nend\n\ndefine export_clouddata\nset [output v] to []\nencode (round ((SCROLL X) + ([x position v] of [player v])))\nencode (round ((SCROLL Y) + ([y position v] of [player v])))\nencode (pick random (1000) to (9999))\nencode (username)\nencode (chat item)\nencode ([costume name v] of [player v])\nif <(playerID) = [1]> then\n    set [☁ cloud1 v] to (output)\nelse\n    if <(playerID) = [2]> then\n        set [☁ cloud2 v] to (output)\n    else\n        if <(playerID) = [3]> then\n            set [☁ cloud3 v] to (output)\n        else\n            if <(playerID) = [4]> then\n                set [☁ cloud4 v] to (output)\n            else\n                if <(playerID) = [5]> then\n                    set [☁ cloud5 v] to (output)\n                else\n                    if <(playerID) = [6]> then\n                        set [☁ cloud6 v] to (output)\n                    else\n                        if <(playerID) = [7]> then\n                            set [☁ cloud7 v] to (output)\n                        else\n                            if <(playerID) = [8]> then\n                                set [☁ cloud8 v] to (output)\n                            else\n                                if <(playerID) = [9]> then\n                                    set [☁ cloud9 v] to (output)\n                                else\n                                    if <(playerID) = [10]> then\n                                        set [☁ cloud10 v] to (output)\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nstop [this script v]\n\ndefine import_clouddata\ndelete all of [cloud_data v]\ndecode (☁ Cloud1)\ndecode (☁ Cloud2)\ndecode (☁ Cloud3)\ndecode (☁ Cloud4)\ndecode (☁ Cloud5)\ndecode (☁ Cloud6)\ndecode (☁ Cloud7)\ndecode (☁ Cloud8)\ndecode (☁ Cloud9)\ndecode (☁ Cloud10)\nset [active check v] to [0]\nset [c1 v] to [0]\nrepeat (10)\n    change [c1 v] by (1)\n    if <(item (c1) of [active_check v]) = [1]> then\n        change [active check v] by (1)\n    end\nend\n\ndefine determine_ID\nset [c1 v] to [0]\nrepeat (10)\n    change [c1 v] by (1)\n    if (item (c1) of [active_check v]) then\nend\nset [playerid v] to [full]\n\nwhen I receive [cloud_players v]\nif <(@c) = [0]> then\n    wait (0.3) seconds\n    forever\n        check\n    end\nend\n\nwhen I receive [cloud_players v]\nif <(@c) = [0]> then\n    forever\n        export_clouddata\n    end\nend\n\ndefine check\nif <<(username) = (item (((playerID) * (6)) - (2)) of [cloud_data v])> or <<(playerID) = [null]> or <<(playerID) = [full]> or <(playerID) = [error]>>>> then\nif <<key (any v) pressed?> or <mouse down?>> then\n    set [tick_afk v] to [0]\nend\n\nwhen I receive [cloud_start v]\nif <(@c) = [0]> then\n    forever\n        import_clouddata\n    end\nend\n\nwhen I receive [localfade v]\nstop [other scripts in sprite v]\n\nwhen I start as a clone\nset [@c v] to [1]\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (80)\nswitch costume to (connecting v)\nwait (0.4) seconds\nrepeat until <(y position) < [1]>\n    change y by (((-2) - (y position)) / (9))\n    change [ghost v] effect by (-10)\nend\nwait until <(w_Tick) > [3]>\nwait (0.6) seconds\nif <(playerID) = [error]> then\nelse\n    if <(playerID) = [full]> then\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        switch costume to (full v)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait (3) seconds\n        repeat until <(y position) > [80]>\n            change y by (((y position) - (-12)) / (8))\n            change [ghost v] effect by (10)\n        end\n        delete this clone\n    else\n        repeat (10)\n            change [ghost v] effect by (10)\n        end\n        switch costume to (connected v)\n        repeat (10)\n            change [ghost v] effect by (-10)\n        end\n        wait (3) seconds\n        repeat until <(y position) > [80]>\n            change y by (((y position) - (-12)) / (8))\n            change [ghost v] effect by (8)\n        end\n    end\nend\n\nwhen I receive [cloud_tick v]\nif <(@c) = [1]> then\n    go to [front v] layer\nend\n\nwhen I receive [cloud_error v]\nif <(@c) = [1]> then\n    stop [other scripts in sprite v]\n    repeat (10)\n        change [ghost v] effect by (10)\n    end\n    switch costume to (error v)\n    go to x: (0) y: (0)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    wait (3) seconds\n    repeat until <(y position) > [80]>\n        change y by (((y position) - (-12)) / (8))\n        change [ghost v] effect by (10)\n    end\n    delete this clone\nend\n\nwhen flag clicked\nset [tick_afk v] to [0]\nforever\n    wait (1) seconds\n    change [tick_afk v] by (1)\n    if <(tick_afk) > [60]> then\n        if <<(playerID) = [full]> or <(playerID) = [error]>> then\n    end\nend\n\n@@PLAYERS\n\nwhen I receive [cloud_players v]\nswitch costume to (blank v)\nset [@players: @id v] to [1]\nrepeat (10)\n    if <(@PLAYERS: @ID) = (playerID)> then\n    change [@players: @id v] by (1)\nend\ngo to x: (999) y: (999)\n\nwhen I start as a clone\nswitch costume to (3a v)\nset [ghost v] effect to (100)\nsay []\nset rotation style [all around v]\ngo to [front v] layer\n\nwhen flag clicked\nhide\nset [names v] to [0]\n\ndefine @Position XY (@player)\nif <(costume [name v]) = [blank]> then\n    hide\nelse\n    if <(costume [name v]) = [arrow]> then\n        move ((0) - (d)) steps\n    end\n    change x by (((((item (((@player) * (6)) - (5)) of [cloud_data v]) + (([x position v] of [player v]) * (-0.25))) - (SCROLL X)) - (x position)) / (2.5555555))\n    change y by (((((item (((@player) * (6)) - (4)) of [cloud_data v]) + (((-28) - ([y position v] of [player v])) * (0.12))) - (SCROLL Y)) - (y position)) / (2.5555555))\n    go to x: (round (x position)) y: (round (y position))\n    switch costume to (join (item ((@player) * (6)) of [cloud_data v]) [a])\n    show\n    if <<<(x position) < [-250]> or <(x position) > [250]>> or <<(y position) < [-190]> or <(y position) > [190]>>> then\n        switch costume to (arrow v)\n        point in direction (([atan v] of ((x position) / (y position)) ) + (<not <[0] > (y position)>> * (180)))\n        set [d v] to ((32) + ((([abs v] of (x position) ) / (20)) + (([abs v] of (y position) ) / (25))))\n        move (d) steps\n    else\n        if <<<(x position) > [-250]> and <(x position) < [250]>> and <<(y position) < [190]> and <(y position) > [-190]>>> then\n            switch costume to (item ((@player) * (6)) of [cloud_data v])\n            point in direction (90)\n        end\n    end\n    if <(item (@player) of [active_check v]) = [1]> then\n        change [ghost v] effect by (-20)\n        if <<(item (((@player) * (6)) - (1)) of [cloud_data v]) > [9]> or <(item (((@player) * (6)) - (1)) of [cloud_data v]) = [0]>> then\n            if <<(names) = [1]> or <touching (mouse-pointer v)?>> then\n                say (item (((@player) * (6)) - (2)) of [cloud_data v])\n            else\n                if <not <(costume [name v]) = [arrow]>> then\n                    say (item (((@player) * (6)) - (2)) of [cloud_data v])\n                else\n                    say []\n                end\n            end\n        else\n            say (item (item (((@player) * (6)) - (1)) of [cloud_data v]) of [chat list v])\n        end\n    else\n        change [ghost v] effect by (20)\n        say []\n    end\nend\nstop [this script v]\n\nwhen I receive [cloud_tick v]\n@Position XY (@PLAYERS: @ID)\n\n