Realms OG PROJECT - A cloud multiplayer scrolling mobile platformer #Games #games

Instructions: SEQUEL COMING OUT WHEN IT GETS TO 1K LOVES :D\nYAY THANKS SCRATCH TEAM FOR RESHARING IT :D\nOG project!\nREAD BELOW\nDOUBLE CLICK THE GREEN THINGY XD\nAND there is checkpoints\n#1 on games! :O thx guys!\n#2 on trending! XD\nHOW TO PLAY\n-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-\n-How to move: Touchscreen for mobile, Arrow keys for computer\n-T to chat\n-Don't touch lava or spikes or lazer or poisonous water\n-Love and Fav\n-Say hi to me\n-Follow me\n\nLog:\n1000 views!\n100 loves!\n100 favs!\n5 remixes!\n1500 views!\n150 loves!\n150 favs!\n2000 views!\n200 loves!\n10 remixes!\n250 loves!\n3000 views!\n300 loves! :O\n250 faves! :O\n300 faves :D\n400 loves!\n600 loves :OOOO\n500 FAVES :OOOOO\n6000 VIEWS :OOOO \n700 loves :OO\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n#all\n#games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games  #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games  \n#games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games  #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games #games  

@Stage\n\nwhen I receive [end intro v]\nforever\n    play sound (pick random (1) to (10)) until done\nend\n\n@player\n\ndefine Chat\nif <(is the chat open) = [1]> then\n    if <key (1 v) pressed?> then\n        set [chat v] to [1]\n        say (item (Chat) of [chat v])\n        wait (2) seconds\n        say []\n        set [chat v] to [0]\n    else\n        if <key (2 v) pressed?> then\n            set [chat v] to [2]\n            say (item (Chat) of [chat v])\n            wait (2) seconds\n            say []\n            set [chat v] to [0]\n        else\n            if <key (3 v) pressed?> then\n                set [chat v] to [3]\n                say (item (Chat) of [chat v])\n                wait (2) seconds\n                say []\n                set [chat v] to [0]\n            else\n                if <key (4 v) pressed?> then\n                    set [chat v] to [4]\n                    say (item (Chat) of [chat v])\n                    wait (2) seconds\n                    say []\n                    set [chat v] to [0]\n                else\n                    if <key (5 v) pressed?> then\n                        set [chat v] to [5]\n                        say (item (Chat) of [chat v])\n                        wait (2) seconds\n                        say []\n                        set [chat v] to [0]\n                    else\n                        if <key (6 v) pressed?> then\n                            set [chat v] to [6]\n                            say (item (Chat) of [chat v])\n                            wait (2) seconds\n                            say []\n                            set [chat v] to [0]\n                        else\n                            if <key (7 v) pressed?> then\n                                set [chat v] to [7]\n                                say (item (Chat) of [chat v])\n                                wait (2) seconds\n                                say []\n                                set [chat v] to [0]\n                            else\n                                if <key (8 v) pressed?> then\n                                    set [chat v] to [8]\n                                    say (item (Chat) of [chat v])\n                                    wait (2) seconds\n                                    say []\n                                    set [chat v] to [0]\n                                else\n                                    if <key (9 v) pressed?> then\n                                        set [chat v] to [9]\n                                        say (item (Chat) of [chat v])\n                                        wait (2) seconds\n                                        say []\n                                        set [chat v] to [0]\n                                    else\n                                        set [chat v] to [0]\n                                    end\n                                end\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine Position\ngo to x: ((x) - (SCROLL X)) y: ((y) - (SCROLL Y))\n\nwhen flag clicked\nset [scroll y v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nshow list [chat v]\nbroadcast (GREEN FLAG v) and wait\nbroadcast (PLAY GAME v) and wait\n\ndefine CHANGE PLAYER Y BY (sy)\nchange [y v] by (sy)\nchange [inair v] by (1)\nPosition\nrepeat until <not <touching (platform v)?>>\n    if <(sy) > [0]> then\n        change [y v] by (-1)\n    else\n        change [y v] by (1)\n        set [inair v] to [0]\n    end\n    Position\n    set [sy v] to [0]\nend\n\ndefine GAME ON\nset [sy v] to [0]\nset [sx v] to [0]\nset [inair v] to [0]\nset [exit v] to []\nset size to (75) %\nset [ghost v] effect to (0)\nshow\nif <(Checkpoint) = [0]> then\n    set [x v] to [0]\n    set [y v] to [0]\n    set [scroll x v] to [0]\n    set [scroll y v] to [0]\nelse\n    if <(Checkpoint) = [1]> then\n        set [x v] to [2700]\n        set [y v] to [-30]\n        set [scroll x v] to [2700]\n        set [scroll y v] to [-30]\n    else\n        if <(Checkpoint) = [2]> then\n            set [x v] to [4400]\n            set [y v] to [42]\n            set [scroll x v] to [4400]\n            set [scroll y v] to [42]\n        end\n    end\nend\n\nwhen I receive [green flag v]\nhide\ngo to [front v] layer\ngo [backward v] (1) layers\n\ndefine Game-Win\nrepeat (50)\n    point towards (exit v)\n    turn right (65) degrees\n    move ((distance to [exit v]) / (2)) steps\n    change size by (-1)\n    change [ghost v] effect by (2)\nend\nhide\nchange [level v] by (1)\nwait (1) seconds\n\ndefine TICK\nif <(shop?) = [no]> then\n    if <<<(mouse x) < (x position)> and <mouse down?>> or <<key (left arrow v) pressed?> or <key (a v) pressed?>>> then\n        change [sx v] by (-2)\n    end\n    if <<<(x position) < (mouse x)> and <mouse down?>> or <<key (right arrow v) pressed?> or <key (d v) pressed?>>> then\n        change [sx v] by (2)\n    end\n    set [sx v] to ((SX) * (0.8))\n    if <[0.9] < ([abs v] of (SX) )> then\n        CHANGE PLAYER X By (round (SX))\n    end\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(inair) < [4]> then\n            set [sy v] to [16]\n        end\n    end\n    if <(sy) > [-20]> then\n        change [sy v] by (-2)\n    end\n    if <touching (water v)?> then\n        set [sy v] to [0]\n        change [sy v] by (-1.5)\n        if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n            set [sy v] to [5]\n        end\n    end\n    CHANGE PLAYER Y BY (sy)\n    TEST-DIE\n    change [scroll x v] by (round (((x) - (SCROLL X)) / (8)))\n    if <(SCROLL X) < [0]> then\n        set [scroll x v] to [0]\n    end\n    if <[222222222222222222] < (SCROLL X)> then\n        set [scroll x v] to [22222222222222222]\n    end\n    change [scroll y v] by (round (((y) - (SCROLL Y)) / (8)))\n    if <(SCROLL Y) < [-500]> then\n        set [scroll y v] to [-500]\n    end\n    Position\n    if <(y) < [-500]> then\n        set [exit v] to [die]\n    end\nend\n\nwhen I receive [begin v]\nset [is the chat open v] to [0]\nshow list [chat v]\nforever\n    Chat\n    if <<key (t v) pressed?> or <<touching (mouse-pointer v)?> and <mouse down?>>> then\n        if <(is the chat open) = [1]> then\n            show list [chat v]\n            set [is the chat open v] to [0]\n        else\n            set [is the chat open v] to [1]\n            hide list [chat v]\n        end\n        wait until <<not <<touching (mouse-pointer v)?> and <mouse down?>>> and <not <key (t v) pressed?>>>\n    end\nend\n\ndefine GAME - DIE\nset [exit v] to []\nhide\n\ndefine TEST-DIE\nif <touching (dangers  v)?> then\n    set [exit v] to [die]\nend\n\ndefine CHANGE PLAYER X By (sx)\nchange [x v] by (sx)\nPosition\nif <touching (platform v)?> then\n    repeat (18)\n        change [y v] by (1)\n        Position\n        if <not <touching (platform v)?>> then\n            stop [this script v]\n        end\n    end\n    change [y v] by (-18)\n    if <<<(y position) < (mouse y)> and <mouse down?>> or <<key (up arrow v) pressed?> or <key (w v) pressed?>>> then\n        if <(sx) > [0]> then\n            set [sx v] to [-16]\n        else\n            set [sx v] to [16]\n        end\n        set [inair v] to [0]\n    else\n        set [sx v] to [0]\n    end\n    repeat until <not <touching (platform v)?>>\n        if <(sx) > [0]> then\n            change [x v] by (-1)\n        else\n            change [x v] by (1)\n        end\n        Position\n    end\nend\n\nwhen flag clicked\nhide\nset [max players v] to [8]\nset [my player # v] to [0]\nbroadcast (setups v) and wait\nbroadcast (intro v)\n\ndefine write (val) to encoded\nset [letter # v] to [1]\nrepeat (length of (val))\n    set [encodied v] to (join (encodied) (item # of (letter (letter #) of (val)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encodied v] to (join (encodied) [00])\n\nwhen I receive [begin v]\nset [level v] to [1]\nforever\n    broadcast (reset v) and wait\n    broadcast (SETUP v) and wait\n    GAME ON\n    repeat until <(EXIT) > []>\n        TICK\n        broadcast (tick v)\n        if <(My Player #) > [0]> then\n            send cloud data\n        end\n    end\n    if <(EXIT) = [win]> then\n        Game-Win\n    else\n        GAME - DIE\n    end\nend\n\ndefine set cloud # (player) to (value)\nif <(player) = [1]> then\n    set [☁ p1 v] to (value)\nelse\n    if <(player) = [2]> then\n        set [☁ p2 v] to (value)\n    else\n        if <(player) = [3]> then\n            set [☁ p3 v] to (value)\n        else\n            if <(player) = [4]> then\n                set [☁ p4 v] to (value)\n            else\n                if <(player) = [5]> then\n                    set [☁ p5 v] to (value)\n                else\n                    if <(player) = [6]> then\n                        set [☁ p6 v] to (value)\n                    else\n                        if <(player) = [7]> then\n                            set [☁ p7 v] to (value)\n                        else\n                            if <(player) = [8]> then\n                                set [☁ p8 v] to (value)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine send cloud data\nset [encodied v] to []\nwrite (username) to encoded\nwrite (round ((timer) * (10))) to encoded\nwrite (x) to encoded\nwrite (y) to encoded\nwrite (Chat) to encoded\nwrite (costume [number v]) to encoded\nset cloud # (My Player #) to (encodied)\n\nwhen I receive [begin v]\nwait (5) seconds\nswitch backdrop to (blank v)\n\nwhen I receive [end intro v]\nbroadcast (joining v)\nbroadcast (join game v) and wait\nif <(My Player #) > [0]> then\n    start sound [Connect v]\n    broadcast (joined v)\nelse\n    start sound [Disconnect v]\n    broadcast (full v)\nend\nbroadcast (begin v)\n\nshow\n\nwhen flag clicked\nhide\nswitch costume to (normal v)\n\nwhen I receive [enemy - die v]\nset [sy v] to [10]\n\nwhen I receive [joined v]\nhide\ngo to [back v] layer\n\nforever\nend\n\nwhen I receive [joined v]\nwait (3) seconds\nforever\n    if <(shop?) = [no]> then\n        show\n    else\n        hide\n    end\nend\n\nwhen I receive [end game v]\nhide\nhide\n\nwhen I receive [end intro v]\nwait (4) seconds\ngo to [front v] layer\nshow\n\n@opponents\n\ndefine Decode chat (chat)\nif <(chat) = [0]> then\n\ndefine begin decode of (encode)\nset [encodied v] to (encode)\nset [letter # v] to [1]\n\ndefine value=read from encode\nset [value v] to []\nforever\n    set [idx v] to (join (letter (letter #) of (encodied)) (letter ((letter #) + (1)) of (encodied)))\n    change [letter # v] by (2)\n    if <(idx) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (value) (item (idx) of [code v]))\nend\n\ndefine setup players\nset [color v] effect to (0)\nset [offline v] to [100]\nhide\nset [player # v] to [1]\nrepeat ((MAX PLAYERS) - (1))\n    create clone of (_myself_ v)\n    change [player # v] by (1)\nend\n\nwhen I receive [begin v]\nforever\n    if <(My Player #) = (player #)> then\n        hide\n        set [offline v] to [100]\n    else\n        tick\n    end\n    go to [back v] layer\nend\n\ndefine value=Cloud # (player)\nif <(player) = [1]> then\n    set [value v] to (☁ P1)\nelse\n    if <(player) = [2]> then\n        set [value v] to (☁ P2)\n    else\n        if <(player) = [3]> then\n            set [value v] to (☁ P3)\n        else\n            if <(player) = [4]> then\n                set [value v] to (☁ P4)\n            else\n                if <(player) = [5]> then\n                    set [value v] to (☁ P5)\n                else\n                    if <(player) = [6]> then\n                        set [value v] to (☁ P6)\n                    else\n                        if <(player) = [7]> then\n                            set [value v] to (☁ P7)\n                        else\n                            if <(player) = [8]> then\n                                set [value v] to (☁ P8)\n                            end\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [setups v]\nsetup players\n\ndefine tick\nvalue=Cloud # (player #)\nif <(join [A] (value)) = (last value)> then\n    change [offline v] by (1)\n    if <(offline) = [100]> then\n        hide\n    end\nelse\n    set [last value v] to (join [A] (value))\n    if <(offline) > [99]> then\n        show\n    end\n    set [offline v] to [0]\nend\nbegin decode of (value)\nvalue=read from encode\nif <(names) = [1]> then\n    say (join (player #) (join [:] (value)))\nelse\n    say []\nend\nvalue=read from encode\nvalue=read from encode\nset x to ((value) - (SCROLL X))\nvalue=read from encode\nset y to ((value) - (SCROLL Y))\nvalue=read from encode\nDecode chat (value)\nvalue=read from encode\nswitch costume to (value)\n\nwhen I receive [join game v]\nvalue=Cloud # (player #)\nset [last value v] to (join [A] (value))\nwait (3) seconds\nvalue=Cloud # (player #)\nif <(join [A] (value)) = (last value)> then\n    set [my player # v] to (player #)\nend\n\nwhen I receive [begin v]\nset [names v] to [1]\nforever\n    if <key (n v) pressed?> then\n        if <(names) = [1]> then\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [0]\n        else\n            wait until <not <key (n v) pressed?>>\n            set [names v] to [1]\n        end\n    end\nend\n\nwhen flag clicked\nset size to (75) %\n\n@Sprite3\n\nwhen I receive [fade v]\ndelete this clone\n\nwhen I start as a clone\nif <(id) = [0]> then\n    go to x: (0) y: (0)\n    point in direction (90)\n    show\n    switch costume to (background v)\n    go to [back v] layer\n    forever\n        if <(uservanish) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (background v)\n            go to [back v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            wait (0.4) seconds\n            repeat (20)\n                change [ghost v] effect by (5)\n            end\n            delete this clone\n        end\n    end\nend\nif <(id) = [1]> then\n    go to x: (700) y: (0)\n    show\n    point in direction (90)\n    go to [front v] layer\n    Smooth Glide to x [0] y [0] Speed [4]\n    hide\n    delete this clone\nend\nif <(id) = [2]> then\n    set size to (0) %\n    show\n    switch costume to (untitled design \(10\) v)\n    go to [front v] layer\n    go to x: (0) y: (35)\n    repeat (16)\n        turn right (22.5) degrees\n        change size by (6.25)\n    end\n    point in direction (90)\n    set size to (100) %\n    forever\n        if <(end?) = [0]> then\n            point in direction ((([cos v] of ((sine) * (18)) ) * (10)) + (90))\n            change [sine v] by (1)\n        else\n            repeat (24)\n                turn right (-16.875) degrees\n                change size by (-4.6875)\n            end\n            broadcast (fade v)\n            delete this clone\n        end\n    end\nend\nif <(id) = [3]> then\n    point in direction (90)\n    wait (0.5) seconds\n    set [ghost v] effect to (0)\n    switch costume to (username v)\n    go to [front v] layer\n    go [backward v] (1) layers\n    show\n    go to x: (700) y: (0)\n    Smooth Glide to x [0] y [0] Speed [4]\n    forever\n        if <(uservanish) = [0]> then\n            set [ghost v] effect to (0)\n            switch costume to (username v)\n            go to [front v] layer\n            go [backward v] (1) layers\n            show\n            go to x: (0) y: (0)\n        else\n            Smooth Glide to x [0] y [25] Speed [3]\n            Smooth Glide to x [0] y [-99] Speed [3]\n            delete this clone\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\nset volume to (100) %\nwait (7) seconds\nset [end? v] to [1]\nset [uservanish v] to [1]\n\nwhen I receive [fade v]\nrepeat (10)\n    change volume by (-10)\nend\nstop all sounds\n\ndefine Smooth Glide to x (x) y (y) Speed (s)\nrepeat until <<(round (x position)) = (x)> and <(round (y position)) = (y)>>\n    change x by (((x) - (x position)) / (s))\n    change y by (((y) - (y position)) / (s))\nend\ngo to x: (x) y: (y)\n\ngo to [front v] layer\n\nbroadcast (end intro v)\n\nwhen I receive [intro v]\nset [end? v] to [0]\nstart sound [Inferno4 v]\nhide\nset [uservanish v] to [0]\nset [sine v] to [0]\nset [id v] to [0]\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\nrepeat (3)\n    switch costume to (slide v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\n    switch costume to (slide2 v)\n    create clone of (_myself_ v)\n    wait (0.1) seconds\nend\nswitch costume to (background v)\ncreate clone of (_myself_ v)\nwait (0.8) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (0.1) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\nwait (5) seconds\nbroadcast (end intro v)\n\n@Sprite1\n\nwhen flag clicked\nset [timer v] to [0]\nhide variable [timer v]\n\nwhen I receive [end intro v]\nshow variable [timer v]\nshow\ngo to x: (36) y: (28)\nset [timer v] to [0]\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\n    change [timer v] by (1)\n    wait (1) seconds\nend\n\nwhen I receive [end game v]\nshow variable [timer v]\nshow\ngo to x: (36) y: (28)\nforever\n    go to [front v] layer\n    go [forward v] (1) layers\nend\n\n@end game\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Checkpoint : x) - (SCROLL X)) ((Checkpoint : y) - (SCROLL Y))\nif <(costume [number v]) = [1]> then\n    if <touching (player v)?> then\n        broadcast (end game v)\n        start sound [CHECKPOINT v]\n        stop [all v]\n    end\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\ndefine Clone at x: (x) y: (y)\nset [checkpoint : x v] to (x)\nset [checkpoint : y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [checkpoint : x v] to [0]\nset [checkpoint : y v] to [0]\nset [checkpoint v] to [0]\nswitch costume to (end v)\nhide\nif <(LEVEL) = [1]> then\n    Clone at x: [6100] y: [1200]\nend\nset [checkpoint : x v] to [-99999]\n\nset [scroll x v] to [6100]\nset [scroll y v] to [1200]\n\n@Checkpoint \n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPosition ((Checkpoint : x) - (my variable)) ((Checkpoint : y) - (SCROLL Y))\nif <(costume [number v]) = [2]> then\n    if <touching (player v)?> then\n        start sound [CHECKPOINT v]\n        switch costume to (checkpoint open v)\n        change [checkpoint v] by (1)\n    end\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\ndefine Clone at x: (x) y: (y)\nset [checkpoint : x v] to (x)\nset [checkpoint : y v] to (y)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [checkpoint : x v] to [0]\nset [checkpoint : y v] to [0]\nset [checkpoint v] to [0]\nswitch costume to (checkpoint closed v)\nhide\nif <(LEVEL) = [1]> then\n    Clone at x: [2700] y: [-32]\n    Clone at x: [4400] y: [40]\nend\nset [checkpoint : x v] to [-99999]\n\n@water\n\nwhen I receive [green flag v]\ngo to [back v] layer\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    CLONE AT X [420] Y [0]\n    CLONE AT X [420] Y [0]\n    CLONE AT X [555] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [470] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [500] Y [0]\n    CLONE AT X [550] Y [0]\n    CLONE AT X [550] Y [0]\n    CLONE AT X [550] Y [0]\n    CLONE AT X [550] Y [0]\nend\n\ndefine POSTION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine CLONE AT X (x) Y (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\nwhen I start as a clone\nif <(costume [number v]) = [3]> then\n    forever\n        repeat (20)\n            change [y v] by (-0.25)\n        end\n        repeat (20)\n            change [y v] by (0.25)\n        end\n    end\nend\n\n@art\n\nwhen I receive [green flag v]\ngo to [back v] layer\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (my variable)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    CLONE AT X [420] Y [0]\n    CLONE AT X [420] Y [0]\n    CLONE AT X [555] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [470] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [500] Y [0]\n    CLONE AT X [550] Y [0]\n    CLONE AT X [550] Y [500]\n    CLONE AT X [550] Y [500]\n    CLONE AT X [550] Y [500]\nend\n\nCLONE AT X [420] Y [0]\nCLONE AT X [420] Y [0]\nCLONE AT X [555] Y [0]\nCLONE AT X [400] Y [0]\nCLONE AT X [400] Y [0]\nCLONE AT X [470] Y [0]\nCLONE AT X [400] Y [0]\nCLONE AT X [500] Y [0]\nCLONE AT X [550] Y [0]\nCLONE AT X [550] Y [0]\nCLONE AT X [550] Y [0]\nCLONE AT X [550] Y [0]\n\ndefine POSTION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine CLONE AT X (x) Y (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen flag clicked\nforever\n    go to [back v] layer\nend\n\n@joining\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [joining v]\nswitch costume to (joining v)\nshow\n\nwhen I receive [joined v]\nswitch costume to (joined v)\nshow\n\nwhen I receive [full v]\nswitch costume to (joined2 v)\nshow\n\n@DANGERs \n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nshow\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    CLONE AT X [420] Y [0]\n    CLONE AT X [420] Y [0]\n    CLONE AT X [555] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [450] Y [0]\n    CLONE AT X [480] Y [50]\n    CLONE AT X [480] Y [0]\n    CLONE AT X [550] Y [0]\nend\n\ndefine POSTION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    set [ghost v] effect to (0)\nelse\n    set [ghost v] effect to (100)\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine CLONE AT X (x) Y (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\npoint in direction (90)\n\nwhen flag clicked\ngo to [front v] layer\ngo to [front v] layer\ngo to [front v] layer\n\nwhen I start as a clone\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [5]> then\n        point in direction (90)\n        forever\n            hide\n            wait (1.5) seconds\n            show\n            wait (1.5) seconds\n        end\n    end\nend\n\nwhen flag clicked\n\nwhen flag clicked\n\nwhen I start as a clone\nforever\n    if <(costume [number v]) = [7]> then\n        repeat (50)\n            change [y v] by (-1)\n        end\n        wait (1) seconds\n        repeat (50)\n            change [y v] by (1)\n        end\n        wait (1) seconds\n    end\nend\n\nforever\n\nCLONE AT X [550] Y [0]\nCLONE AT X [550] Y [0]\nCLONE AT X [550] Y [0]\n\nwhen I receive [joined v]\nwait (4) seconds\nshow\n\n@PLATFORM\n\nwhen I receive [green flag v]\nhide\n\nwhen I receive [tick v]\nPOSTION ((x) - (SCROLL X)) ((y) - (SCROLL Y))\n\nwhen I receive [setup v]\nhide\nset [x v] to [0]\nset [y v] to [0]\nif <(LEVEL) = [1]> then\n    switch costume to (level 1 1 v)\n    CLONE AT X [420] Y [0]\n    CLONE AT X [420] Y [0]\n    CLONE AT X [555] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [470] Y [0]\n    CLONE AT X [400] Y [0]\n    CLONE AT X [500] Y [0]\n    CLONE AT X [550] Y [0]\n    CLONE AT X [550] Y [500]\n    CLONE AT X [550] Y [500]\n    CLONE AT X [550] Y [500]\nend\n\ndefine POSTION (x) (y)\ngo to x: (x) y: (y)\nif <<(x) = (x position)> and <(y) = (y position)>> then\n    show\nelse\n    hide\nend\n\nwhen I receive [reset v]\ndelete this clone\n\ndefine CLONE AT X (x) Y (y)\ncreate clone of (_myself_ v)\nchange [x v] by (x)\nchange [y v] by (y)\nnext costume\n\nwhen I start as a clone\n\nwhen flag clicked\ngo to [front v] layer\ngo to [front v] layer\n\nwhen I receive [end intro v]\nshow\n\n@Thumbnail\n\nwhen flag clicked\nset [thumbnail? v] to [normal]\nshow list [chat v]\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nhide\nforever\n    reset timer\nend\n\nwhen [timer v] > (0.10)\n\nwhen I receive [end game v]\nset [thumbnail? v] to [end]\n\nwhen [timer v] > (0.10)\nif <(thumbnail?) = [normal]> then\n    hide variable [timer v]\n    switch costume to (thumbnail v)\n    show list [chat v]\n    go to x: (0) y: (0)\n    show\n    go to [front v] layer\n    set [ghost v] effect to (100)\n    repeat (25)\n        change [ghost v] effect by (-4)\n    end\nelse\n    if <(thumbnail?) = [end]> then\n        hide variable [timer v]\n        switch costume to (end v)\n        show list [chat v]\n        go to x: (0) y: (0)\n        show\n        go to [front v] layer\n        set [ghost v] effect to (100)\n        repeat (25)\n            change [ghost v] effect by (-4)\n        end\n        set voice to (tenor v)::tts\n        set voice to (tenor v)::tts\n        speak (join (username) (join [ your time is ] (timer)))::tts\n    end\nend\n\nwhen flag clicked\nhide variable [timer v]\n\nforever\n\nwhen I receive [joined v]\nshow variable [timer v]\nset [timer v] to [0]\n\n@Sprite2\n\nwhen flag clicked\ngo to [back v] layer\nhide\n\nwhen I receive [begin v]\nwait (.1) seconds\ngo to x: (0) y: (0)\nforever\n    go to [front v] layer\n    go [forward v] (100) layers\n    show\nend\n\n