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.
Leave a Reply