Learn to use Scratch’s cloud variables to pass location information back and forth between different computers in this simple introduction to multiplayer gaming. We’ll create a script that assigns Player 1 and Player 2 roles to the first two players who enter a game, and then passes X and Y coordinates back and forth so that both players can see each other’s movements.
Here’s a link to the Scratch project:
Note that to have access to cloud variables, you must be a “Scratcher”, a special status awarded by the Scratch Team to members of the community who are helpful and active members of the community. For more information on how to become a Scratcher, see this wiki article:
New coding tutorials every Saturday.
Chromeworks is a teacher-led, non-profit initiative aimed at transforming children from passive consumers of technology into active creators. Our camps, in-school workshops and YouTube content harness kids’ natural love of video games and challenge learners to make ever more complex projects that inspire growth and learning.
For more fun and free technology lessons, subscribe to our YouTube channel or visit out website at chromeworks.ca.
Nylaa does YT
06.07.2022Scratch Playground is gonna be the best game I’ve ever made!!!
mepomepo125
30.06.202220:30 you sabotaged the server
Lester Ho
27.05.2022This tutorial was perfect and clear. I've tried many tutorials but none of them succeeded except for this one. Nice work!
Gantuya Tserensharav
20.05.2022pls tut for how to make animation walk but multiplayer
titina
20.05.2022yoooo thx for the tutorial
FoxLanGaming
20.05.2022Bro, how did you know!!! I'm going to add this to me game Right NOW!!!
Pan9026
05.05.2022Is there a way to do this if you want your cat to be blue and the other cat is red for both screens
vi cầm nguyễn
26.04.2022i like the video so much thank you
Spuerpongthimas
26.04.2022it wont work on mine
Spuerpongthimas
26.04.2022nvm
Pan 9026
26.04.2022Hey chromeworks, if i want to make a platformer game with this tutorial can i just add more scripts than this?
MonkeyTime3
26.04.2022doesn't work at all. very bad and almost doesn't work at all.
Jaron Jackpot
24.04.2022Big yay
You.A.h0e
22.04.2022OMG THIS WORKS TYSM!!
Kabir Patel
22.04.2022Ummmmmmm….. Why are there only 3 comments including mine???
Hunny nut Cereal
22.04.2022That looks like the one from the scratch wiki
aishacs
22.04.2022Cloud variables won’t work for me!
Rockrelic
22.04.2022hey uhh can you make a video showing us hot to make a 5-20 player game?
Yashika G
22.04.2022can you share this project link so that I can copy the code else I am getting confused
yodeh_ yodeh
22.04.2022very helpful
pogger
22.04.2022It doesn't work, if i share the URL with someone then we are both P1.
deardeardada
22.04.2022mine doesnt work