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

#1 2009-07-03 02:08:09

imbrainy
Scratcher
Registered: 2009-04-14
Posts: 14

Answer block help

Hey, i was just wondering how you make someone repeat your answer. What i'm trying to do is this:
1.You type in your name
2. The Character says, 'Hi <name>!'

My question is, how do you make the character say the answer?
Thanks


http://dragcave.net/image/PaD0.gifhttp://dragcave.net/image/niTG.gifhttp://dragcave.net/image/adH1.gifhttp://dragcave.net/image/rb6h.gif<click them or they will die D:

Offline

 

#2 2009-07-03 05:16:08

onedudeuk
Scratcher
Registered: 2009-01-11
Posts: 100+

Re: Answer block help

Right. Create a question, then [say [join hi and "answer"]]


http://i.imgur.com/1FaX3.gif
http://i.imgur.com/yu0s1.gif

Offline

 

#3 2009-07-03 09:11:52

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: Answer block help

There is a block called (answer).
Use the say block, and put in the Join block. Now just put answer in the join and put what you want to say.

example:

[greenflag]
[ask [ What is your name? (or something similar)] ]
[say ( join [ Hi ](answer)]

You can add more join blocks if you want to add anything after that.

Offline

 

#4 2009-07-03 22:19:15

imbrainy
Scratcher
Registered: 2009-04-14
Posts: 14

Re: Answer block help

Ahh, thanks.

I didnt know you could put the circular sided shape into the square one lol


http://dragcave.net/image/PaD0.gifhttp://dragcave.net/image/niTG.gifhttp://dragcave.net/image/adH1.gifhttp://dragcave.net/image/rb6h.gif<click them or they will die D:

Offline

 

#5 2009-07-06 09:18:19

pokemon_master12
Scratcher
Registered: 2008-09-26
Posts: 100+

Re: Answer block help

imbrainy wrote:

Ahh, thanks.

I didnt know you could put the circular sided shape into the square one lol

That's thanks to the new 1.4!  big_smile
By the way, when you use the join block to join the answer and the "hi" bit, make sure you put hi with a space. Otherwise it will come out as "hiname!" instead of "hi name!". Happy Scratch-ing!  smile


My Dragon Egg! http://dragcave.net/image/5YUA.gif
Visit my blog: http://freyasworld.wordpress.com/

Offline

 

Board footer