Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to make a multiplayer with multiple game rooms.
- capitjeff21
-
39 posts
How to make a multiplayer with multiple game rooms.
I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?
- Breck-
-
100+ posts
How to make a multiplayer with multiple game rooms.
You can try looking at @griffpatch 's projects but even those are extremely complicated. I've been doing Scratch for years, but even this boggles my mind.
Last edited by Breck- (Nov. 28, 2017 00:11:42)
- Mole_Gaming
-
100+ posts
How to make a multiplayer with multiple game rooms.
Here's the basics behind it:
For each room, there's a list containing all the data needed for a regular multiplayer game.
Each player is assigned a list to get and give data to
All the players that are using the same list are in the same room.
You can do this by either just making multiple cloud lists or making a cloud list of cloud lists. Either way, it's pretty tough, and I can't really tell you a good way to do it.
I know MathMathMath had a cloud tutorial thing going, but I don't recall how far it got.
For each room, there's a list containing all the data needed for a regular multiplayer game.
Each player is assigned a list to get and give data to
All the players that are using the same list are in the same room.
You can do this by either just making multiple cloud lists or making a cloud list of cloud lists. Either way, it's pretty tough, and I can't really tell you a good way to do it.
I know MathMathMath had a cloud tutorial thing going, but I don't recall how far it got.
- NicholasRusciano
-
44 posts
How to make a multiplayer with multiple game rooms.
I hope you know that each one of your classmates has to have a Scratch Account and MUST be a scratcher.
- deck26
-
1000+ posts
How to make a multiplayer with multiple game rooms.
A lot of this depends how robust it has to be. If you can assume all players are connected and won't disconnect you could do something like have one player at a time in control of a cloud ‘list’ variable.
Say cloud list 1 (for server 1) has the first letter set to 2 this means player 2 in that room is in charge of that cloud list and only they can change it. When they're ready to pass control to the next player they set the first letter to 3 and player 3 is waiting for that to happen. If there are only 3 players then player 3 needs to know to set the value to 1 when they're done.
This all falls apart if a player disconnects as the game is waiting for a response it may never get. You also have to work out how each player knows which server and player slot they are using.
An alternative is to have your account in control of everything and just change the values as defined above automatically in a fixed loop or at least handle the initial stage of getting people connected.
Cloud data isn't currently robust enough for this in my opinion.
Say cloud list 1 (for server 1) has the first letter set to 2 this means player 2 in that room is in charge of that cloud list and only they can change it. When they're ready to pass control to the next player they set the first letter to 3 and player 3 is waiting for that to happen. If there are only 3 players then player 3 needs to know to set the value to 1 when they're done.
This all falls apart if a player disconnects as the game is waiting for a response it may never get. You also have to work out how each player knows which server and player slot they are using.
An alternative is to have your account in control of everything and just change the values as defined above automatically in a fixed loop or at least handle the initial stage of getting people connected.
Cloud data isn't currently robust enough for this in my opinion.
- MushiB
-
90 posts
How to make a multiplayer with multiple game rooms.
I believe mole gaming has this right (unless you've seen griffpatch in person by chance!
)

- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
I know about 6 rooms 3-5. That means 6 rooms which have 22 people. I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?
Then to check amount of players and slots:
Continue until 6.
Then after the online checks:
…
See more here! :)
You're all stars, but
= 4
Last edited by SuperGame592 (Feb. 14, 2021 08:39:15)
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
But 3-5 means randomisation which I'll and ;^)I know about 6 rooms 3-5. That means 6 rooms which have 22 people. I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?Then to check amount of players and slots:Continue until 6.
Then after the online checks:…See more here! :)
You're all stars, but= 4
Last edited by SuperGame592 (Feb. 14, 2021 08:40:30)
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
*add*But 3-5 means randomisation which I'll and ;^)I know about 6 rooms 3-5. That means 6 rooms which have 22 people. I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?Then to check amount of players and slots:Continue until 6.
Then after the online checks:…See more here! :)
You're all stars, but= 4
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
*add*But 3-5 means randomisation which I'll and ;^)I know about 6 rooms 3-5. That means 6 rooms which have 22 people. I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?Then to check amount of players and slots:Continue until 6.
Then after the online checks:…See more here! :)
You're all stars, but= 4

- Wael14
-
14 posts
How to make a multiplayer with multiple game rooms.
I don't know how to create a multiplayer game I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
I knowI don't know how to create a multiplayer game I understand how to do it, but you can only have 10 cloud variables and I need 6 rooms, each for 3-5 players. I have a project for math class that I'm coding using this, but I need to be able to have all 22 of my classmates to play at once, on separate servers. Any ideas?
- Chobby99
-
1 post
How to make a multiplayer with multiple game rooms.
I don't know much but try making a list or array of information and a cloud variable. link the different rooms to some code like R for room and a number so R1 and you can then have a variable saying what code it has so R3 or something and only read R3 info. I don't know if it works hope it does.
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
I don't know much but try making a list or array of information and a cloud variable. link the different rooms to some code like R for room and a number so R1 and you can then have a variable saying what code it has so R3 or something and only read R3 info. I don't know if it works hope it does.
???
- SuperGame592
-
49 posts
How to make a multiplayer with multiple game rooms.
ok I don't know much but try making a list or array of information and a cloud variable. link the different rooms to some code like R for room and a number so R1 and you can then have a variable saying what code it has so R3 or something and only read R3 info. I don't know if it works hope it does.
- Discussion Forums
- » Help with Scripts
-
» How to make a multiplayer with multiple game rooms.