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

#1 2013-03-08 14:13:04

cheeseeater
Scratcher
Registered: 2013-02-04
Posts: 100+

How do you answer a question

Hello, i am wondering how to make my projects ask questions.........and make the player answer the question the question correctly.

E.g. (Game)what is 5+5?    (Player)2?   (Game) Try again!

Can someone please tell me how to do this? Thanks, Cheeseeater.

Offline

 

#2 2013-03-08 14:18:17

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do you answer a question

Sure.

Use this:

when gf clicked
ask [what is 5+5?] and wait
if < (answer) = [10] >
say [How did you.... What?]
else
say [Come on, you can do better then that... I hope.]
end

Hope that helps,

CAA14

Last edited by CAA14 (2013-03-08 14:18:29)

Offline

 

#3 2013-03-08 14:19:01

newnewfew
Scratcher
Registered: 2013-02-23
Posts: 68

Re: How do you answer a question

There has to be a sprite asking the questions:
Question asker:

when gf clicked
ask [What is 5+5] and wait
if <<answer>>=<10>
say [Correct!]
else
say [wrong]


It's contest time!
http://scratch.mit.edu/projects/newnewfew/3218957

Offline

 

#4 2013-03-08 14:21:04

cheeseeater
Scratcher
Registered: 2013-02-04
Posts: 100+

Re: How do you answer a question

Thanks for your help! I will try it and tell you.

Offline

 

#5 2013-03-08 14:29:34

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do you answer a question

cheeseeater wrote:

Thanks for your help! I will try it and tell you.

No problem.  smile

Regards,

CAA14

Offline

 

#6 2013-03-08 19:19:36

bob6_test
New Scratcher
Registered: 2013-03-08
Posts: 5

Re: How do you answer a question

newnewfew wrote:

There has to be a sprite asking the questions:
Question asker:

when gf clicked
ask [What is 5+5] and wait
if <(answer)=(10)>
 say [Correct!]
else
 say [wrong]
end

Offline

 

#7 2013-03-09 01:39:08

cheeseeater
Scratcher
Registered: 2013-02-04
Posts: 100+

Re: How do you answer a question

It worked! Thanks eveyone for your help.

Offline

 

#8 2013-03-09 14:22:17

CAA14
Scratcher
Registered: 2013-01-14
Posts: 1000+

Re: How do you answer a question

cheeseeater wrote:

It worked! Thanks eveyone for your help.

No problem, if you need any thing else as far as questions, just ask.  smile

Regards,

CAA14

Offline

 

Board footer