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

#1 2011-12-22 07:37:42

snowmoon0522
New Scratcher
Registered: 2011-12-22
Posts: 2

How to say something more than just the answer?

Hi all

Just downloaded Scratch a few days ago and my 7-year-old is enjoying playing with it. We now want to try something which we haven't figured out how to do.

Basically, we want to ask the user his name (variable yourName), then his age (variable yourAge). Then we want to say "Hello, (yourName). So you're (yourAge)." But whenever we drag the variable into the say box it fills up the whole space.

It must be possible somehow to do this?
[blocks]<say[Hello, (yourName). So you're (yourAge).]>[/blocks]

Thanks.

Offline

 

#2 2011-12-22 08:19:23

mcpNOVA
Scratcher
Registered: 2011-12-05
Posts: 100+

Re: How to say something more than just the answer?

Well, you can first make it ask what his name is. Then make there is an (answer) block under the ask block. Then drag a say and join block , put the join block inside the say block (if you are using the secs slot in the say block, use the other) then do the same with the age part.  smile

Hope this helped, and I hope you guys enjoy using the program.  smile


http://i43.tinypic.com/n5fqcz.jpg

Offline

 

#3 2011-12-22 08:23:11

mcpNOVA
Scratcher
Registered: 2011-12-05
Posts: 100+

Re: How to say something more than just the answer?

Oh right and put the join block into the say block (not the secs), put it to make it like this:

[say] (join (Hello, ) and ( (answer) )

And it will say Hello, [example]!


http://i43.tinypic.com/n5fqcz.jpg

Offline

 

#4 2011-12-22 08:41:11

snowmoon0522
New Scratcher
Registered: 2011-12-22
Posts: 2

Re: How to say something more than just the answer?

Ahhh, a join block. That is what I need. Thank you!

Offline

 

#5 2011-12-22 10:21:17

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: How to say something more than just the answer?

What you need us a 'Join' block, which is found near the bottom of the operators tab. This basically joins two words together; if you put in the words 'Hello' and 'world', it would come out as 'Hello world'. You can also put a join block inside another join block, if you need to join more than two things.

I hope this helped!  smile


Why

Offline

 

Board footer