(In the Sensing section, a hexagon block (Mainly for Wait Until's)
Basic Idea:
In Context:I receiveSOMETHING
Sprite 2-whenclicked
foreverifvariable=10broadcastgo
Or, of course, (*sigh*), there is the workaround...whenclicked
screamsayLOUDNESS!for18secswait untilI receivegosetghosteffect to15switch to costumecostume5point in direction90move10steps
Sprite 2-whenclicked
setvariable2to0foreverifvariable=10setvariable2to1
But, anyway, just an idea!whenclicked
screamsayLOUDNESS!for18secswait untilvariable2=1setghosteffect to15switch to costumecostume5point in direction90move10steps
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
orwait until i receive... ▼
Also it would be in the control catagory not the sensing catagory.i received... ▼in the last2seconds
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.
is in sensing.x position ▼ofsprite1 ▼
Offline
Hyperbola wrote:
joefarebrother wrote:
Also it would be in the control category not the sensing catagory.
is in sensing.x position ▼ofsprite1 ▼
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
is a good idea!I recievemessage1 ▼
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
orwait until i receive... ▼Also it would be in the control catagory not the sensing catagory.i received... ▼in the last2seconds
Or,
I ever recievedmessage1 ▼
Offline