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

#1 2011-01-03 08:54:53

stilmen
New Scratcher
Registered: 2011-01-03
Posts: 2

how do you make Q and A ???!!! it's aggrovating!

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

 

#2 2011-01-03 09:02:31

werdna123
Scratcher
Registered: 2010-06-12
Posts: 1000+

Re: how do you make Q and A ???!!! it's aggrovating!

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

 

#3 2011-01-03 09:07:56

stilmen
New Scratcher
Registered: 2011-01-03
Posts: 2

Re: how do you make Q and A ???!!! it's aggrovating!

thx i am not a noob but is evil!!

Offline

 

#4 2011-01-05 18:15:13

anion
Scratcher
Registered: 2009-09-26
Posts: 32

Re: how do you make Q and A ???!!! it's aggrovating!

<when green flag clicked><ask(1+!)and wait><when green flag clicked><forever if><(answer<=>2)><broadcast[q2


http://mushroomsock.dragonadopters.com/dragonanimated_751621.gif

Offline

 

#5 2011-01-06 08:53:46

The_Dancing_Donut
Scratcher
Registered: 2010-08-03
Posts: 1000+

Re: how do you make Q and A ???!!! it's aggrovating!

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)


Offending strangers since 2010.

Offline

 

#6 2011-01-06 11:45:55

technoguyx
Scratcher
Registered: 2008-10-18
Posts: 1000+

Re: how do you make Q and A ???!!! it's aggrovating!

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.  wink  If you want your project to give an specific answer to a question, however, you can do something like this:

http://i53.tinypic.com/2rpycmo.gif

The asking command is meant to let you, the user, interact with a project by writing. Hope this helps.  smile


http://getgnulinux.org/links/en/linuxliberated_4_78x116.png

Offline

 

#7 2011-01-07 10:46:48

cheezecumber
Scratcher
Registered: 2010-11-21
Posts: 63

Re: how do you make Q and A ???!!! it's aggrovating!

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.


http://i.imgur.com/0YXMc.gif

Offline

 

Board footer