Pages: 1
Topic closed
i am having a huge difficulty with question and answer and would like to know how to do it. call me dumb but it is hard to make it. i know about the" ask _____ and wait but i don't know how to get the answer function.
Offline
Well if yo want to know if the answer is a specific thing do this:
ask: blah blah blah
if <(answer) = [blah blah blah]>
do this
Probably didn't help much...
Offline
Pretty much what Werdna said:
<when green flag clicked>
Ask: Put the question here.
<if><( Answer <=> What you want the ANSWER to be )>
(Do whatever)
Last edited by The_Dancing_Donut (2011-01-06 08:54:10)
Offline
You were probably thinking Scratch would give you an specific answer to the question. Actually, the (answer) block is a variable set to what you answer to the question. If you want your project to give an specific answer to a question, however, you can do something like this:
The asking command is meant to let you, the user, interact with a project by writing. Hope this helps.
Offline
stilmen wrote:
i am having a huge difficulty with question and answer and would like to know how to do it. call me dumb but it is hard to make it. i know about the" ask _____ and wait but i don't know how to get the answer function.
Well, you can use these blocks for each sprite.
<when green flag clicked>
<say[ ]for( )secs>
<wait( )secsc>
Here's how you do it: Use green flag if you want, to start the q and a. While one sprite is talking, the other one should have <wait( )secsc> after their sentence. Then, you just put
<say[ ]for( )secs> and <wait( )secsc>, one after the other, until all the questions are answered.
Offline
Topic closed
Pages: 1