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

#1 2012-11-27 18:57:24

TheRealog_batman
New Scratcher
Registered: 2012-09-18
Posts: 4

Questions

I am trying to figure how to make questions and show them on scratch. Can you please help me. My project is going to be a maze and in order to get through the maze you must answer the questions correctly, I just need to figure out how to do the questions. Any help would be grateful.

Offline

 

#2 2012-11-27 19:07:26

scratchyrocks
Scratcher
Registered: 2012-09-29
Posts: 19

Re: Questions

when i receive [question v]
ask [your question] and wait
if <(answer) = [your question]>
do what ever you want
end
does this help?

Offline

 

#3 2012-11-27 22:02:29

tree-hugger
Scratcher
Registered: 2011-11-19
Posts: 38

Re: Questions

This block is what you want:

ask [anything you want] and wait
A speech bubble will appear and a bar for typing in answers will pop up at the bottom of the screen. There is also this block:
(answer)
You can use blocks in ways like this. Play around with this script:
when gf clicked
ask [what's your name?] and wait
say (join [Hello ](answer))
Enjoy playing around with these blocks  big_smile

Last edited by tree-hugger (2012-11-27 22:03:03)


http://oi48.tinypic.com/1y7tjr.jpghttp://oi50.tinypic.com/28tb34j.jpg                     http://oi50.tinypic.com/21c6v74.jpg                    ...ya, I'm weird... REAL weird...
BITBOT ALL THE WAY!!!     Only the WEIRDEST games!     (that's just  a Tree-Hugger thing)

Offline

 

#4 2012-11-27 22:07:14

tree-hugger
Scratcher
Registered: 2011-11-19
Posts: 38

Re: Questions

Oh you can do things like this too:

when gf clicked
ask [Are frogs amphibians?] and wait
if <(answer) = [Yes]>
  say [Your right!] for (2) secs
end
if <(answer) = [No]>
  say [Sorry, your wrong!]
end


http://oi48.tinypic.com/1y7tjr.jpghttp://oi50.tinypic.com/28tb34j.jpg                     http://oi50.tinypic.com/21c6v74.jpg                    ...ya, I'm weird... REAL weird...
BITBOT ALL THE WAY!!!     Only the WEIRDEST games!     (that's just  a Tree-Hugger thing)

Offline

 

Board footer