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

#1 2009-07-10 23:51:41

iab97
Scratcher
Registered: 2009-04-04
Posts: 100+

Need Help With Ask Function...

Hello all!

You see, I am making this Demonstration for the Python Turtle Module.
Anyways, since it involves a lot of Command Prompt, I would like to know as much about the Ask Function as possible.
Any information or projects that might help would be greatly obliged.  smile


Thanks!  smile


-iab97 One of my favorite quotes: "You can't direct the wind, but can adjust your sails." -Unknown

Offline

 

#2 2009-07-11 06:25:47

bhz
Scratcher
Registered: 2008-07-06
Posts: 100+

Re: Need Help With Ask Function...

The ask [ ] and wait function asks a question and stores the keyboard input in ( answer ). The question appears in a voice bubble on the screen if used in a sprite, or right above the input box if used on the stage. The program waits until you input an answer before continuing.

Offline

 

#3 2009-07-11 15:49:15

iab97
Scratcher
Registered: 2009-04-04
Posts: 100+

Re: Need Help With Ask Function...

If one Sprite asks something, can another Sprite react to the answer?


-iab97 One of my favorite quotes: "You can't direct the wind, but can adjust your sails." -Unknown

Offline

 

#4 2009-07-12 20:42:24

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Need Help With Ask Function...

only if you use broadcasts..


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

#5 2009-07-12 23:40:27

iab97
Scratcher
Registered: 2009-04-04
Posts: 100+

Re: Need Help With Ask Function...

Oh, yeah, I could see how that would work—thanks!  smile


-iab97 One of my favorite quotes: "You can't direct the wind, but can adjust your sails." -Unknown

Offline

 

#6 2009-07-13 01:28:53

greenflash
Scratcher
Registered: 2009-05-27
Posts: 1000+

Re: Need Help With Ask Function...

you can store multiple answers in varriables,
[/blocks]
<when green flag clicked>
Ask [something] and wait
<set{ first answer }to( answer )
<broadcast[ question 2 ]

<when I receive[  question 2 ]
Ask [something] and wait
<set{ second answer }to( answer )
<broadcast[ question 3 ]


[/blocks]

Ect..

you can store multiple answers now


http://i48.tinypic.com/2wrkirk.pnghttp://i46.tinypic.com/6r5zk7.pnghttp://i45.tinypic.com/2vtxr1t.png

Offline

 

Board footer