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

#1 2010-05-06 13:14:58

benjamin2
Scratcher
Registered: 2008-10-18
Posts: 1000+

(When I recieve) new block

The When I Recieve block at the start of a script is good, but I think it could be inside scripts as well. Look at the example below.

When green flag clicked

go to x : 0 y : 0

forever

        wait 1 secs

        move 10 steps

        wait until ( I recieve (        ) )

        move 10 steps




So it basically would wait until it recieved the message and then would allow the script to continue.


http://i.imgur.com/gp6tZ.gif

Offline

 

#2 2010-05-06 13:23:16

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: (When I recieve) new block

This has been suggested MANY times, and it's NOT POSSIBLE.
For that, you could use a variable.

But because of the way broadcasts work (I think...), you can't detect the moment it's broadcasted like that.


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

Board footer