Check this: what if we combined the <wait until> and <when I receive[ blocks? It would reduce guesswork of how many seconds to wait for X to happen.
Offline
That could be nice, but they said it's like impossible or something. So in the meantime, use variables. When I receive, set variable to blank and wait until variable equals blank
Offline
How would <I receive> work? It's not really possible, because true/false blocks are always either true or false, whereas a broadcast just happens. It's a split-second action, not a constant state, like <mouse down>. The mouse is always either up or down. In the meantime, use:
When send button clicked:
set broadcastComplete to 0
broadcast send and wait
set broadcastComplete to 1
Then, if you wanted, say, a loading animation while the broadcast "send" did its thing, use:
When I receive send:
show
repeat until broadcastComplete=1
next costume
end repeat
hide
Does this help?
Last edited by fullmoon (2008-07-03 12:02:26)
Offline
I see where you're going, but it doesn't exactly answer my question. I made a quick project to test your idea (with a little twist). http://scratch.mit.edu/projects/XD_Master/204823
Offline