Host a secret chat using Mesh

Secret Code

With Mesh, an unlimited number of Scratch projects can interact by using variables and broadcasts over a local network. We show how to communicate across Mesh by building a multiuser chat program.

Scratch has a secret feature called Mesh that enables multiple projects to interact with one another via broadcasts and variables. To demonstrate the feature, I'll show you how to create a simple chat program, as seen in Figure 1.

Figure 1: Enable the chat and people blocks to display on the stage and create the chat history.

Depending on your version of Scratch, Mesh might already be enabled. You can check by holding down the Shift key while clicking the Share menu. If you see additional menu items with the word Mesh, you're ready to go. If you do not have the Mesh options under the Share menu, then you need to enable it.

[...]

Use Express-Checkout link below to read the full article (PDF).

Buy this article as PDF

Express-Checkout as PDF

Pages: 4

Price $2.95
(incl. VAT)

Buy Raspberry Pi Geek

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content