It gets really annoying to have a cap block as the only way to receive broadcasts, so for Scratch 2.0 I would like something else:
if <I receive (broadcast v)> do stuff.
Offline
For now,
broadcast [whatevs v]
when I receive [whatevs v] set [I received whatevs v] to [yes]
forever if <(I received whatevs)=[yes]> do stuff
Offline
This gets suggested all the time, and it's not necessarily a bad idea, but it's not clear exactly how this would work. Because a broadcast is an event, it only happens for an instant. But Ifs normally look at things that stay true (or false) until something changes them, like "does X = 3" or "am I touching red".
Offline
when gf clicked say [Please read!!!]Yeah, there are two types of triggers, instantaneous and continuous. Instantaneous only gives one quick trigger, and continuous gives a long trigger. You are suggesting essentially a
<[broadcast v] is being recieved>A broadcast, however, you can't expect to get in the middle of a script: the if and broadcast would need to go at the exact same time. A broadcast is never 'being recieved'; but it can 'be recieved'. You can't expect when a broadcast comes, unless you use the same conditions and are lucky, which is useless, to broadcast and to expect a broadcast! This is absolutely useless, you can make it much simpler and most of the time it won't work! There is NO use AT ALL for this!
<[broadcast v] was sent>as it turns 'broadcast' into a continuous trigger.
Last edited by likegames (2012-05-31 10:38:39)
Offline
I would really enjoy a dropdown/text rather than dropdown, good idea, but the main idea has been requested about a thousand times
Offline
I think one of the two following blocks will be better:
If <<last broadcast received>=[something]> Do stuff End If <broadcast [something v] received in next (2) secs> Do stuff End
Last edited by joefarebrother (2012-06-07 03:43:33)
Offline