Discuss Scratch

asdfghjkl28845
Scratcher
64 posts

WE NEED THIS BLOCK!!! [I receive message boolean]

Scratch Team,
Scratch brodcasting would be so much easier if only we had this block:
<i receive [ v]>

Last edited by Paddle2See (Dec. 18, 2014 13:19:19)

VoltageGames
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

An “if I receive” would function exactly like
when I receive [ v]

no support.
Langdon35
Scratcher
500+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

We don't need this block

VoltageGames wrote:

An “if I receive” would function exactly like
when I receive [ v]

no support.
We already have it.
asdfghjkl28845
Scratcher
64 posts

WE NEED THIS BLOCK!!! [I receive message boolean]

VoltageGames wrote:

An “if I receive” would function exactly like
when I receive [ v]

no support.

Ah, but this could be in a script like

when green flag clicked
forever
say [Hi. ] for [2] secs
if <i receive [stop talking v]> then
stop [this script v]

end

end

Last edited by asdfghjkl28845 (Dec. 17, 2014 21:25:31)

asdfghjkl28845
Scratcher
64 posts

WE NEED THIS BLOCK!!! [I receive message boolean]

Langdon35 wrote:

We don't need this block

VoltageGames wrote:

An “if I receive” would function exactly like
when I receive [ v]

no support.
We already have it.

The if i recieve block?

Last edited by asdfghjkl28845 (Dec. 17, 2014 21:24:28)

The_Grits
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

asdfghjkl28845 wrote:

VoltageGames wrote:

An “if I receive” would function exactly like
when I receive [ v]

no support.

Ah, but this could be in a script like

when green flag clicked
forever
say [Hi. ] for [2] secs
if <i receive [stop talking v]> then
stop [this script v]

end

end

The ‘When I receive block’ runs forever, no need for this block really. Keep on thinking up ideas for improving Scratch though!
stickfiregames
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

asdfghjkl28845
Scratcher
64 posts

WE NEED THIS BLOCK!!! [I receive message boolean]

stickfiregames wrote:

Read the sticky
Oh. Closed.
cwrivera99
Scratcher
500+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

asdfghjkl28845 wrote:

Scratch Team,
Scratch brodcasting would be so much easier if only we had this block:
<i receive [ v]>
http://scratch.mit.edu.ezproxyberklee.flo.org/discuss/topic/4789/?page=1#post-26545

jvvg wrote:

Before making a suggestion, be sure to check this topic for stuff that's already been suggested.

Suggestions that have been rejected

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.
Cyoce
Scratcher
500+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

What about
(I am receiving [message1 v]?::events)
This would clear up much of the ambiguity.
stickfiregames
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

Cyoce wrote:

What about
<I am receiving [message1 v]?::events>
This would clear up much of the ambiguity.
A broadcast is an event, so unless it was fired in the same frame (or tick, probably) as the boolean was tested, it wouldn't be detected. That in itself might cause some confusion.

There are some boradcast blocks that would work though:
wait until I receive [broadcast v] :: events

repeat until I receive [broadcast v] :: events cstart
end

(time since [broadcast v] received :: events)
benandwren
Scratcher
28 posts

WE NEED THIS BLOCK!!! [I receive message boolean]

when this sprite clicked
when this sprite clicked<key [Speed is key!!!] pressed?>
if <Speed is key> then
show list [Bosses]

end


broadcast [This would work though]

Last edited by benandwren (Dec. 18, 2014 09:33:03)

ChocolatePi
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
read the stickies
joshuaho
Scratcher
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

I'm pretty sure that this suggestion won't be implemented because of the reasons below:
<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.

Its always a good idea to read the stickies at the top of the forum page before posting.
Paddle2See
Scratch Team
1000+ posts

WE NEED THIS BLOCK!!! [I receive message boolean]

joshuaho wrote:

I'm pretty sure that this suggestion won't be implemented because of the reasons below:
<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.

Its always a good idea to read the stickies at the top of the forum page before posting.

Thanks for looking that up!

Yeah, I actually pushed pretty hard to get this added to Scratch 2.0 - but as we thought about it more, it became clear that it didn't really fit in with the idea of messages - you need something that will preserve (and clear) the history state of the message - so you probably need variables. So instead of implementing something ill-defined and complicated to understand, it was decided to give people other ways to end a repeated action, with expanded options in the Stop block.

Powered by DjangoBB