Discuss Scratch
- Discussion Forums
- » Suggestions
- » Solutions and viable alternatives to the <broadcast [] received> boolean
- jokebookservice1
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
supportHi there, please add to the discussion

- Sigton
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
supportHi there,
When you're replying to suggestions, please don't simply post ‘support’ or ‘no support’. Instead, be sure to give reasons behind your opinion; why you support or no support. Also, if you can please try to come up with ideas to improve the suggestion. To learn how to be constructive when replying to suggestions, read this sticky.
Sigton
EDIT: Ninja'd by JBS xP
Last edited by Sigton (Dec. 28, 2016 19:37:05)
- Charles12310
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
https://scratch.mit.edu/discuss/topic/274129/?page=1#post-2790461
Support, but I also requested for booleans that could avoid this ambiguity too.
Since these blocks you suggested lead to the broadcast being received in any circumstances, I believe this will work out.
Suggesting broadcast booleans are hard. They are used to simulate the “When I Receive” block, except inside another script, just like key pressing and when backdrop switches to.
Support, but I also requested for booleans that could avoid this ambiguity too.
Since these blocks you suggested lead to the broadcast being received in any circumstances, I believe this will work out.
repeat until [ v] is broadcasted {
...
} :: control
wait until [ v] is broadcasted :: controlSuggesting broadcast booleans are hard. They are used to simulate the “When I Receive” block, except inside another script, just like key pressing and when backdrop switches to.
- walkcycle
-
Scratcher
500+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
- Randomness-TV
-
Scratcher
100+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
Support for
(last broadcast) ::events
- walkcycle
-
Scratcher
500+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
workaround
then
when I receive [. . . v]
add [. . .] to [list v]
then
(item (last v) of [list v] :: list)
- Randomness-TV
-
Scratcher
100+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
workaroundTrue, butwhen I receive [. . . v]
add [. . .] to [list v]
then(item (last v) of [list v] :: list)
go to x: (0) y: (0)is a workaround
- stickfiregames
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
That would be no different to the current repeat until <> block, which only checks for the condition once per loop and doesn't skip if the condition becomes true halfway through the loop.
The problem with this one is that the scripts need to check for the broadcast at the top of the loop. It can't do that in the scripting in-between.
- Sheep_maker
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
The repeat until _ block requires a boolean, and the message _ received? block is rejected. Merging the two blocks together ensures that the boolean isn't used in ambiguous contextsThat would be no different to the current repeat until <> block, which only checks for the condition once per loop and doesn't skip if the condition becomes true halfway through the loop.
The problem with this one is that the scripts need to check for the broadcast at the top of the loop. It can't do that in the scripting in-between.
- stickfiregames
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
I meant the behaviour regarding when it exits the loop would be the same. The blocks would be different, as the OP says.The repeat until _ block requires a boolean, and the message _ received? block is rejected. Merging the two blocks together ensures that the boolean isn't used in ambiguous contextsThat would be no different to the current repeat until <> block, which only checks for the condition once per loop and doesn't skip if the condition becomes true halfway through the loop.
The problem with this one is that the scripts need to check for the broadcast at the top of the loop. It can't do that in the scripting in-between.
- Za-Chary
-
Scratcher
1000+ posts
Solutions and viable alternatives to the <broadcast [] received> boolean
I'm going to redirect the conversation over to this thread. Although it's not as old as this topic, it has more discussion, a lot of which is quite recent.
Feel free to continue the discussion in the link above.
Feel free to continue the discussion in the link above.
- Discussion Forums
- » Suggestions
-
» Solutions and viable alternatives to the <broadcast [] received> boolean







