Host a secret chat using Mesh

Common Variables, Not Identical Programs

My sample program is meant to be identical for all users in the Mesh session. However, that is not a requirement to use Mesh. The requirement is that each project needs to have common variables and broadcasts.

One way you could take advantage of this feature is to have a host project and a client project with a different set of features. Presumably, the client project would be less privileged or less capable than the host.

If users connected to a Mesh session want to interact with one another while using completely different projects, then each user will need to create identical variables and broadcasts in his or her project. In other words, joining a Mesh session doesn't automatically add the global variables and broadcasts to the project. Happy Scratchin'.

The Author

Michael Badger authored the Scratch (1.4 and 2.0) Beginner's Guide series from Packt Publishing. Learn more and get this project source at http://scratchguide.com.

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