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

#1 2013-01-25 09:44:04

anroid
New Scratcher
Registered: 2013-01-24
Posts: 17

How do we take input from the user/keyboard?

Hi all,

I've created a small program based on a program/message that someone had posted in 2008 in the forums. Basically, the idea is to get the user to type in their name and have the cat say it back to us.

However, the program is not taking any input from the keyboard!

My program is here - http://scratch.mit.edu/projects/anroid/3059645

Can anyone take a quick look and tell me where I'm going wrong? It's driving me crazy!

Thanks for helping a newbie!

Anroid

Offline

 

#2 2013-01-25 11:41:39

Paddle2See
Scratch Team
Registered: 2007-10-27
Posts: 1000+

Re: How do we take input from the user/keyboard?

Well, most people use the Ask and Answer blocks to grab input from the user....

when gf clicked
ask [what is your name?] and wait
say (answer) for (2) secs


http://i39.tinypic.com/2nav6o7.gif

Offline

 

#3 2013-01-25 18:50:45

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

Re: How do we take input from the user/keyboard?

Hi,

What kind of input do you need from the keyboard?

Regards,

CAA14

Offline

 

#4 2013-01-25 23:12:47

TheSupremeOverLord
Scratcher
Registered: 2012-09-29
Posts: 100+

Re: How do we take input from the user/keyboard?

Hello!  This is my solution.

when gf clicked
ask (Whats Your Name?)
say (join(hello, ) and (answer))


http://i1154.photobucket.com/albums/p522/lizzyhipo/MINIPIG.jpg

Offline

 

#5 2013-01-26 05:30:25

anroid
New Scratcher
Registered: 2013-01-24
Posts: 17

Re: How do we take input from the user/keyboard?

Thanks everybody helped a lot.

Offline

 

#6 2013-01-26 15:35:02

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

Re: How do we take input from the user/keyboard?

Is it working?


Regards,

CAA14

Offline

 

Board footer