☁ Space - A multiplayer platformer ! ☁  #Games

Instructions: Hello ! Welcome to Space - a platformer!\nComments will not be activated this time. : D\n➙+650 bloks!\n➙Created on 8hours ! ._.\nThe code for the cloud is not mine ... It is @Kismat12.\nBut the rest comes from me!\nI hope you would like it!\nCredits:\nThanks to @WAR_DRAGON for the idea of ​​the "space" theme\n@kodiak77-77 for the cloud idea!\nTags:\n#space #a #platformer #enjoy #paul2448 #cloud #enjoy #nocomments #owo #byeguy #nocomments\nLoved by famous people: :\nLoved and faved by @0014049 !\nLoved and faved by @krishtheking123 !\nLoved by @kodiak77-77 !\nLoved by @nampinanathali \nOMG :\n#1 on treding (french) 3 days ! :OOOO & 6 days #1 on explore #games !!!

@Stage\n\nwhen flag clicked\nswitch backdrop to (arrière plan1 v)\nforever\n    play sound [Mario Galaxy music v] until done\n    wait (1) seconds\n    play sound [Mario galaxy 2nd music v] until done\nend\n\n@Cube\n\nwhen flag clicked\nforever\n    if <(username) = [Paul2448]> then\n        if <key (space v) pressed?> then\n            change [level v] by (1)\n            go to x: (-400) y: (100)\n            set [x2 v] to [0]\n            set [y2 v] to [0]\n            wait (1) seconds\n        end\n    end\nend\n\nwhen flag clicked\nforever\n    if <(x position) = [265]> then\n        go to x: (-247) y: (-66)\n        broadcast (SUIVANT v)\n    end\nend\n\nwhen I receive [initialise  v]\nhide\nset [username v] to (username)\nset [clone id v] to [0]\nrepeat (10)\n    change [clone id v] by (1)\n    create clone of (_myself_ v)\nend\n\nwhen flag clicked\ndelete all of [chat v]\nset [chat v] to [0]\n\nwhen flag clicked\nset [last.activity v] to [1]\n\nwhen flag clicked\nhide variable [players v]\n\nwhen [t v] key pressed\nif <(chat) = [1]> then\n    set [chat v] to [0]\nelse\n    set [chat v] to [1]\nend\n\nwhen I receive [start v]\nshow variable [players v]\n\ndefine Save My Data\ndelete all of [my list v]\nadd (x position) to [my list v]\nadd (y position) to [my list v]\nadd (pick random (999) to (99999)) to [my list v]\nadd (username) to [my list v]\nadd (Level) to [my list v]\nadd (chat.output) to [my list v]\nadd (chat.mode) to [my list v]\nadd (costume [name v]) to [my list v]\n\nwhen I receive [start v]\nforever\n    if <(chat) = [1]> then\nend\n\nwhen I receive [start v]\nwait (4) seconds\nforever\n    if <not <(item (((@PlayerSlot) * (8)) - (4)) of [cloud list v]) = (item (4) of [my list v])>> then\n        broadcast (aw v)\n        stop [all v]\n    end\nend\n\nwhen I start as a clone\nwait until <(started) = [1]>\nif <not <(Clone ID) = (@PlayerSlot)>> then\n    go to x: (item (((Clone ID) * (8)) - (7)) of [cloud list v]) y: (item (((Clone ID) * (8)) - (6)) of [cloud list v])\nend\nif <(Clone ID) = (@PlayerSlot)> then\n    go to x: (-192) y: (0)\nend\nforever\n    Tick\nend\n\ndefine (id)\nif <(item (id) of [active check v]) = [Off]> then\n    hide\nelse\n    if <(item (((id) * (8)) - (3)) of [cloud list v]) = (Level)> then\n        switch costume to ((item (((id) * (8)) - (0)) of [cloud list v]) + (4))\n        show\n        set size to (60) %\n        think (item (((id) * (8)) - (4)) of [cloud list v])\n        change x by (((x position) - (item (((id) * (8)) - (7)) of [cloud list v])) / (-2.5))\n        change y by (((y position) - (item (((id) * (8)) - (6)) of [cloud list v])) / (-2.5))\n        if <(item (((id) * (8)) - (2)) of [cloud list v]) > [0]> then\n            say (item ((item (((id) * (8)) - (2)) of [cloud list v]) + ((item (((id) * (8)) - (1)) of [cloud list v]) * (9))) of [chat v])\n        end\n    else\n        go to x: (item (((id) * (8)) - (7)) of [cloud list v]) y: (item (((id) * (8)) - (6)) of [cloud list v])\n        hide\n    end\nend\n\ndefine Tick\nif <(Clone ID) = (@PlayerSlot)> then\n    Movement (Clone ID)\nelse\n    (Clone ID)\nend\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\ndefine Movement (id)\nset size to (60) %\nshow\nchange [y2 v] by (-1)\nif <(chat.output) > [0]> then\n    say (item ((chat.output) + ((chat.mode) * (9))) of [chat v])\nelse\n    think []\nend\nif <(x position) > [230]> then\n    if <(Level) = [9]> then\n        broadcast (win v)\n    end\n    change [level v] by (1)\n    go to x: (-200) y: (0)\n    set [x2 v] to [0]\n    set [y2 v] to [0]\nend\nif <<<<(mouse x) < (x position)> and <mouse down?>> or <key (left arrow v) pressed?>> or <key (a v) pressed?>> then\n    set [last.activity v] to (timer)\n    change [x2 v] by (-0.6)\n    switch costume to (2 v)\nelse\n    if <<<<(x position) < (mouse x)> and <mouse down?>> or <key (right arrow v) pressed?>> or <key (d v) pressed?>> then\n        set [last.activity v] to (timer)\n        change [x2 v] by (0.6)\n        switch costume to (1 v)\n    else\n        switch costume to (3 v)\n    end\nend\nset [x2 v] to ((x2) * (0.9))\nchange x by (x2)\nSave My Data\nif <touching (platformer v)?> then\n    change y by (1)\nend\nif <touching (platformer v)?> then\n    change y by (1)\nend\nif <touching (platformer v)?> then\n    change y by (1)\nend\nif <touching (platformer v)?> then\n    change y by (1)\nend\nif <touching (platformer v)?> then\n    change y by (-4)\n    change x by ((x2) * (-1))\nend\nchange y by (y2)\nSave My Data\nif <touching (platformer v)?> then\n    change y by ((0) - (y2))\n    set [y2 v] to [1]\nend\nchange y by (-1)\nif <<<<<(y position) < (mouse y)> and <mouse down?>> or <key (up arrow v) pressed?>> or <key (w v) pressed?>> and <touching (platformer v)?>> then\n    set [last.activity v] to (timer)\n    set [y2 v] to [15]\nend\nchange y by (1)\nif <(y position) > [180]> then\n    set [y2 v] to [0]\nend\nif <<(y position) < [-170]> or <touching (spikes v)?>> then\n    go to x: (-192) y: (0)\n    set [x2 v] to [0]\n    set [y2 v] to [0]\n    broadcast (DIE!!! v)\nend\nSave My Data\ngo to [front v] layer\n\nhide\n\nwhen I receive [chicken v]\nplay sound [Jump v] until done\n\n@Truc qui brille\n\nwhen flag clicked\nhide\nforever\n    create clone of (_myself_ v)\n    wait (1) seconds\nend\n\nwhen I start as a clone\ngo to (random position v)\nshow\nset size to (pick random (80) to (200)) %\nturn right (pick random (10) to (50)) degrees\nrepeat (25)\n    change size by (pick random (-1) to (-10))\nend\ndelete this clone\n\n@connecting\n\ndefine connecttest (@slot)\nif <not <(item (((@PlayerSlot) * (8)) - (4)) of [cloud list v]) = (item (4) of [my list v])>> then\n    wait (1) seconds\n    delete all of [my list v]\n    add (x position) to [my list v]\n    add (y position) to [my list v]\n    add (pick random (999) to (99999)) to [my list v]\n    add (x2) to [my list v]\n    add [0] to [my list v]\n    add (chat.output) to [my list v]\n    add (chat.mode) to [my list v]\n    add [4] to [my list v]\n    broadcast (Tick v) and wait\n    broadcast (Get Data v) and wait\n    if <not <(item (((@PlayerSlot) * (8)) - (4)) of [cloud list v]) = (item (4) of [my list v])>> then\n        broadcast (failed v)\n    end\nend\n\nwhen I receive [initialise  v]\nswitch costume to (yep v)\nshow\nclear graphic effects\ngo to x: (0) y: (0)\ngo to [front v] layer\nset [full? v] to [False]\nset [kick v] to [False]\nset [moved? v] to [800]\n\nwhen flag clicked\nbroadcast (Initialise  v) and wait\nGet Player Slot\nset [moved? v] to [600]\nif <not <(@PlayerSlot) > [0]>> then\n    set [full? v] to [True]\nelse\n    wait (1) seconds\n    set [started v] to [1]\n    broadcast (start v)\nend\nhide\nforever\n    broadcast (Tick v) and wait\nend\n\ndefine Get Player Slot\nset [@playerslot v] to [0]\nbroadcast (Get Data v) and wait\nset [moved? v] to [0]\ndelete all of [check v]\nif <(length of [cloud list v]) = [0]> then\n    set [@playerslot v] to [1]\nelse\n    repeat (10)\n        change [moved? v] by (1)\n        add (item (((Moved?) * (8)) - (5)) of [cloud list v]) to [check v]\n    end\n    wait (2) seconds\n    broadcast (Get Data v) and wait\n    set [moved? v] to [1]\n    repeat until <(item (((Moved?) * (8)) - (5)) of [cloud list v]) = (item (Moved?) of [check v])>\n        change [moved? v] by (1)\n    end\n    set [@playerslot v] to (Moved?)\n    delete all of [my list v]\n    add (x position) to [my list v]\n    add (y position) to [my list v]\n    add (pick random (999) to (99999)) to [my list v]\n    add (x2) to [my list v]\n    add [0] to [my list v]\n    add (chat.output) to [my list v]\n    add (chat.mode) to [my list v]\n    add [4] to [my list v]\n    broadcast (Tick v) and wait\n    broadcast (Get Data v) and wait\n    connecttest (@PlayerSlot)\nend\n\nwhen flag clicked\nset [started v] to [0]\n\nwhen I receive [start v]\nset [started v] to [1]\n\nwhen I receive [aw v]\nshow\ngo to [front v] layer\nswitch costume to (argh2 v)\nstop [all v]\n\nwhen flag clicked\nforever\n    if <(Full?) = [True]> then\n        go to [front v] layer\n        switch costume to (nope v)\n        show\n        stop [all v]\n    end\nend\n\nwhen I receive [failed v]\nshow\ngo to [front v] layer\nswitch costume to (argh v)\nstop [all v]\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\n@uwu\n\ndefine Decode (data)\ndelete all of [cloud list v]\nset [output v] to []\nset [i v] to [0]\nrepeat ((length of (data)) / (2))\n    change [i v] by (2)\n    switch costume to (join (letter ((I) - (1)) of (data)) (letter (I) of (data)))\n    if <(costume [name v]) = [~]> then\n        add (Output) to [cloud list v]\n        set [output v] to []\n    else\n        set [output v] to (join (Output) (costume [name v]))\n    end\nend\n\ndefine Encode\nset [output v] to []\nset [n v] to [0]\nrepeat (length of [my list v])\n    set [i v] to [0]\n    change [n v] by (1)\n    repeat (length of (item (n) of [my list v]))\n        change [i v] by (1)\n        switch costume to (letter (I) of (item (n) of [my list v]))\n        if <(costume [number v]) < [10]> then\n            set [output v] to (join (Output) (join [0] (costume [number v])))\n        else\n            set [output v] to (join (Output) (costume [number v]))\n        end\n    end\n    set [output v] to (join (Output) [53])\nend\n\ndefine Update Players List (id)\nif <(id) = [1]> then\n    set [player list v] to [0]\n    delete all of [check v]\n    repeat (10)\n        change [player list v] by (1)\n        add (item (((Player List) * (8)) - (5)) of [cloud list v]) to [check v]\n    end\nelse\n    if <(id) = [2]> then\n        set [player list v] to [0]\n        repeat (10)\n            change [player list v] by (1)\n            if <not <(@PlayerSlot) = (Player List)>> then\n                if <(item (Player List) of [check v]) = (item (((Player List) * (8)) - (5)) of [cloud list v])> then\n                    replace item (Player List) of [active check v] with [Off]\n                else\n                    replace item (Player List) of [active check v] with [On]\n                end\n            end\n        end\n    end\nend\n\nwhen I receive [initialise  v]\ndelete all of [active check v]\nrepeat (10)\n    add [off] to [active check v]\nend\n\nwhen I receive [start v]\nforever\n    Update Players List [1]\n    wait (0.3) seconds\n    Update Players List [2]\nend\n\nwhen I receive [get data v]\nDecode Data\n\ndefine Saving the data (id)\nEncode\nif <(timer) < ((last.activity) + (60))> then\n    if <(id) = [1]> then\n        set [☁ j1 v] to (Output)\n    else\n        if <(id) = [2]> then\n            set [☁ j2 v] to (Output)\n        else\n            if <(id) = [3]> then\n                set [☁ j3 v] to (Output)\n            else\n                if <(id) = [4]> then\n                    set [☁ j4 v] to (Output)\n                else\n                    if <(id) = [5]> then\n                        set [☁ j5 v] to (Output)\n                    else\n                        if <(id) = [6]> then\n                            set [☁ j6 v] to (Output)\n                        else\n                            if <(id) = [7]> then\n                                set [☁ j7 v] to (Output)\n                            else\n                                if <(id) = [8]> then\n                                    set [☁ j8 v] to (Output)\n                                else\n                                    if <(id) = [9]> then\n                                        set [☁ j9 v] to (Output)\n                                    else\n                                        if <(id) = [10]> then\n                                            set [☁ j10 v] to (Output)\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]\nDecode Data\nSaving the data (@PlayerSlot)\nDetermine Players\n\ndefine Decode Data\nDecode (join (☁ j1) (join (☁ j2) (join (☁ j3) (join (☁ j4) (join (☁ j5) (join (☁ j6) (join (☁ j7) (join (☁ j8) (join (☁ j9) (☁ j10))))))))))\n\ndefine Determine Players\nset [players v] to [1]\nset [i v] to [0]\nrepeat (10)\n    change [i v] by (1)\n    if <(item (I) of [active check v]) = [On]> then\n        change [players v] by (1)\n    end\nend\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\n@platformer\n\nwhen I receive [start v]\nset [level v] to [1]\n\nwhen I receive [start v]\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\n\nwhen I receive [win v]\nhide\nstop [other scripts in sprite v]\nstop all sounds\n\n@Spikes\n\nwhen I receive [start v]\nset [level v] to [1]\n\nwhen I receive [start v]\ngo to [back v] layer\nforever\n    switch costume to (Level)\nend\n\nwhen flag clicked\nshow\n\n@Sprite2\n\nwhen flag clicked\ngo to x: (0) y: (0)\nset [ghost v] effect to (100)\nforever\n    go to [front v] layer\nend\n\nshow\n\n