Discuss Scratch

LucarioKid2008
Scratcher
5 posts

How do I make a multiplayer game?

I need help with it
i just became a normal scratcher and when i tried a multiplayer game it failed. what do i do
JplaysStuff
Scratcher
100+ posts

How do I make a multiplayer game?

That depends. Do you want it to be a local offline game, where it's on one computer and the players share the keyboard, or do you want it to be an online multiplayer game?

If you want it to be local, just have your controllable sprites be controlled by different keys.

For a cloud (online) game, that's extraordinarily difficult even for experienced Scratchers. I *highly* recommend you become thoroughly familiarized with Scratch to the point where you can make any kind of game if you wished to, and even then, it'll still be difficult. (for the record, I've been a Scratcher for two years and still can't make cloud multiplayer).

If you're absolutely confident in your skills, start researching the Scratch Wiki for information on Cloud Data. That's a good start. Even then, though, anything beyond basic local multiplayer (both computers on the same internet network) will be griffpatch levels of difficult.

Maybe.
deck26
Scratcher
1000+ posts

How do I make a multiplayer game?

Cloud multiplayer needn't be difficult but don't try to update cloud variables too quickly - one variable update per tenth of a second seems to be the limit.

https://scratch.mit.edu/projects/77775784/ may help you understand the basics.

best-games-ever
Scratcher
500+ posts

How do I make a multiplayer game?

C0nyc0n
Scratcher
100+ posts

How do I make a multiplayer game?

I use arrow keys and WASD
(For 4 player I use arrow keys, WASD, TFGH and IJKL)

Last edited by C0nyc0n (Oct. 12, 2019 12:20:14)

Joshia_T
Scratcher
500+ posts

How do I make a multiplayer game?

LucarioKid2008 wrote:

I need help with it
i just became a normal scratcher and when i tried a multiplayer game it failed. what do i do
“just became a normal scratcher”? You mean't to do cloud multiplayer? My suggestion is that you should rather use local multiplayer since you won't get enough attention to have players playing your project in multiplayer and its kinda hard and finicky the more complex your game is unless well.. you know what you're getting into already.

A over-simplified how to make a multiplayer is as such:
Player A joins game (also keeps changing a cloud variable so player B knows he can't become player A)
Player B joins game
Player A set cloud variable A to his position (maybe by joinning the x and y into 035308 adding the x by 240 to avoid negative and y by 180, also rounding them to 3 digits adding zeros where necessary)
Player B set cloud variable B to his position
Player A and B read cloud variable and put each other position into the sprites

the technical stuff can be found in lots of multiplayer projects, you can search that up, deck26 and the wiki also gives great help.
ShouryaSD
Scratcher
11 posts

How do I make a multiplayer game?

idk

Powered by DjangoBB