(In the Sensing section, a hexagon block (Mainly for Wait Until's)
Basic Idea:
<I receive [SOMETHING]>In Context:
when gf clicked forever if <(variable) = (10)> broadcast [go] end endSprite 2-
when gf clicked scream say [LOUDNESS!] for (18) secs wait until <I receive [go]> set [ghost] effect to [15] switch to costume [costume5] point in direction [90] move [10] stepsOr, of course, (*sigh*), there is the workaround...
when gf clicked set (variable2) to [0] forever if <(variable) = (10)> set (variable2) to [1] end endSprite 2-
when gf clicked scream say [LOUDNESS!] for (18) secs wait until <(variable2) = [1]> set [ghost] effect to [15] switch to costume [costume5] point in direction [90] move [10] stepsBut, anyway, just an idea!
Offline
I think this would be a great new block, it could be really useful
Offline
It would only be true for one millisecond when put in an if or a repeat until block, so it will only really be useful in a wait until block. So either we have
wait until i receive [... v]or
<i received [... v] in the last (2) seconds>Also it would be in the control catagory not the sensing catagory.
Last edited by joefarebrother (2013-04-26 13:05:38)
Offline
joefarebrother wrote:
Also it would be in the control catagory not the sensing catagory.
([x position v] of [sprite1 v])is in sensing.
Offline
Hyperbola wrote:
joefarebrother wrote:
Also it would be in the control category not the sensing catagory.
([x position v] of [sprite1 v])is in sensing.
I know, but broadcasts are part of the control category so it doesn't make sense to have a broadcast-related block in a different category.
Offline
<I recieve [message1 v]>is a good idea!
Offline
Do you really think there's no reason why the ST hasn't ever added this?!? The boolean needs to report true/false, right? But that's only when the script is checking for it. Try single stepping and think about it. This block isn't realistic. It's a good, but unlikely idea, as this block would almost NEVER report true. I'd support if it was realistic.
Offline
It's actually quite easy to put in (at least for scratch 1.4, it's in the block library) and works perfectly in wait untils and repeat untils.
Offline
joefarebrother wrote:
It would only be true for one millisecond when put in an if or a repeat until block, so it will only really be useful in a wait until block. So either we have
wait until i receive [... v]or<i received [... v] in the last (2) seconds>Also it would be in the control catagory not the sensing catagory.
Or,
<I ever recieved [message1 v]>
Offline