Discuss Scratch

_nix
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

I saw somebody suggest “a block which can broadcast messages between projects”, and of course remembered the old Scratch 1.4 feature called Mesh. I thought, could this be done in Scratch 3.0? And it turns out: yes, definitely yes!

I'll spare the technical details (but you can look here if you're curious). Basically, I made an extension with these two blocks:

when I receive [hello] from another tab :: #0FBD8C hat

broadcast [hello] to other tabs :: #0FBD8C

I definitely have plans to add more blocks – specifically to broadcast data alongside a message.

Ideas for more blocks and general input are welcome!

Last edited by _nix (Oct. 18, 2018 18:53:59)


══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
_nix
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

I added two new blocks:

broadcast [message] with data [data] :: #0FBD8C
(received data :: #0FBD8C)

They're pretty self-explanatory. Here's a demo! In one project:



..then in another project:



══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
nightuser
Scratcher
24 posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

Nice! Is it in a project? Or Scratch X?

Heyooooo
I'm back my boiis
_nix
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

nightuser wrote:

Nice! Is it in a project? Or Scratch X?
Thanks! It's sort of like ScratchX, but it's a Scratch 3.0 extension, meaning it's written with code that only works with 3.0, not ScratchX. You have to run and modify Scratch's source code locally (downloaded to your own computer) to run it; it's a bit of a hassle, unfortunately.

══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
nightuser
Scratcher
24 posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

Oh! Thanks– Is the code on Stack Overflow?

Also- Thanks for being so kind about it!

Heyooooo
I'm back my boiis
_nix
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

nightuser wrote:

Oh! Thanks– Is the code on Stack Overflow?

Also- Thanks for being so kind about it!
Nah, it's exclusively in a local repository on my computer.

Of course!

══ trans autistic lesbian enbydoggirls // 16 17 18 19 20, she/they
sparrows one word to the paragraph // <3 // ~(quasar) nebula
nightuser
Scratcher
24 posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

Oh!

Thanks! U Lit!

add [_nix is cool] to [notes]

Heyooooo
I'm back my boiis
pobloecat
Scratcher
4 posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

is there a version that can send brodcast between devices, istead of just tabs?

Also is there any where to download this extension?

Last edited by pobloecat (May 10, 2020 22:40:49)

--Explosion--
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

pobloecat wrote:

is there a version that can send brodcast between devices, istead of just tabs?

Also is there any where to download this extension?
That would be really cool.

Last edited by kaj (Tomorrow 00:00:00)
✰✩✭✴★--Explosion--★✴✭✩✰
Forum helper | boy | platformers | 14yrs | guitar | website


A-E-
Scratcher
100+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

pobloecat wrote:

is there a version that can send brodcast between devices, istead of just tabs?

Also is there any where to download this extension?
This could be made with webRTC.
scratchusername40
Scratcher
1000+ posts

Scratch 3.0 Mesh "Browser Broadcast" Extension - input and ideas?

You should put it on GitHub so other people can use it


















Powered by DjangoBB