Server 1 ☁cloud platformer onlimer

Instructions: >>>>>>>>>>>>Here is the remix tree<<<<<<<<\nhttps://scratch.mit.edu/projects/531125341/remixtree\n\n>>>>>>>>>>>>minecraft creative<<<<<<<<\nhttps://scratch.mit.edu/projects/512829793/\n\n:) :) :) :) :) :) :)\n\n>>>>>>>>>>>>>my test profile<<<<<<<<<<<\nhttps://scratch.mit.edu/users/LVsilver_Test/

@Stage\n\nwhen flag clicked\nset volume to (70) %\nforever\n    play sound [Vexento - Tevo \(Original Mix\) v] until done\nend\n\n@blank\n\n@player\n\nwhen flag clicked\nset [ghost v] effect to (100)\nswitch backdrop to (backdrop2 v)\nbroadcast (LVsilvers v) and wait\n\ndefine write (val) to encoded\nset [letter # v] to [1]\nrepeat (length of (val))\n    set [encoded v] to (join (encoded) (item # of (letter (letter #) of (val)) in [code v]))\n    change [letter # v] by (1)\nend\nset [encoded v] to (join (encoded) [00])\n\nwhen I receive [begin v]\nforever\n    player tick\n    send cloud data\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                            set [☁ p8 v] to (value)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\ndefine send cloud data\nif <(MY PLAYER #) < [1]> then\n    stop [this script v]\nend\nadd (x) to [buffer v]\nadd (y) to [buffer v]\nadd (costume [number v]) to [buffer v]\nchange [cloud timer v] by (1)\nif <(cloud timer) < [4]> then\n    stop [this script v]\nend\nset [cloud timer v] to [0]\nset [encoded v] to []\nwrite (username) to encoded\nwrite (round ((timer) * (10))) to encoded\nrepeat (length of [buffer v])\n    write (item (1) of [buffer v]) to encoded\n    delete (1) of [buffer v]\nend\nset cloud # (MY PLAYER #) to (encoded)\n\ndefine player tick\ngo to x: ((x) - (scroll x)) y: ((y) - (scroll y))\nif <<<key (right arrow v) pressed?> or <key (d v) pressed?>> or <<mouse down?> and <(mouse x) > [10]>>> then\n    change [xv v] by (1)\nend\nif <<<key (left arrow v) pressed?> or <key (a v) pressed?>> or <<mouse down?> and <(mouse x) < [-10]>>> then\n    change [xv v] by (-1)\nend\nchange x by (Xv)\nset [xv v] to ((Xv) * (0.9))\nif <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n    change y by (1)\n    if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n        change y by (1)\n        if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n            change y by (1)\n            if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n                change y by (1)\n                if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n                    change y by (1)\n                    if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n                        change x by ((Xv) * (-1.25))\n                        change y by (-5)\n                        if <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n                            if <(Xv) > [0]> then\n                                set [xv v] to [-10]\n                            else\n                                set [xv v] to [10]\n                            end\n                            set [yv v] to [15]\n                        else\n                            set [xv v] to [0]\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\nchange [yv v] by (-1)\nchange y by (Yv)\nif <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n    change y by ((Yv) * (-1))\n    set [yv v] to [0]\nend\nchange y by (-1)\nif <<<key (up arrow v) pressed?> or <key (w v) pressed?>> or <<mouse down?> and <(mouse y) > (y position)>>> then\n    if <<<touching color (#c38600)?> or <touching color (#e8ff71)?>> or <touching color (#4eff00)?>> then\n        set [yv v] to [11.5]\n    end\nend\nchange y by (1)\nchange [x v] by (round ((x position) - ((x) - (scroll x))))\nchange [y v] by (round ((y position) - ((y) - (scroll y))))\nchange [scroll x v] by (round (((x) - (scroll x)) / (10)))\nchange [scroll y v] by (round (((y) - (scroll y)) / (10)))\nif <<key (right arrow v) pressed?> or <key (d v) pressed?>> then\n    switch costume to (costume2 v)\nelse\n    if <<key (left arrow v) pressed?> or <key (a v) pressed?>> then\n        switch costume to (costume3 v)\n    else\n        if <<key (up arrow v) pressed?> or <key (w v) pressed?>> then\n            switch costume to (costume4 v)\n        else\n            switch costume to (costume5 v)\n        end\n    end\nend\n\ndefine move (x) (y)\ngo to x: (((x) + (x)) - (scroll x)) y: (((y) + (y)) - (scroll y))\nif <not <touching color (#000000)?>> then\n    change [x v] by (x)\n    change [y v] by (y)\nend\n\nwhen I receive [begin v]\nset [checkpoint v] to [0]\nforever\n    if <<<touching color (#8b8794)?> or <touching color (#efe8ff)?>> or <(y) < [-200]>> then\n        set [x v] to [0]\n        set [y v] to [0]\n        set [scroll x v] to [-5]\n        set [scroll y v] to [30]\n        if <(checkpoint) = [1]> then\n            set [x v] to [1048]\n            set [y v] to [523]\n            set [scroll x v] to [1044]\n            set [scroll y v] to [526]\n        end\n        if <(checkpoint) = [2]> then\n            set [x v] to [2056]\n            set [y v] to [871]\n            set [scroll x v] to [2052]\n            set [scroll y v] to [876]\n        end\n        if <(checkpoint) = [3]> then\n            set [x v] to [-919]\n            set [y v] to [1346]\n            set [scroll x v] to [-914]\n            set [scroll y v] to [1351]\n        end\n    end\n    if <touching color (#66ff94)?> then\n        set [checkpoint v] to [1]\n    end\n    if <touching color (#0b00ff)?> then\n        set [checkpoint v] to [2]\n    end\n    if <touching color (#ff0000)?> then\n        set [checkpoint v] to [3]\n    end\n    if <touching color (#fbff00)?> then\n        set [checkpoint v] to [4]\n    end\n    if <(scroll y) < [-1605]> then\n        set [scroll y v] to [-1605]\n    end\n    if <(scroll y) > [1605]> then\n        set [scroll y v] to [1605]\n    end\n    if <(scroll x) < [-2147]> then\n        set [scroll x v] to [-2147]\n    end\n    if <(scroll x) > [2147]> then\n        set [scroll x v] to [2147]\n    end\n    set [check v] to (checkpoint)\nend\n\nwhen I receive [stop v]\nstop [other scripts in sprite v]\nhide\n\nwhen I receive [start v]\nbroadcast (Connecting v) and wait\nset [ghost v] effect to (100)\nshow\ngo to x: (0) y: (0)\nset [check v] to [0]\nset [x v] to [0]\nset [y v] to [0]\nset [scroll x v] to [0]\nset [scroll y v] to [0]\nset [checkpoint v] to [0]\nset [max player v] to [8]\nset [my player # v] to [0]\ndelete all of [buffer v]\nbroadcast (setup - opponent v) and wait\nswitch backdrop to (joining v)\nbroadcast (join game v) and wait\nif <(MY PLAYER #) > [0]> then\n    broadcast (Connected v)\nelse\n    broadcast (Full v)\nend\nset [ghost v] effect to (0)\nswitch backdrop to (blank v)\nbroadcast (begin v)\n\n@opponent\n\ndefine begin decoded of (encoded)\nset [encoded v] to (encoded)\nset [letter # v] to [1]\n\ndefine val=read from encoded\nset [value v] to []\nforever\n    set [idx v] to (join (letter (letter #) of (encoded)) (letter ((letter #) + (1)) of (encoded)))\n    change [letter # v] by (2)\n    if <(idx) < [1]> then\n        stop [this script v]\n    end\n    set [value v] to (join (value) (item (idx) of [code v]))\nend\n\ndefine setup players\ndelete all of [buffer v]\nset [color v] effect to (0)\nhide\nset [offline v] to [100]\nset [player # v] to [1]\nrepeat ((MAX PLAYER) - (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        set [offline v] to [100]\n        hide\n    else\n        tick\n        position ((x) - (scroll x)) and ((y) - (scroll y))\n    end\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                            set [value v] to (☁ p8)\n                        end\n                    end\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [setup - opponent 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]\n    begin decoded of (value)\n    val=read from encoded\n    say (join (player #) (join [ : ] (value)))\n    val=read from encoded\n    val=read from encoded\n    repeat until <(value) = []>\n        add (value) to [buffer v]\n        val=read from encoded\n    end\n    switch costume to (value)\n    val=read from encoded\n    broadcast (decode chat v)\nend\nif <(length of [buffer v]) > [0]> then\n    set [x v] to (item (1) of [buffer v])\n    delete (1) of [buffer v]\n    set [y v] to (item (1) of [buffer v])\n    delete (1) of [buffer v]\n    switch costume to (item (1) of [buffer v])\n    delete (1) of [buffer v]\nend\n\nwhen I receive [join game v]\nvalue = cloud # (player #)\nset [last value v] to (join [A] (value))\nwait (3) seconds\nvalue = cloud # (player #)\nif <(join [A] (value)) = (last value)> then\n    set [my player # v] to (player #)\nend\n\nset x to (-203)\n\nset y to (180)\n\ndelete (1) of [buffer v]\ndelete (1) of [buffer v]\n\ndefine position (x) and (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\nsay (value) for (4) seconds\nval=read from encoded\n\nwhen I receive [decode chat v]\ndecode chat (value)\n\ndefine decode chat (chat)\nif <(chat) = [1]> then\n    say (item (1) of [chat v]) for (2) seconds\nelse\n    if <(chat) = [2]> then\n        say (item (2) of [chat v]) for (2) seconds\n    else\n        if <(chat) = [3]> then\n            say (item (3) of [chat v]) for (2) seconds\n        end\n    end\nend\n\n@ground\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nset size to (1000) %\nswitch costume to (costume1 v)\nforever\n    go to x: ((x) - (scroll x)) y: ((y) - (scroll y))\n    go to [back v] layer\nend\n\nwhen I receive [begin v]\nshow\n\nwhen I receive [win v]\nhide\n\n@win\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nforever\n    if <(check) = [4]> then\n        show\n        broadcast (stop v)\n    end\nend\n\n@Sprite4\n\nwhen flag clicked\nhide\n\n@background\n\nwhen flag clicked\nhide\nswitch costume to (costume2 v)\nset size to (1000) %\nswitch costume to (costume1 v)\nforever\n    go to x: ((x) - (scroll x)) y: ((y) - (scroll y))\n    go to [back v] layer\nend\n\nwhen I receive [begin v]\nshow\n\nwhen I receive [win v]\nhide\n\n@LVsilvers\n\nwhen I start as a clone\nshow\nif <(id) = [1]> then\n    switch costume to (2 v)\n    go to x: (-240) y: (0)\n    glide (1) secs to x: (-30) y: (0)\nend\nif <(id) = [2]> then\n    switch costume to (3 v)\n    go to x: (240) y: (0)\n    glide (1) secs to x: (30) y: (0)\nend\nif <(id) = [3]> then\n    switch costume to (4 v)\n    start sound [Ricochet v]\n    go to x: (240) y: (-40)\n    glide (0.3) secs to x: (30) y: (-40)\n    wait (1) seconds\n    broadcast (start v)\nend\n\nwhen I receive [lvsilvers v]\nrepeat (2)\n    change [id v] by (1)\n    create clone of (_myself_ v)\nend\nwait (1) seconds\nchange [id v] by (1)\ncreate clone of (_myself_ v)\n\nwhen flag clicked\nset [id v] to [0]\ndelete this clone\n\nwhen I receive [start v]\ndelete this clone\n\n@Joining\n\nwhen flag clicked\nhide\n\nwhen I receive [begin v]\nhide\n\nwhen I receive [connecting v]\nswitch costume to (joining v)\nshow\n\nwhen I receive [connected v]\ngo [forward v] (1322) layers\nstart sound [Connect v]\nswitch costume to (connected v)\nshow\nwait (1) seconds\nrepeat (10)\n    change [ghost v] effect by (10)\nend\n\nwhen I receive [full v]\nswitch costume to (full  v)\nshow\n\n@Loading\n\nwhen flag clicked\ngo [forward v] (213) layers\nset size to (100) %\nhide\npoint in direction (90)\nclear graphic effects\ngo to x: (0) y: (-80)\n\nwhen I receive [connecting v]\nrepeat (11)\n    create clone of (_myself_ v)\n    turn right (40) degrees\nend\n\nwhen I receive [connected v]\nrepeat (10)\n    change [ghost v] effect by (10)\nend\ndelete this clone\n\nwhen I start as a clone\nshow\nset [ghost v] effect to (100)\nforever\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (-6)\n        change size by (1)\n    end\n    repeat (20)\n        turn right (7.5) degrees\n        change [ghost v] effect by (6)\n        change size by (-1)\n    end\nend\n\n