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.
deardeardada
22.04.2022man I spent 3 hours on this and it doesnt work? WHAAAA?
wolfy sanic
20.04.2022I am making a 2 player ame where people can chat together and listen to music so this is perfect!
KharlsCharls
20.04.2022my scratch doesn't allow me to used cloud varieables still helpful though
Guest 1066 and Jeff Playz
20.04.2022my scratch doesn't allow me to used cloud varieables how do I get them.
Phoebe Liang
20.04.2022Itโs working!!!
Thank you so much ๐
This is my first online game on scratch!
I love it!!
Dancing Camp
20.04.2022It is work when I don't have cloud variable?
Dancing Camp
20.04.2022I mean is it
Dancing Camp
20.04.2022Yeah, I am a Scratcher ! Now I have cloud variable. Thank you soo much!!!๐คฉ
Jacob Costales
20.04.2022what version of scratch did you use?pls answer
PokemonFan
20.04.20224:03 Here is the start of the tutorial. Enjoy!
Ja7ish The mule
20.04.2022How can you do direction with the mouse and have the other player see it. This video helped me make it so thanks but can you help me with the mouse.
VideoGameswithLain
19.04.2022because you kept looking at another screen to show you what to do
Lucas Foresee
19.04.2022help both players only control player 1
Raymond Tri
19.04.2022I cannot make a cloud varlables
Raymond Tri
19.04.2022I try to code it but It can only go up!
Henry Fountain
19.04.2022This is really helpful I can now make a game for me and my friends to hang out in
Aegis
19.04.2022Hey, Ive been looking into this and ive got a question. Do you know if it is possible to create a multiplayer game but the players each have a different screen? For instance when you are playing a card game, you can see your own cards but not the opponents. And the opponents sees their cards and not yours.
cursor v2
19.04.2022wow whoever disliked i will hack their acc and make them like and also sub
Shashanth
19.04.2022Can we play it with two different divices
CookieDev โป
19.04.2022This so cool the original creator is super creative and good at scratch and u helped me a lot thx ๐
ninja1440ninja - Me on youtube!
19.04.2022This does not work, I tried on 2 diffrent PCs. One was diffrent than the others and not the same as the tutorial. Can you please help me?
Scratch!ng with Hana
15.04.2022Yeah it is really cool! but can you show how we can add like more players to the game? Would be real useful if u could show how to.๐
lilpinkpotato
15.04.2022You deserve way more subscribers, hope you become a famous scratch youtuber!
Thanks so much ๐
็ขฉ็ขฉ
15.04.2022I have a much better one
Cherษนวษฅฯฝ
15.04.2022thank u so much i love this tutorial and me complete my game!
Shouryasinh Deshmukh
15.04.2022Love from India
Cooper Henley
15.04.2022Hey I have been wondering do I have to make the same game or is this just the system I was going to make a table tennis game
TANMAY RANJITH
15.04.2022nice tutorial thank you , I will show this to my friends๐๐
American Bros
15.04.2022I CANT MAKE A CLOUD VARIBLE
Detective pizza
15.04.20229:21 whare I left off
COOLGAMING90studios
15.04.2022OMG OMG OMG TYSM I LOVE THIS VID NOW IM NOT A LOSER ON SCRATCH!1!11!!!1!1!1!!๐๐๐
The fire guy
13.04.2022Hey this video really helped me figure this out! But can you add a chat to the game? It would be super cool
z hamster
13.04.2022Nice intro love the tutoriol 2, Thx for helping me!
EnZon3
13.04.2022100th comment good vid!
~{ยงnรธw-lรธยงt}~
13.04.2022wheres the cloud variable ._.
Drisana Singh
13.04.2022DOES chrome work?
๐ฆ๐ผ๐ป๐ถ๐ฐ๐บ๐ฎ๐๐ถ๐ผ๐ป๐ฐ๐ต
13.04.2022irwens technoligy support
Majin Sonic
13.04.2022helpful
GD Metorenty
13.04.2022how do I make it say who's controlling the other players
GD Metorenty
13.04.2022Itโs working!!!
Thank you so much ๐
This is my first online game on scratch!
I love it!!
fold
13.04.2022Its really good, but for some reason my character when I move it it shakes but still moves. Do you have an answer for that?
C. Michael Neely
12.04.2022๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐๐
TheCharizardCollector
12.04.2022How would you make it so it would only start when both players are in?
piixelgamercat
12.04.2022hey mine isn't working
Ethan Roberts
12.04.2022There is a limit of cloud variables, but I want to have a 4-player game, can someone help
ZAZiattO
12.04.2022Btw giga is a girl ๐
mr fazmeme
12.04.2022i have a question, if i wanted to select my character like for say, a menu? how do i code it to where that player would become who they pick
Dilip Kumar
12.04.2022Will it work if i convert into a apk
Vihaan Gupta
12.04.2022I was thinking of making an adventure game and I can play it with my family but you need to go off screen and how will the other player not see you and they have to go off screen?
MonkeyTime3
12.04.2022for some reason when a another player logs on instead of saying "sorry server full" it just joins anyway and makes 2 people control 1 account how to i fix this? i followed your tutorial.