This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2008-07-02 13:18:35

XD_Master
Scratcher
Registered: 2008-04-12
Posts: 23

New Brodcast Block

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

 

#2 2008-07-02 13:19:54

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: New Brodcast Block

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


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#3 2008-07-03 12:02:08

fullmoon
Retired Community Moderator
Registered: 2007-06-04
Posts: 1000+

Re: New Brodcast Block

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)


http://i302.photobucket.com/albums/nn100/fullmoon32/wow.jpg

Offline

 

#4 2008-07-03 17:04:01

XD_Master
Scratcher
Registered: 2008-04-12
Posts: 23

Re: New Brodcast Block

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

 

Board footer