Discuss Scratch

Savio-5002
Scratcher
45 posts

I recieve _______ block

Do you think you could add a “I receive _ block”?
Here's an example:
<I receive []>
And here's it being used:
repeat until <I receive []>

end

wait until <I receive []>
Never mind, it's clearly a bad idea.

Last edited by Savio-5002 (Aug. 28, 2016 14:13:34)

agarraga
Scratcher
500+ posts

I recieve _______ block

9. <broadcast received> boolean
There is way too much ambiguity to how this would work. Would it return true of the broadcast was fired at any point since the project was created, since the green flag was clicked, since something else was broadcasted, etc.? If you really want to do something like this, instead just make a variable and set it to 1 and use the equals block.
christianxyz
New Scratcher
100+ posts

I recieve _______ block

agarraga wrote:

9. <broadcast received> boolean
There is way too much ambiguity to how this would work. Would it return true of the broadcast was fired at any point since the project was created, since the green flag was clicked, since something else was broadcasted, etc.? If you really want to do something like this, instead just make a variable and set it to 1 and use the equals block.

Savio-5002 wrote:

Do you think you could add a “I receive _ block”?
Here's an example:
<I receive []>
And here's it being used:
repeat until <I receive []>

end

wait until <I receive []>



<I recieve ::events> //block
edward789121
Scratcher
500+ posts

I recieve _______ block

you mean
wait until i recieve [ v] ::events
repeat until i recieve [ v]{} ::events
if not, this is already rejected by the stickies.
Harakou
Scratcher
1000+ posts

I recieve _______ block

Hi! Please check out our list of stuff not to suggest - while we can see how such a block might be useful, it has the problem of being a bit ambiguous, meaning that it might not behave as expected in a lot of situations. Because of this, we don't intend to implement it, sorry.

jvvg wrote:

9. <broadcast received> boolean
There is way too much ambiguity to how this would work. Would it return true of the broadcast was fired at any point since the project was created, since the green flag was clicked, since something else was broadcasted, etc.? If you really want to do something like this, instead just make a variable and set it to 1 and use the equals block.

Keep thinking of ideas!

Powered by DjangoBB