Discuss Scratch

axus-
Scratcher
58 posts

Cloud Lists, Lobbies, etc.

Hello.

Before you post, I am not asking for a tutorial on cloud lists, nor do I want a cloud list engine. I already know about cloud lists. I have a project where there is a ‘lobby.’ I have 3 lists, one for usernames, one for user ids, and one for if you are in the lobby or not. They all get compiled into one string. The problem is, how do I update only part of the list without changing what other people are updating as well.

Example would be that there are 4 people in the lobby. 2 of those people exit the lobby. Before they exit, their status is uploaded. How do I make it so that they don't erase each other's status?

Thank you in advance.

marigoldkit wrote:

paddle robs banks in his spare time uh.. d-donations yeah
What the heck is DDCC18? https://scratch.mit.edu/discuss/topic/300290/
awesomeawesxomeman3
Scratcher
53 posts

Cloud Lists, Lobbies, etc.

in theory, the players should be updating their own statuses every “cycle” (assuming that's how your game runs), this means that the overwritten data would simply be overwritten again with the accurate data by each player. The worst that would come out of this would be a momentary flicker of incorrect data, which can be combated by displaying a cache of earlier data instead

saodtheking
Scratcher
97 posts

Cloud Lists, Lobbies, etc.

For this you need to have “turns” on saving/uploading

First we should give the users their numbers

Then make a cloud variable called “Turn”

and make the 1st user control this variable by changing Turn by 1 each 0.5/1 second

now we make a script that says whenever Turn = My number then upload


the scripts are going to be a little bit huge but if u want i can type it for u here

axus-
Scratcher
58 posts

Cloud Lists, Lobbies, etc.

saodtheking wrote:

For this you need to have “turns” on saving/uploading

First we should give the users their numbers

Then make a cloud variable called “Turn”

and make the 1st user control this variable by changing Turn by 1 each 0.5/1 second

now we make a script that says whenever Turn = My number then upload


the scripts are going to be a little bit huge but if u want i can type it for u here
I was afraid of having to do that… Thanks

marigoldkit wrote:

paddle robs banks in his spare time uh.. d-donations yeah
What the heck is DDCC18? https://scratch.mit.edu/discuss/topic/300290/
axus-
Scratcher
58 posts

Cloud Lists, Lobbies, etc.

awesomeawesxomeman3 wrote:

in theory, the players should be updating their own statuses every “cycle” (assuming that's how your game runs), this means that the overwritten data would simply be overwritten again with the accurate data by each player. The worst that would come out of this would be a momentary flicker of incorrect data, which can be combated by displaying a cache of earlier data instead

saodtheking wrote:

For this you need to have “turns” on saving/uploading

First we should give the users their numbers

Then make a cloud variable called “Turn”

and make the 1st user control this variable by changing Turn by 1 each 0.5/1 second

now we make a script that says whenever Turn = My number then upload


the scripts are going to be a little bit huge but if u want i can type it for u here
Thank you guys so much. I have spent nearly a month figuring it out and I finally got it!

marigoldkit wrote:

paddle robs banks in his spare time uh.. d-donations yeah
What the heck is DDCC18? https://scratch.mit.edu/discuss/topic/300290/

Powered by DjangoBB

Standard | Mobile