Pages: 1
Topic closed
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
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.
Hope this helped, and I hope you guys enjoy using the program.
Offline
Ahhh, a join block. That is what I need. Thank you!
Offline
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!
Offline
Topic closed
Pages: 1