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

#1 2009-12-26 20:10:13

domosinc
Scratcher
Registered: 2009-12-26
Posts: 2

Help with 'wait until' function

it refuses to wait until menu=3, and starts immediately...
http://img690.imageshack.us/img690/7571/brokenscript.gif
does anybody know why, and/or how to fix it so it waits until menu=3, like it's suupossed to?

Offline

 

#2 2009-12-26 20:32:06

scmb1
Scratch Team
Registered: 2009-03-19
Posts: 1000+

Re: Help with 'wait until' function

I'm assuming that you set menu to something other than three on another script. If so, the problem could be that since the wait until block is right after the green flag, it doesn't have time to change. Try adding another wait block (like wait 0.5 seconds) before the wait until.


http://i48.tinypic.com/2z5pqad.png

Offline

 

#3 2009-12-27 09:27:52

andrewcevery
Scratcher
Registered: 2008-03-23
Posts: 28

Re: Help with 'wait until' function

Your problem is very obvious but a common mistake.
but a
[blocks]<set{ menu }to(0)
[/blocks]
just after the
[blocks]<when green flag clicked>[/blocks]

Offline

 

#4 2009-12-27 18:37:16

domosinc
Scratcher
Registered: 2009-12-26
Posts: 2

Re: Help with 'wait until' function

i managed to fix it by creating a broadcast system

Offline

 

Board footer