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

#1 2012-01-25 14:57:18

neta111
New Scratcher
Registered: 2012-01-25
Posts: 2

ask() and wait keeps waiting after answer entered

Hi,

I have a very simple script, no loops etc., at some point I ask() and wait, and there I have an if/else. Very simple, I think.
If I run the script normally, after the answer is entered, the window for entering an answer reappears. I don't understand why.
If I run the script by selecting it in the script pane, the problem does not occur.
Is this a Scratch bug or am I doing something wrong?

Thanks a lot for your help...

Offline

 

#2 2012-01-25 15:13:07

TRocket
Scratcher
Registered: 2009-08-18
Posts: 1000+

Re: ask() and wait keeps waiting after answer entered

this is because pressing the enter key also presses the green flag... try pressing the tick at the end of the answer box instead.

Hope this helps  smile


http://i.imgur.com/1QqnHxQ.png

Offline

 

#3 2012-01-25 17:41:11

neta111
New Scratcher
Registered: 2012-01-25
Posts: 2

Re: ask() and wait keeps waiting after answer entered

Yes, it helped! thanks a lot! is there any simple way to prevent "enter" from pressing the green flag?

Offline

 

Board footer