Discuss Scratch
- Discussion Forums
- » Suggestions
- » New feature for broadcast blocks (arguments)
- Normo
-
Scratcher
14 posts
New feature for broadcast blocks (arguments)
I think you should make “when I receive” blocks be able to have boolean/var blocks in the drop-down. This would make it possible to have different x/y positions activate broadcast blocks, without having to enter them manually.
Last edited by Paddle2See (Jan. 5, 2026 16:59:41)
- Dominic1
-
Scratcher
9 posts
New feature for broadcast blocks (arguments)
Technically, it is possible to stick booleans or reporters into blocks like when I receive, or when key pressed blocks, but its a sort of hackish way.
In case you want to learn how, here's how:
Download the project - it should be a .sb2 file
Change it to a .zip file and extract it
Open “project.json” or whatever it's called
Scroll down until you find your scripts - then change it (I suggest that you add some reporters or variables so you know what to change it to)
Recompress the files, then rename to .sb2 again
Voíla!
In case you want to learn how, here's how:
Download the project - it should be a .sb2 file
Change it to a .zip file and extract it
Open “project.json” or whatever it's called
Scroll down until you find your scripts - then change it (I suggest that you add some reporters or variables so you know what to change it to)
Recompress the files, then rename to .sb2 again
Voíla!
- scimonster
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
Technically, it is possible to stick booleans or reporters into blocks like when I receive, or when key pressed blocks, but its a sort of hackish way.Or just extract it without changing the filetype…
In case you want to learn how, here's how:
Download the project - it should be a .sb2 file
Change it to a .zip file and extract it
Open “project.json” or whatever it's called
Scroll down until you find your scripts - then change it (I suggest that you add some reporters or variables so you know what to change it to)
Recompress the files, then rename to .sb2 again
Voíla!
Or just use procedures.
- 973131413
-
New Scratcher
100+ posts
New feature for broadcast blocks (arguments)
+1, I had a lot of problems while creating my games that would require this feature and I needed to do some walkaraounds, this would be much easier and simpler.
- starlightsparker
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
You mean this ?
<[message v] recieved?::events>If so, that’s rejected, could someone get the quote if this is indeed what this is suggesting?
- 973131413
-
New Scratcher
100+ posts
New feature for broadcast blocks (arguments)
You mean this ?No, they mean something like adding a boolean/var into the broadcast block, like custom blocks work<[message v] recieved?::events>If so, that’s rejected, could someone get the quote if this is indeed what this is suggesting?
- SpyCoderX
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
Like this?You mean this ?No, they mean something like adding a boolean/var into the broadcast block, like custom blocks work<[message v] recieved?::events>If so, that’s rejected, could someone get the quote if this is indeed what this is suggesting?
when I receive [ v] with (a::control) <b::control> ::events hat
say (a::control)
when i receive [goto v] with (x::control) (y::control) ::events hat
go to x: (x::control) y: (y::control)
- BigNate469
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
snipNo, I think the OP means
when I receive <some boolean :: operators>
// and
when I receive (some variable)
But that doesn't make a ton of sense, when this happens why not use a custom block? The only way this would really work is with string concatenation, otherwise it's not all that useful.
- Kanyata
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
What would this accomplish?
A way to transfer data across sprites without variables, and a way to associate a specific value with an event.
Why this?
It is a good alternative to setting a variable when calling an event, which can cause problems if the event is called again before the variable is read.
How would it look?
Something like this:
Multiple arguments could be used
You can adjust the amount of arguments used on the block(Unlike custom blocks, which have you set the amount of arguments when creating them.)
As of now, there are 3 supporters
A way to transfer data across sprites without variables, and a way to associate a specific value with an event.
Why this?
It is a good alternative to setting a variable when calling an event, which can cause problems if the event is called again before the variable is read.
How would it look?
Something like this:
broadcast [Event v] with Argument 1 [Hi] @delInput @addInput:: eventsOther notes
when I receive [Event v] with (Argument 1 ::events) @delInput @addInput:: events hat
say (Argument 1 ::events) for (2) secs
Multiple arguments could be used
You can adjust the amount of arguments used on the block(Unlike custom blocks, which have you set the amount of arguments when creating them.)
As of now, there are 3 supporters
Last edited by Kanyata (Nov. 11, 2025 17:10:34)
- d016
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
so something like
?
Support! This would make things easier.
broadcase [message v] with data: [hi!] :: events
when I receive [message v] with data: [local var v] :: events hat
say (local var)
?
Support! This would make things easier.
Last edited by d016 (Nov. 10, 2025 18:02:43)
- d016
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
-snip-
Something like this:broadcast [ v] with Argument 1 ()
The “Argument 1” implies that you can have more arguments:
broadcast [ v] with arguments: [input 1] [input 2] @delInput @addInput:: events
- Kanyata
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
Im gonna edit the top to make it more clear.
- Quantum-Cat
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
My first thought is that this idea is really close to global custom blocks.
But if this kind of system was to be implemented, it would be better as the events block suggested in the OP, because it is clear that blocks that influence local variables under the (when I receive broadcast block) affect the sprite they are in not the sprite they are called from.
But if this kind of system was to be implemented, it would be better as the events block suggested in the OP, because it is clear that blocks that influence local variables under the (when I receive broadcast block) affect the sprite they are in not the sprite they are called from.
- dizzyboy42
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
support, but would there be a max argument limit? if not you could do this
broadcast [ v] with arguments: [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] @delInput @addInput :: control
- d016
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
support, but would there be a max argument limit? if not you could do thisI don't think you'ld ever need that many inputsbroadcast [ v] with arguments: [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] @delInput @addInput :: control
Even if you could just send one CSV input, broadcast arguments are supported by me!
- Kanyata
-
Scratcher
100+ posts
New feature for broadcast blocks (arguments)
support, but would there be a max argument limit? if not you could do thisYeah there should probably be a max, although I'm not sure what it would be.broadcast [ v] with arguments: [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] [input] @delInput @addInput :: control
- dizzyboy42
-
Scratcher
1000+ posts
New feature for broadcast blocks (arguments)
Yeah there should probably be a max, although I'm not sure what it would be.I'd say 6 maybe 7 (no pun intended)
- Discussion Forums
- » Suggestions
-
» New feature for broadcast blocks (arguments)