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

#1 2010-12-17 10:13:50

jpsrolls
New Scratcher
Registered: 2010-12-09
Posts: 17

Getting name to display

i  want the cat to ask, "What is your name?".  When the person types in his name, the cat would say, "Hi, John!" or whatever the person's name is.  How is this done?

Offline

 

#2 2010-12-17 10:23:51

what-the
Scratcher
Registered: 2009-10-04
Posts: 1000+

Re: Getting name to display

Use the ask block and then this.

say( Join ( "Hi, "| answer))


http://imageshack.us/m/64/9034/ddfss.pngMy site
Find someone post count. Click posts under username. Find number of pages. Times that by 40 for min and 60 for max and you have a rough estimate of post count.

Offline

 

#3 2010-12-17 10:26:26

StrykerV
New Scratcher
Registered: 2010-06-15
Posts: 51

Re: Getting name to display

jpsrolls wrote:

i  want the cat to ask, "What is your name?".  When the person types in his name, the cat would say, "Hi, John!" or whatever the person's name is.  How is this done?

Use the join block in operators, and join hello, and answer.


99.9999% Crazy, 0.0001% Hamburgeh Makeh  smile

Offline

 

#4 2010-12-17 13:22:27

WeirdF
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: Getting name to display

This should be the script you want, including adding in the exclamation mark at the end...  smile

http://img593.imageshack.us/img593/3268/22634538.gif


http://i.cr3ation.co.uk/dl/s1/gif/847032b8a331def77529b6a0384db1fe_handfingers.gif

Offline

 

#5 2011-01-26 13:46:12

jpsrolls
New Scratcher
Registered: 2010-12-09
Posts: 17

Re: Getting name to display

Thanks so much!

I will try that.

Judy

Offline

 

Board footer