Discuss Scratch
- Discussion Forums
- » Suggestions
- » Improving broadcasts
- dhfbei8987
-
Scratcher
1000+ posts
Improving broadcasts
You have my full support. The workaround would most likely malfunction, and this helps target broadcasts at certain sprites.
My only concern is….. Could you do it to two sprites with one block?
No edit and king of the page!
My only concern is….. Could you do it to two sprites with one block?
No edit and king of the page!
- MrFluffyPenguins
-
Scratcher
1000+ posts
Improving broadcasts
My only concern is….. Could you do it to two sprites with one block?No, but you would be able to just do this for the same effect:
broadcast [message1 v] to [Sprite1 v] :: events
broadcast [message1 v] to [Sprite2 v] :: events
- dhfbei8987
-
Scratcher
1000+ posts
Improving broadcasts
- big fat sni[-Ah, got it
No, but you would be able to just do this for the same effect:broadcast [message1 v] to [Sprite1 v] :: events
broadcast [message1 v] to [Sprite2 v] :: events
- 216138
-
Scratcher
100+ posts
Improving broadcasts
Semi-Support. I use variables for these type of things. for example a
when brodcast recived
if = DIS SPRITE CAN RECIVE IT? = 1
then do da thing
else
“ ”
when brodcast recived
if = DIS SPRITE CAN RECIVE IT? = 1
then do da thing
else
“ ”
- ninjaMAR
-
Scratcher
1000+ posts
Improving broadcasts
Support! I would use this to run large games needing a bridge to other sprites.
- electrogame02
-
Scratcher
500+ posts
Improving broadcasts
Who cares about broadcasting for only specific sprites? You can easily ignore it, what we really need is a broadcast reporting Data values or is useless aside from changing scenes.
broadcast [ a message with data v] (Data) ::events
when I receive [A message with data v] (Data) ::events hat
play sound (Data)
- 216138
-
Scratcher
100+ posts
Improving broadcasts
Who cares about broadcasting for only specific sprites? You can easily ignore it, what we really need is a broadcast reporting Data values or is useless aside from changing scenes.Theres a post actually a lot similar just with a different name that herebroadcast [ a message with data v] (Data) ::events
when I receive [A message with data v] (Data) ::events hat
play sound (Data)
- Scratchperson1000000
-
Scratcher
500+ posts
Improving broadcasts
there's a workaround:
support
when gf clickedwhich is similar to
set [broadcast to whatever sprite v] to (0)
...
set [broadcast to whatever sprite v] to (1)
if <(broadcast to whatever sprite) = (1)> then
...
send [ v] to [ v] :: eventsbut some new scratchers probably wouldn't know what variables are
support
- dhfbei8987
-
Scratcher
1000+ posts
Improving broadcasts
there's a workaround:That workaround does not work at all.when gf clickedwhich is similar to
set [broadcast to whatever sprite v] to (0)
...
set [broadcast to whatever sprite v] to (1)
if <(broadcast to whatever sprite) = (1)> then
...send [ v] to [ v] :: eventsbut some new scratchers probably wouldn't know what variables are
support
- BrowserExtension
-
Scratcher
100+ posts
Improving broadcasts
I don't see why we need this, you can have one sprite listening.
- bluedragon8633
-
Scratcher
1000+ posts
Improving broadcasts
I don't see why we need this, you can have one sprite listening.For projects with lots of broadcasts (I have one that has over 40 broadcasts) it's annoying to have to sort through all 40 when most are only being used by specific sprites.
- dertermenter
-
Scratcher
1000+ posts
Improving broadcasts
This would definitely make the broadcast drop-down lest cluttered, but is it that useful? I personally don't really mind if 1 broadcast is for 1 sprite but is still in the editor for others.
- electrogame02
-
Scratcher
500+ posts
Improving broadcasts
Are you a Masochist but want to have less broadcast in the drop-down menu? Make an array of events and an array for sign if checked.
- Scratchperson1000000
-
Scratcher
500+ posts
Improving broadcasts
sorry, I mean this could work, script for first sprite:there's a workaround:That workaround does not work at all.when gf clickedwhich is similar to
set [broadcast to whatever sprite v] to (0)
...
set [broadcast to whatever sprite v] to (1)
if <(broadcast to whatever sprite) = (1)> then
...send [ v] to [ v] :: eventsbut some new scratchers probably wouldn't know what variables are
support
set [broadcast to sprite v] to (1)script for second sprite:
if <(broadcast to sprite) = (1)> thenthen if you want to broadcast to that sprite multiple times just make multiple variables
...
wait (0.001) secs
set [broadcast to sprite v] to (0)
Last edited by Scratchperson1000000 (March 21, 2021 17:03:38)
- foursquaremaster000
-
Scratcher
100+ posts
Improving broadcasts
support. This would be very useful and make it so you don't have to make a ton of broadcasts
Last edited by foursquaremaster000 (March 21, 2021 18:15:13)
- dhfbei8987
-
Scratcher
1000+ posts
Improving broadcasts
Don't quote the op, or at least snip it.-snip-support. This would be very useful and make it so you don't have to make a ton of broadcasts
It could be useful, even if there's a workaround. There's no downside to adding this.
Options for 2nd dropdown:
all - sends broadcast to all sprites
name of a sprite - sends a broadcast to that specific sprite
myself - sends a broadcast only to the sprite that sent the broadcast
stage - sends a broadcast to the stage
- foursquaremaster000
-
Scratcher
100+ posts
Improving broadcasts
support. Don't quote the op, or at least snip it.o sorry, removed the quote
Last edited by foursquaremaster000 (March 21, 2021 18:15:37)
- Discussion Forums
- » Suggestions
-
» Improving broadcasts









