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

#1 2010-11-04 10:08:24

samiamsam
Scratcher
Registered: 2010-11-03
Posts: 11

wait

scratch should have a wait category.
like wait for broadcast, wait for touching color etc.

Offline

 

#2 2010-11-04 10:23:20

06dknibbs
Scratcher
Registered: 2008-01-29
Posts: 1000+

Re: wait

There's already 2 wait blocks that work in most situations like this:

[blocks]<wait( 5 )secsc>[/blocks]

Waits a set amount of time and the continues the rest of the script.


[blocks]<wait until>[/blocks]

The more useful of the two, waits until whatever action is inside of it is complete and then continues the script. Eg:


[blocks]<wait until><touching color[ white [/blocks]

[blocks]<wait until><( <{ Variable }> <=> 10 )>[/blocks]

Etc:

A wait until I recieve (wait for broadcast) block could be very useful though!  big_smile

Last edited by 06dknibbs (2010-11-04 10:24:14)


http://i404.photobucket.com/albums/pp129/06dknibbs/Untitled-3-6.jpg

Offline

 

#3 2010-11-04 11:09:53

poopo
Scratcher
Registered: 2009-09-20
Posts: 1000+

Re: wait

Yes those would be nice. smile  But I find the current blocks sufficient.


http://i45.tinypic.com/28rnqki.jpg

Offline

 

Board footer