Probably not the first time someone has submitted a post under this title, but I couldn't think of anyhting more original.
Here goes:
I am looking at a book with some scratch projects in it, and one of the projects is 'Quizzes'. I am looking at a script that goes something like this:
When green flag clicked
set counter to 0
ask "What is the capital of france?" and wait
If answer = paris
say correct for 1 sec
change counter by 1
else
say "sorry, the correct answer is" for 1 secs
say "Paris" for 2 secs
I can see where just about how everything was put together, except for the third line. It looks as though it came from the 'blue' sensing blocks, but I can't see an "Ask" script anywhere. What am I missing?
Offline
lowrieh1 wrote:
Probably not the first time someone has submitted a post under this title, but I couldn't think of anyhting more original.
Here goes:
I am looking at a book with some scratch projects in it, and one of the projects is 'Quizzes'. I am looking at a script that goes something like this:
When green flag clicked
set counter to 0
ask "What is the capital of france?" and wait
If answer = paris
say correct for 1 sec
change counter by 1
else
say "sorry, the correct answer is" for 1 secs
say "Paris" for 2 secs
I can see where just about how everything was put together, except for the third line. It looks as though it came from the 'blue' sensing blocks, but I can't see an "Ask" script anywhere. What am I missing?
It is in sensing, at the very top.
Offline
The default is
Ask "what is your name" and wait
Offline