Discuss Scratch

Spaghetaroni
Scratcher
8 posts

Multiplayer Scratch Games

Playing together is always fun. I'm not saying there should be a chatroom added, I'm saying that we should have people be able to play with each other. Communication isn't always key. Multiplayer games would be a major stress reliever for games that are multiplayer, like tag, or competition games like, for example, “Who can open the box first?” (No, this is not a real game, this is an example.)
WindOctahedron
Scratcher
1000+ posts

Multiplayer Scratch Games

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.

Last edited by WindOctahedron (March 18, 2020 17:49:52)

DarthVader4Life
Scratcher
1000+ posts

Multiplayer Scratch Games

dupe
Please continue discussion on this.

Last edited by DarthVader4Life (May 11, 2021 22:41:42)

Spaghetaroni
Scratcher
8 posts

Multiplayer Scratch Games

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
Cloud Variables are another thing, though, I'm talking about multiplayer games, not variables. If I'm wrong, how do you propose to connect players who are playing on different devices around the world? I don't see how cloud variables can achieve this.
If you know a solution, please show me some code.
Thanks, Spaghet.
Spaghetaroni
Scratcher
8 posts

Multiplayer Scratch Games

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
Nevermind, I saw the wiki post on how to make the games. Please disregard my other post. Thank you for all your help.
46009361
Scratcher
1000+ posts

Multiplayer Scratch Games

You can't use or make cloud variables because you are still a New Scratcher, though.
scratchmaster295
Scratcher
500+ posts

Multiplayer Scratch Games

Cloud variable have a 256 count limit, and you can make up to 10(I think 10) cloud variables (if you are a scratcher). Once you are a scratcher, you could get clever and do something with cloud variables, although it would be difficult.

However, the world famous scratcher @griffpatch made a multiplayer slither.io game, though I don't know how he did it
IAmSpeed123
Scratcher
41 posts

Multiplayer Scratch Games

Spaghetaroni wrote:

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
Nevermind, I saw the wiki post on how to make the games. Please disregard my other post. Thank you for all your help.
Here I made a project (Untitled-18) You basically move around with another player.
scratchykit5743
Scratcher
1000+ posts

Multiplayer Scratch Games

actually, the cloud variable limit is 8, just to clarify. read the scratch FAQ. the link is here: https://scratch.mit.edu/info/faq/
Za-Chary
Scratcher
1000+ posts

Multiplayer Scratch Games

scratchykit5743 wrote:

actually, the cloud variable limit is 8, just to clarify. read the scratch FAQ. the link is here: https://scratch.mit.edu/info/faq/
Nothing here says that the cloud variable limit is 8. I'm pretty sure the limit is 10 cloud variables per project.
scratchykit5743
Scratcher
1000+ posts

Multiplayer Scratch Games

anyways, when it comes to multi player games, i have some ideas for you over here: these ideas use cloud variables to make 2-player live scratch games:

(☁ P1)
this variable would verify player 1.

(☁ P2)
this would verify player 2.

(☁ numerical messaging P2)
this type of block would enable a numerical chat system. make sure your messages are simple, like: “good game” or “time to have fun!” translated into a 3 digit code such as 010, but keep in mind that cloud chat projects are banned by the ST, so keep things extremely simple and extremely nice, and very limited, kind of reflecting the only 8 messages you can ever make in the wireless and online modes of mario kart 8.

(☁ gifts)
if the game is more peaceful, like an RPG, this could be used so a player, like P1, could send an item to put in a list to the other, like P2, in a code like what is below:
when [g v] key pressed
ask [send what to P2?] and wait                                (friendly reminder: use numbers to stand for items due to restrictions to prevent chat projects.)
set [gift to P2 v] to (answer)

on P2's device, after recieving:
when [r v] key pressed
add (☁ gift to P2) to [my inventory v]

this could be very friendly towards the other player.

these are very cool suggestions you can use to make a really friendly game. i hope you like my suggestions!
DarthVader4Life
Scratcher
1000+ posts

Multiplayer Scratch Games

DarthVader4Life wrote:

dupe
Please continue discussion on this.

Last edited by DarthVader4Life (May 18, 2021 02:45:58)

cat-and-friend-lover
Scratcher
1 post

Multiplayer Scratch Games

Is there a way to make multiplayer Scratch games that have more than two players?
nikky10000000
Scratcher
500+ posts

Multiplayer Scratch Games

Edit: I read the OP wrong. I thought they meant adding cloud chats.

Last edited by nikky10000000 (Jan. 3, 2025 19:31:45)

MagentaDude1359
Scratcher
100+ posts

Multiplayer Scratch Games

cat-and-friend-lover wrote:

Is there a way to make multiplayer Scratch games that have more than two players?
griffpatch has an awesome mmo tutorial that supports a lot of players
MudkipKappa
Scratcher
1000+ posts

Multiplayer Scratch Games

nikky10000000 wrote:

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
But isnt that against the guidelines?
No, nikky wasn’t talking about chat, just about making multiplayer games.
Griffpatch has made multiple online multiplayer games as well as a 4-part tutorial on how to make one.
This suggestion is already possible and shouldn’t have been brought up, as it’s from 4 years ago and the OP was a New Scratcher originally.

I appear to have been (somewhat) ninja’d
As well as ninjaing someone else

Last edited by MudkipKappa (Jan. 3, 2025 19:21:24)

AHypnoman
Scratcher
1000+ posts

Multiplayer Scratch Games

nikky10000000 wrote:

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
But isnt that against the guidelines?
No, online games aren't against the CGs

Ninja'd by a much better post

Last edited by AHypnoman (Jan. 3, 2025 19:21:15)

nikky10000000
Scratcher
500+ posts

Multiplayer Scratch Games

AHypnoman wrote:

nikky10000000 wrote:

WindOctahedron wrote:

You can already do this using cloud variables.
To do so, make a new variable and tick the “Cloud variable (stored on server)” checkbox.
Keep in mind that cloud variables can only store numbers* and only up to 256 of them (and you can only have up to 10 cloud variables per project). These limits are set to lower server space usage.
*Plus one period and probably a minus sign.
But isnt that against the guidelines?
No, online games aren't against the CGs

Ninja'd by a much better post
I mean cloud chats, not just online games.

Last edited by nikky10000000 (Jan. 3, 2025 19:28:13)

Powered by DjangoBB