New(ish) block q&a: what does "broadcast message" mean?

@Waffle what does broadcast message mean?

7 Likes

Do you know scratch?

3 Likes
4 Likes

@Leaders this should be a new topic a few people have been asking this.


It broadcasts a message.
Basically, there is a list. Usually it is empty, but broadcast message adds the value of its parameter to this list. You can use “when I hear message” and “when message matches” to check if some message is in the list.

You can use this to tell other objects what to do, or even tell the current object what to do.

It’s not actually a list, it’s two sets, but that is harder to explain with.

9 Likes

Broadcast message will send a message to other objects in your projects without variable changes. If you want an object to act, just type

4 Likes

The exact block description is: This block will broadcast a message of your choosing. Then, if you create a rule using the ‘When I get message’ block, the rule will execute when the message gets broadcasted.

For example, When game starts: broadcast message (hi) When I get message (hi): set text to (hello)

2 Likes

It’s something like sending a message

Imagine someone has trained a dog. When the person says “Greenery,” the dog will not do the action for “Sit.” But if the person says “Sit,” the dog will sit.

So that is how the broadcast message block works. If one object broadcasts the message, “Llama” another object or multiple other object will do the action for “Llama,” while if a block broadcasts the message “Emoji” the other objects won’t do the “Llama” action, they would do the “Emoji” action if they have something to do.

When you broadcast an message, use a when i (hear?) message block to sent the messages

When you brocast one, e.g sun, then you say, when I get a message ‘sun’, then set invisibility 0 or something

Oh I was gonna say but people did already

1 Like

Guys. I tested the block. You can go to MethylBTD on the hs app and see my latest post.

1 Like

Try to test every block…each of them have its use

Ok, nice idea

@Albus_Dumbledore Nope. But my school thought me very little.

2 Likes

He asked that because this block is in scratch

1 Like

Alright then.

Broadcast Message sends out a public message, that is visible by all objects in a project.

If you decide to “get message” then you would add the purple block

When I get Message (Insert Message Name)

And then you can Insert Your Code inside of the purple block.

1 Like