Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Scratch Client

Mike J. Renaker / "MikeDEV edited this page Sep 29, 2023 · 2 revisions

Work in progress!

It is assumed that you have knowledge of how to program in Scratch. If you don't, what are you even doing here?

Need to run multiple threads?

Check this out: TermOfficial/cloudlink-multithread-example

Some sample scripts

Managing connections

To make a connection:

example-connections

To handle disconnects:

example-disconnects

Setting a name

example-setname

Linking to rooms

example-links

Safety tips

Here are some safety tips when using the Scratch Extension. I put this here so you don't accidentally crash your browser (or your server), losing hours of unsaved work.

Don't try to make more than one connection at a time!

This can lead to unsafe or unpredictable behavior. Managing multiple connections using Scratch is a pain. I don't plan on implementing support for multiple connections.

Don't run CloudLink in more than one sprite/ don't use it in clones!

Running CloudLink in more than one sprite or inside a clone can lead to unpredictable behavior.

Don't spam messages!

To keep your client/server(s) from catching fire, sending messages in a forever loop is not recommended without delay.

dontdothis dothis1 dothis2