Castle II Multiplayer Platformer   [#Games #All]
@Stage\n\nwhen flag clicked\nif <(username) = [maDU59_]> then\n    set [coins v] to [999999]\nelse\n    set [coins v] to [0]\nend\n\nwhen flag clicked\nforever\n    switch backdrop to (night v)\nend\n\n@Blank\n\n@Graphics\n\nwhen I receive [tick v]\nGo to (round ((@offset_x) - (SCROLL X))) ((round ((@offset_y) - (SCROLL Y))) + (Y_SHAKE))\n\ndefine Clone (x) (y)\nchange [@offset_x v] by (x)\nchange [@offset_y v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\npoint in direction (90)\nshow\ngo to [back v] layer\nGo to (round ((@offset_x) - (SCROLL X))) ((round ((@offset_y) - (SCROLL Y))) + (Y_SHAKE))\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\nclone\n\ndefine clone\nclear graphic effects\nset [@offset_x v] to [-230]\nset [@offset_y v] to [-80]\nhide\nswitch costume to (2a v)\nClone [0] [0]\nswitch costume to (2a2 v)\nClone [400] [-100]\nswitch costume to (2b v)\nClone [350] [100]\nswitch costume to (2c v)\nClone [740] [195]\nswitch costume to (2d v)\nClone [480] [-150]\nswitch costume to (2e v)\nClone [500] [200]\nswitch costume to (2f v)\nClone [-800] [100]\nswitch costume to (2g v)\nClone [-560] [100]\nset [@offset_x v] to [0]\nset [@offset_y v] to [0]\nswitch costume to (2h2 v)\nClone [733] [616]\nswitch costume to (2h v)\nClone [0] [0]\nswitch costume to (2i v)\nClone [-450] [0]\nswitch costume to (2j v)\nClone [2000] [-100]\n\n@Hitbox\n\nwhen I receive [tick v]\nGo to (round ((@offsetx) + ((0) - (SCROLL X)))) (round ((@offsety) + ((0) - (SCROLL Y))))\n\ndefine Clone (x) (y)\nchange [@offsetx v] by (x)\nchange [@offsety v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\npoint in direction (90)\nshow\nset [ghost v] effect to (100)\nGo to (round ((@offsetx) + ((0) - (SCROLL X)))) (round ((@offsety) + ((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\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\nclone\n\ndefine clone\nset [@offsetx v] to [-230]\nset [@offsety v] to [-80]\nhide\nswitch costume to (2a v)\nClone [0] [0]\nswitch costume to (2a2 v)\nClone [400] [-100]\nswitch costume to (2b v)\nClone [350] [100]\nswitch costume to (2c v)\nClone [740] [195]\nswitch costume to (2d v)\nClone [480] [-150]\nswitch costume to (2e v)\nClone [500] [200]\nswitch costume to (2f v)\nClone [-800] [100]\nswitch costume to (2g v)\nClone [-560] [100]\nset [@offsetx v] to [0]\nset [@offsety v] to [0]\nswitch costume to (2h v)\nClone [733] [616]\nswitch costume to (2i v)\nClone [-450] [0]\nswitch costume to (2j v)\nClone [2000] [-100]\nswitch costume to (blank v)\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)\nset [@offset_x v] to [0]\nset [@offset_y v] to [0]\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 [@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\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]\nhide\nswitch costume to (c1 v)\nClone [883] [-73]\nswitch costume to (c2 v)\nClone [1960] [170]\nswitch costume to (c3 v)\nClone [733] [616]\nswitch costume to (blank v)\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]> and <not <<(costume [name v]) = [c3]> or <(costume [name v]) = [c4]>>>> then\n        switch costume to (sign v)\n        create clone of (_myself_ v)\n        set [@collected? v] to [1]\n        change [exp v] by (1)\n    end\nelse\n    change [ghost v] effect by (-20)\nend\nswitch costume to (blank v)\nset size to (100) %\nswitch costume to (i)\n\nwhen I start as a clone\nif <(costume [name v]) = [sign]> then\n    forever\n        go to [front v] layer\n    end\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 <<<(Crown) = [0]> and <(mousewait) = [0]>> and <(coins) > [39]>> then\n                                        change [coins v] by (-40)\n                                        set [crown 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 [3]\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 [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\nend\n\n@Player\n\nwhen flag clicked\nset [pause? v] to [0]\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)\n    wait until <(pause?) = [0]>\nend\n\ndefine reset\nswitch costume to (3a v)\nclear graphic effects\nset [scroll x v] to [-382]\nset [scroll y v] to [-23]\nset [offset x v] to [-382]\nset [offset y v] to [-10]\nset [xv v] to [0]\nset [yv v] to [0]\nset [in air v] to [0]\npoint in direction (90)\nshow\nif <(username) = [maDU59_]> then\n    set [emojichat? v] to [1]\nend\n\ndefine Physics\nif <(pause) = [0]> then\n    if <touching (lava v)?> then\n        reset\n        broadcast (die v)\n        stop [this script v]\n    end\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        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    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            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    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 <(in air) < [4]> then\n            set [yv v] to [13.4]\n        end\n    end\n    switch costume to (hitbox v)\n    change [yv v] by (-1)\n    Slope\n    if <(YV) < [-10]> then\n        set [yv v] to [-10]\n    end\n    if <(Offset X) < [-452]> then\n        set [offset x v] to [-452]\n    end\n    if <(Offset X) > [3800]> then\n        set [offset x v] to [3800]\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    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 (hitbox v)?> then\n    repeat (10)\n        change [offset y v] by (0.5)\n        position\n        if <not <touching (hitbox v)?>> then\n            stop [this script v]\n        end\n    end\n    change [offset y v] by (-5)\n    repeat until <not <touching (hitbox 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 (hitbox 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)\nSet Costume\n\nwhen I receive [tick v]\nif <not <(chat item) = [0]>> then\n    if <<(chat item) < [10]> or <(chat item) = [16]>> then\n        if <(chat item) = [16]> then\n            say (item (10) of [chat list v])\n        else\n            say (item (chat item) of [chat list v])\n        end\n    end\nelse\n    say []\nend\n\nwhen [c v] key pressed\nif <<(username) = [maDU59_]> or <<(username) = [Matt-Storm]> or <(Win?) = [1]>>> 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 (hitbox v)?> and <(XV) < [-0.01]>> then\n    set [slope v] to [1]\nelse\n    switch costume to (r v)\n    if <<touching (hitbox v)?> and <(XV) > [0.01]>> then\n        set [slope v] to [1]\n    else\n        switch costume to (left2 v)\n        if <<touching (hitbox v)?> and <(XV) > [0.01]>> then\n            switch costume to (right3 v)\n            if <not <touching (hitbox 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 (hitbox v)?> and <(XV) < [-0.01]>> then\n                switch costume to (left3 v)\n                if <not <touching (hitbox 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 <<(Win?) = [1]> or <(Crown) = [1]>> then\n    switch costume to (join (costume [name v]) [crown])\nend\n\nwhen flag clicked\nset [crown v] to [0]\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 chat v] to ((1) - (open chat))\nif <(open chat) = [1]> then\n    ask [Which item of chat?] and wait\n    if << [ghjvbnm] contains (answer)?> or <<(answer) > [0]> and <(answer) < [10]>>> then\n        broadcast (mobile v)\n        if << [ghjvbnm] 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                                    if <(answer) = [m]> then\n                                        if <(username) = [maDU59_]> then\n                                            set [chat item v] to [16]\n                                        end\n                                    else\n                                        set [chat item v] to [15]\n                                    end\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 I receive [reset v]\nreset\n\nwhen I receive [tp v]\nset [scroll x v] to (item (((player select) * (7)) - (6)) of [cloud_data v])\nset [scroll y v] to (item (((player select) * (7)) - (5)) of [cloud_data v])\nset [offset x v] to (item (((player select) * (7)) - (6)) of [cloud_data v])\nset [offset y v] to (item (((player select) * (7)) - (5)) of [cloud_data v])\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.3)\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        go to [front v] layer\n        change [ghost v] effect by (-10)\n    end\n    stop [all v]\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) * (7)) - (4)) 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) * (7)) - (4)) of [cloud_data v]) = (item (c1) of [last_val v])> then\n            if <(item (c1) of [active_tick v]) < [5]> 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]) = [5]>)\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])\nencode (Levier?)\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) * (7)) - (3)) 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\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    if <<not <(username) = [maDU59_]>> and <not <(username) = [Matt-Storm]>>> then\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\n        if <(tick_afk) = [30]> then\n            if <<(playerID) = [full]> or <(playerID) = [error]>> then\n        end\n    end\nend\n\n@Lava\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\nset [offsetx v] to [-350]\nset [offsety v] to [-85]\nhide\nset size to (100) %\nrepeat (1)\n    switch costume to (2a v)\n    repeat (10)\n        if <(pick random (1) to (2)) = [1]> then\n            switch costume to (2b v)\n        else\n            switch costume to (2a v)\n        end\n        Clone [550] [0]\n    end\nend\nswitch costume to (blank v)\n\nwhen I receive [tick v]\nGo to (round (((offsetx) - (SCROLL X)) + ((((days since 2000) * (70000)) * (70)) mod (550)))) ((Y_SHAKE) + (round ((offsety) - (SCROLL Y))))\n\ndefine Clone (x) (y)\nchange [offsetx v] by (x)\nchange [offsety v] by (y)\ncreate clone of (_myself_ v)\n\nwhen I start as a clone\ngo to [back v] layer\npoint in direction (90)\nshow\nset [ghost v] effect to (0)\nGo to (round ((offsetx) - (SCROLL X))) ((Y_SHAKE) + (round ((offsety) - (SCROLL Y))))\n\ndefine Go to (x) (y)\ngo to x: (x) y: (y)\ngo to [back v] layer\ngo [forward v] (5) layers\nif <<<(x position) = (x)> and <(y position) = (y)>> and <(SCROLL X) > [-200]>> then\n    show\nelse\n    hide\nend\n\n@parallax\n\nwhen I receive [tick v]\nGo to (((((@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 [@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\ngo to [back v] layer\n\nwhen flag clicked\ncreate clone of (_myself_ v)\nset [@id v] to [-1]\nswitch costume to (item1 v)\n\n@@PLAYERS\n\nwhen I receive [cloud_players v]\nswitch costume to (blank v)\nset [@id v] to [1]\nrepeat (10)\n    if <(@ID) = (playerID)> then\n    change [@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) * (7)) - (6)) of [cloud_data v]) + (([x position v] of [player v]) * (-0.25))) - (SCROLL X)) - (x position)) / (2.5555555))\n    change y by (((((item (((@player) * (7)) - (5)) 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) * (7)) - (1)) of [cloud_data v]) [a])\n    show\n    if <<<(x position) < [-239]> or <(x position) > [239]>> 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) * (7)) - (1)) 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) * (7)) - (2)) of [cloud_data v]) > [9]> or <(item (((@player) * (7)) - (2)) of [cloud_data v]) = [0]>> then\n            if <<(names) = [1]> or <touching (mouse-pointer v)?>> then\n                say (item (((@player) * (7)) - (3)) of [cloud_data v])\n            else\n                if <not <(costume [name v]) = [arrow]>> then\n                    say (item (((@player) * (7)) - (3)) of [cloud_data v])\n                else\n                    say []\n                end\n            end\n        else\n            say (item (item (((@player) * (7)) - (2)) of [cloud_data v]) of [chat list v])\n            if <(item (((@player) * (7)) - (2)) of [cloud_data v]) = [16]> then\n                say (item (11) of [chat list v])\n            else\n                if <(item (((@player) * (7)) - (2)) of [cloud_data v]) < [10]> then\n                    say (item (item (((@player) * (7)) - (2)) of [cloud_data v]) of [chat list v])\n                end\n            end\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 (@ID)\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)))\nif <(costume [name v]) = [circle]> then\n    point in direction (90)\nend\nif <(costume [name v]) = [spikes]> then\n    point in direction (90)\nend\n\ndefine GO_TO (x) (y)\ngo to x: (x) y: (y)\nif <<([abs v] of (x position) ) < [239]> and <([abs v] of (y position) ) < [180]>> then\n    show\nelse\n    hide\nend\nif <(costume [name v]) = [circle]> then\n    point in direction (90)\nend\n\nwhen I start as a clone\nset size to (30) %\nset rotation style [left-right v]\nif <(costume [name v]) = [goblin1]> 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]) = [jump1]> 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 (jump1 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]) = [circle]> then\n            wait (1) seconds\n            forever\n                if <<touching (player v)?> and <<([x position v] of [player v]) > (x position)> and <([y position v] of [player v]) < ((y position) + (30))>>> then\n                    broadcast (die v)\n                    wait (3) seconds\n                end\n            end\n        else\n            if <(costume [name v]) = [spikes1]> then\n                wait (1) seconds\n                forever\n                    if <touching (player v)?> then\n                        broadcast (die v)\n                        wait (3) seconds\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I start as a clone\nif <(costume [name v]) = [goblin1]> 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 (goblin1 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\nelse\n    if <(costume [name v]) = [circle]> then\n        forever\n            point in direction (90)\n            if <(costume [name v]) = [circle]> then\n                switch costume to (circle2 v)\n            else\n                if <(costume [name v]) = [circle2]> then\n                    switch costume to (circle3 v)\n                else\n                    switch costume to (circle v)\n                end\n            end\n        end\n    end\n    if <(costume [name v]) = [spikes1]> then\n        forever\n            point in direction (90)\n            set [elément? v] to [0]\n            set [up? v] to [0]\n            repeat (10)\n                change [elément? v] by (1)\n                if <<(item ((elément?) * (7)) of [cloud_data v]) = [1]> and <(item (elément?) of [active_check v]) = [1]>> then\n                    change [up? v] by (1)\n                end\n            end\n            if <(up?) > [0]> then\n                set [activate v] to [1]\n                if <(costume [name v]) = [spikes5]> then\n            else\n                set [activate v] to [0]\n                if <(costume [name v]) = [spikes5]> then\n                    switch costume to (spikes4 v)\n                else\n                    if <(costume [name v]) = [spikes4]> then\n                        switch costume to (spikes3 v)\n                    else\n                        if <(costume [name v]) = [spikes3]> then\n                            switch costume to (spikes2 v)\n                        else\n                            if <(costume [name v]) = [spikes2]> then\n                                switch costume to (spikes1 v)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\nCLONE @ [60] [-86] [goblin1] [120]\nCLONE @ [750] [-100] [jump1] [120]\nCLONE @ [1200] [97] [goblin1] [230]\nCLONE @ [1962] [-20] [jump1] [0]\nCLONE @ [2084] [140] [jump1] [0]\nCLONE @ [563] [570] [circle] [0]\nCLONE @ [1588] [365] [goblin1] [250]\nCLONE @ [426] [616] [spikes1] [0]\nswitch costume to (blank v)\n\nwhen I start as a clone\nforever\n    set rotation style [all around v]\n    set [@change_offset v] to [0]\n    point in direction (90)\n    if <not <<(costume [name v]) = [circle]> or <<(costume [name v]) = [circle2]> or <<(costume [name v]) = [circle3]> or <(costume [name v]) = [spikes]>>>>> then\n        set rotation style [left-right v]\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\n    end\nend\n\n@Collectibles\n\nwhen I receive [setup v]\nrepeat (1)\n    delete this clone\nend\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\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]) = [crown]> 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 <(join (letter (1) of (costume [name v])) (letter (2) of (costume [name v]))) = [co]> 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                switch costume to (+1 v)\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\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 flag clicked\nset [loot x v] to [none]\nset [loot y v] to [none]\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\nset [offsetx v] to [-284]\nset [offsety v] to [24]\nhide\nset size to (100) %\nswitch costume to (coin11 v)\nClone [0] [0]\nClone [34] [0]\nClone [34] [0]\nset [offsetx v] to [545]\nset [offsety v] to [-66]\nClone [0] [0]\nClone [33] [19]\nClone [33] [19]\nClone [33] [19]\nset [offsetx v] to [967]\nset [offsety v] to [-79]\nClone [0] [0]\nClone [23] [0]\nClone [0] [34]\nClone [-23] [0]\nset [offsetx v] to [1898]\nset [offsety v] to [278]\nClone [0] [0]\nClone [30] [0]\nset [offsetx v] to [1414]\nset [offsety v] to [134]\nClone [0] [0]\nClone [35] [0]\nClone [35] [0]\nClone [61] [-10]\nClone [35] [0]\nClone [35] [0]\nset [offsetx v] to [1946]\nset [offsety v] to [50]\nClone [0] [0]\nClone [0] [34]\nClone [34] [-34]\nClone [0] [34]\nset [offsetx v] to [2074]\nset [offsety v] to [331]\nClone [0] [0]\nClone [0] [34]\nClone [34] [-34]\nClone [0] [34]\nset [offsetx v] to [2197]\nset [offsety v] to [637]\nClone [-30] [30]\nClone [-30] [34]\nClone [-50] [-10]\nset [offsetx v] to [163]\nset [offsety v] to [616]\nswitch costume to (crown v)\nClone [0] [30]\nset [offsetx v] to [null]\nswitch costume to (blank v)\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 (coin11 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 start as a clone\nif <(costume [name v]) = [coin11]> then\n    forever\n        set size to (30) %\n        if <(costume [name v]) = [+1]> then\n            switch costume to (heart v)\n            set size to (110) %\n        end\n        if <(costume [name v]) = [coin28]> then\n            switch costume to (+1 v)\n        end\n        next costume\n    end\nend\n\n@AlertsUI\n\nwhen I receive [afk v]\nset size to (100) %\nclear graphic effects\ngo to x: (0) y: (0)\nswitch costume to (timeout v)\nshow\ngo to [front v] layer\nset [exit v] to [null]\nstop [all v]\n\nwhen I receive [win!! v]\nset [win v] to [1]\nset [ghost v] effect to (100)\ngo to x: (0) y: (0)\nshow\nswitch costume to (blank v)\nset size to (150) %\nswitch costume to (win screen v)\nrepeat until <(size) < [101]>\n    go to [front v] layer\n    switch costume to (blank v)\n    change size by (((100) - (size)) / (7))\n    switch costume to (win screen v)\n    change [ghost v] effect by (-5)\n    set x to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\n    set y to (((((pick random (0) to (1)) * (2)) - (1)) * ((size) - (100))) * (0.75))\nend\ngo to x: (0) y: (0)\ndraw (round (TIME)) [1]\ndraw (join (exp) (join [/] [2])) [0]\ngo to x: (0) y: (0)\nwait (3) seconds\nset [@id v] to [button]\ncreate clone of (_myself_ v)\n\nwhen I receive [start! v]\nwait until <<mouse down?> or <key (any v) pressed?>>\nforever\n    change [time v] by (1)\n    wait (1) seconds\nend\n\ndefine draw (i) (c)\nclear graphic effects\nif <(c) = [1]> then\n    go to x: ((2) - (((length of (i)) + (5)) * (5.5))) y: (-54)\n    set size to (80) %\n    set [@id v] to [null]\n    switch costume to (time v)\n    create clone of (_myself_ v)\n    change x by (50)\n    change y by (3)\nelse\n    if <(i) = [0/40]> then\n        go to x: (16) y: (-76)\n    else\n        go to x: (20) y: (-76)\n    end\n    set size to (100) %\n    set [@id v] to [null]\n    switch costume to (exp v)\n    create clone of (_myself_ v)\n    if <(i) = [0/40]> then\n        change x by (-53)\n        change y by (3)\n    else\n        change x by (-63)\n        change y by (3)\n    end\nend\nset size to (27) %\nset [brightness v] effect to (20)\nset [c_! v] to [1]\nrepeat (length of (i))\n    switch costume to (join (letter (c_!) of (i)) [a])\n    set [@id v] to [null]\n    create clone of (_myself_ v)\n    change [c_! v] by (1)\n    if <<(costume [name v]) = [/a]> or <(costume [name v]) = [1a]>> then\n        change x by (9)\n    else\n        change x by (12)\n    end\nend\nset size to (100) %\nswitch costume to (win screen v)\ngo to x: (0) y: (0)\nclear graphic effects\n\nwhen I start as a clone\nif <(@id) = [null]> then\n    go to [front v] layer\n    show\n    set [ghost v] effect to (100)\n    repeat (10)\n        change [ghost v] effect by (-10)\n    end\n    forever\n        go to [front v] layer\n    end\nelse\n    if <(@id) = [button]> then\n        go to x: (0) y: (0)\n        switch costume to (continue00 v)\n        show\n        set size to (80) %\n        set [ghost v] effect to (100)\n        repeat until <(size) > [99]>\n            change [ghost v] effect by (-10)\n            change size by (((102) - (size)) / (7))\n            go to [front v] layer\n        end\n        forever\n            go to [front v] layer\n            switch costume to (c1 v)\n            if <touching (mouse-pointer v)?> then\n                switch costume to (continue10 v)\n                if <mouse down?> then\n                    change [coins v] by (25)\n                    set [win? v] to [1]\n                    set [win v] to [0]\n                    set [crown v] to [1]\n                    broadcast (hide v)\n                    set [click2 v] to [0]\n                    repeat (10)\n                        change [ghost v] effect by (10)\n                    end\n                    delete this clone\n                end\n            else\n                switch costume to (c2 v)\n                if <touching (mouse-pointer v)?> then\n                    switch costume to (continue01 v)\n                    if <mouse down?> then\n                        repeat (10)\n                            change [ghost v] effect by (10)\n                        end\n                        delete this clone\n                    end\n                else\n                    switch costume to (continue00 v)\n                end\n            end\n        end\n    else\n        if <(@id) = [lovefav]> then\n            go to x: (0) y: (0)\n            show\n            switch costume to (lovefav v)\n            set [ghost v] effect to (100)\n            set size to (50) %\n            repeat until <(size) > [100]>\n                go to [front v] layer\n                change size by (((102) - (size)) / (7))\n                change [ghost v] effect by (-8)\n            end\n            wait (2) seconds\n            repeat until <(size) < [50]>\n                go to [front v] layer\n                change size by (((size) - (110)) / (8))\n                change [ghost v] effect by (10)\n            end\n        end\n    end\nend\n\nwhen I receive [hide v]\ngo to x: (1) y: (0)\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen flag clicked\nset [win v] to [0]\nset [exit v] to [reg]\nhide\nset [pause v] to [0]\nwait (1) seconds\nforever\n    if <(lives) < [1]> then\n        wait (0.3) seconds\n        set [ghost v] effect to (100)\n        go to x: (0) y: (0)\n        switch costume to (over v)\n        show\n        go to [front v] layer\n        set size to (50) %\n        set [pause v] to [1]\n        repeat until <(size) > [100]>\n            go to [front v] layer\n            change size by (((102) - (size)) / (7))\n            change [ghost v] effect by (-8)\n        end\n        wait (1) seconds\n        repeat until <(size) < [50]>\n            go to [front v] layer\n            change size by (((size) - (110)) / (8))\n            change [ghost v] effect by (10)\n        end\n        set [lives v] to [2]\n        set [coins v] to [0]\n        set [pause v] to [0]\n        set [emojichat? v] to [0]\n        broadcast (start! v)\n        broadcast (setup v)\n        broadcast (reset v)\n        hide\n    end\nend\n\nwhen I receive [alert v]\nset [@id v] to [lovefav]\ncreate clone of (_myself_ v)\n\nwhen I receive [afk preview v]\nset [ghost v] effect to (0)\nshow\ngo to x: (0) y: (0)\nwait (10) seconds\nbroadcast (hide v)\n\nwhen flag clicked\nset [click2 v] to [0]\nset [pause? v] to [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        change [coins v] by (10)\n        broadcast (alert v)\n        stop [this script v]\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@EMOJI\n\nwhen I receive [cloud_players v]\nset [@id v] to [1]\nrepeat (10)\n    create clone of (_myself_ v)\n    change [@id v] by (1)\nend\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 (((@ID) * (7)) - (2)) of [cloud_data v]) < [16]> and <(item (((@ID) * (7)) - (2)) of [cloud_data v]) > [9]>> and <(item (@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 (((@ID) * (7)) - (2)) of [cloud_data v]))\n    repeat until <<not <(costume [name v]) = (join [emoji] (item (((@ID) * (7)) - (2)) of [cloud_data v]))>> or <(item (@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) * (7)) - (6)) 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) * (7)) - (5)) 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 (@ID)\n\n@Notifications\n\nwhen I receive [tick v]\ngo to [front v] layer\n\nwhen flag clicked\nshow\ngo to x: (0) y: (55)\nset [ghost v] effect to (100)\n\nwhen I receive [exp v]\nwait (0.3) seconds\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nswitch costume to (join [s] (exp))\ngo to x: (0) y: (55)\nrepeat until <(y position) < [5]>\n    change [ghost v] effect by (-8)\n    change y by (((2) - (y position)) / (7))\nend\nwait (3) seconds\nrepeat until <(y position) > [53]>\n    change y by (((y position) + (3)) / (7))\n    change [ghost v] effect by (8)\nend\nset y to (55)\n\nwhen I receive [purch v]\nstop [other scripts in sprite v]\nrepeat (5)\n    change [ghost v] effect by (20)\nend\nswitch costume to (buy v)\ngo to x: (0) y: (55)\nrepeat until <(y position) < [5]>\n    change [ghost v] effect by (-8)\n    change y by (((2) - (y position)) / (7))\nend\nwait (3) seconds\nrepeat until <(y position) > [53]>\n    change y by (((y position) + (3)) / (7))\n    change [ghost v] effect by (8)\nend\nset y to (55)\n\n@Interface Win\n\nwhen I start as a clone\nforever\n    show\n    if <(costume [name v]) = [Interface tuto]> then\n        wait (5) seconds\n        wait until <<key (any v) pressed?> or <mouse down?>>\n        delete this clone\n    end\n    if <(costume [name v]) = [Tp]> then\n        if <<<touching (mouse-pointer v)?> and <mouse down?>> or <key (d v) pressed?>> then\n            set [pause? v] to [1]\n            set [player select v] to [1]\n            show variable [name v]\n            switch costume to (tp interface 1 v)\n            repeat until <<touching (mouse-pointer v)?> and <<mouse down?> and <(mouse x) > [170]>>>\n                set [name v] to (item (((player select) * (7)) - (3)) of [cloud_data v])\n                if <<touching (mouse-pointer v)?> and <mouse down?>> then\n                    if <<(mouse x) > [110]> and <(mouse x) < [150]>> then\n                        set [player select v] to (((player select) + (1)) mod (10))\n                    end\n                    if <(mouse x) < [-108]> then\n                        set [player select v] to (((player select) - (1)) mod (10))\n                    end\n                    wait until <<not <mouse down?>> or <not <touching (mouse-pointer v)?>>>\n                end\n                if <(item (player select) of [active_check v]) = [1]> then\n                    switch costume to (tp interface 1 v)\n                else\n                    switch costume to (tp interface 2 v)\n                end\n            end\n            set [pause? v] to [0]\n            hide variable [name v]\n            switch costume to (tp v)\n            broadcast (Tp v)\n        end\n    end\nend\n\nwhen I receive [win!! v]\nhide\nwait until <(Win?) = [1]>\nswitch costume to (interface tuto v)\ncreate clone of (_myself_ v)\nswitch costume to (tp v)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [pause? v] to [0]\nhide\nset [win? v] to [0]\n\n@leviers\n\nwhen flag clicked\nset [bounce???? v] to [0]\nhide\n\ndefine CLONE @ (x) (y)\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)))\nif <(costume [name v]) = [circle]> then\n    point in direction (90)\nend\n\ndefine GO_TO (x) (y)\nswitch costume to (levier v)\ngo to x: (x) y: (y)\nif <<([abs v] of (x position) ) < [234]> and <([abs v] of (y position) ) < [153]>> then\n    show\nelse\n    hide\nend\nif <<touching (player v)?> and <<(Levier?) = [0]> and <(levier usable?) = [1]>>> then\n    switch costume to (levier3 v)\n    if <<key (e v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n        set [levier? v] to [1]\n    end\nend\nif <<(Levier?) = [1]> or <(activate) = [1]>> then\n    switch costume to (levier2 v)\n    if <<(activate) = [1]> and <(Levier?) = [0]>> then\n        broadcast (t v)\n    end\nend\n\nwhen I receive [setup v]\nset size to (100) %\npoint in direction (90)\nrepeat (1)\n    delete this clone\nend\nswitch costume to (levier v)\nCLONE @ [235] [616]\nswitch costume to (blank v)\n\nwhen flag clicked\nforever\n    set [levier usable? v] to [1]\n    wait until <(Levier?) = [1]>\n    set [levier usable? v] to [0]\n    set [levier timer v] to ((TIME) + (20))\n    wait until <(TIME) = (levier timer)>\n    set [levier? v] to [0]\n    wait (30) seconds\n    set [levier usable? v] to [1]\nend\n\nwhen I receive [t v]\nwait until <(activate) = [0]>\nset [levier usable? v] to [0]\nwait (30) seconds\nset [levier usable? v] to [1]\n\n@Chat\n\nwhen flag clicked\nset [click2 v] to [0]\nset [ghost v] effect to (100)\nset [open chat v] to [0]\ndelete all of [chat list v]\nadd [Hello!] 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]\nadd [I am the creator] to [chat list v]\nhide\nset [ghost v] to [100]\nset [open chat 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 chat) = [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 chat) = [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 (m v) pressed?> then\n            reset\n            set [chat item v] to [16]\n            wait until <not <key (m 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 chat 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 chat v] to ((1) - (open chat))\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@report\n\nwhen flag clicked\nforever\n    go to x: (5) y: (-53)\n    switch costume to (costume1 v)\n    set [report v] to <<touching (mouse-pointer v)?> or <<touching (mouse-pointer v)?> and <mouse down?>>>\n    if <(report) = [true]> then\n        go to x: (0) y: (0)\n        switch costume to (costume2 v)\n        show\n        go to [front v] layer\n    else\n        hide\n    end\nend\n\n
En:                            5eme des tendances/top loved\n•arrow keys, WASD or touch for move\n•T or click on your characters for open the tchat\nGo to the crown for win. After you got the crown, you can fly, you tp to the player of your choice, activate trap...\nThanks to @Stratfordjames for the shop interface designs, the moon designs, the tchat designs, emoji designs, enemies designs and online (I don't know if this engine is better griffpatch engine)