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

#1 2010-06-19 04:38:09

Jennaroni
Scratcher
Registered: 2009-05-16
Posts: 8

How do you make use of user-input?

Hi
I want to ask someone their name and then use what they typed to have the program talk to them. I created a variable called 'name' but I don't know how to transfer what the user types into the variable. Love to know the solution if anyone can help  smile
Jen

Offline

 

#2 2010-06-19 04:42:56

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How do you make use of user-input?

Try using the "ask" feature, then make something like this:

[set [name v] to (answer)]

Use the blue "answer" block from sensing  smile  Hope this helps!


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#3 2010-06-19 04:44:25

meew0
Scratcher
Registered: 2010-02-22
Posts: 1000+

Re: How do you make use of user-input?

Shouldn't this be in All About Scratch?  hmm  It isn't really advanced...


http://i.imgur.com/mJV3j.pnghttp://i.imgur.com/HwWAX.pnghttp://i.imgur.com/sZ7Ui.pnghttp://i.imgur.com/0y6yh.pnghttp://i.imgur.com/nOC4l.png

Offline

 

#4 2010-06-19 05:05:24

Jennaroni
Scratcher
Registered: 2009-05-16
Posts: 8

Re: How do you make use of user-input?

Thanks Wolfie
Your solution works fine.
Sorry if I posted a basic question in the wrong place. I did search through the forums for a solution before asking the question but wasn't able to find anything helpful.
Jen

Offline

 

#5 2010-06-19 05:14:34

Wolfie1996
Retired Community Moderator
Registered: 2009-07-08
Posts: 1000+

Re: How do you make use of user-input?

That's OK - we all make mistakes  smile


"...Jargon - the practice of never calling a spade a spade, when you might instead call it a manual earth-restructing implement..." - Bill Bryson, Mother Tongue

Offline

 

#6 2010-06-19 07:09:14

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: How do you make use of user-input?

Jennaroni wrote:

Thanks Wolfie
Your solution works fine.
Sorry if I posted a basic question in the wrong place. I did search through the forums for a solution before asking the question but wasn't able to find anything helpful.
Jen

Actually, I think all questions about Scratch should go in All About Scratch. If it's about, say, modifying the source code of Scratch, that should go in Advanced Topics. Just clearing that up for you; but it's easily confused. I used to post a lot in Advanced Topics about something that had nothing to do with it. Thanks!

And sorry, that was a little off-topic.

Offline

 

Board footer