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

#1 2011-07-24 18:45:16

Jenguinie
New Scratcher
Registered: 2011-04-05
Posts: 8

Adding a name to a Speech Box(not bubble)

For a new game I'm making, I'm trying to make one of those boxes in which text for what the character is saying appears. Now that's easy. You just do it costume by costume. But I'm trying to go a bit further. You know how you can set a variable to the answer of a question and make any sprite say that answer by telling them to

[blocks]<set{ Name }to( answer[/blocks]

Well, I'm trying to do this, but using costumes. What I mean is that I made a sprite that shows what the characters say instead of using the

[blocks]<say[    ]for(   )secs>[/blocks]

script. I want to be able to display an answer in one of the questions. All I can think of so far is showing the variable, but that would be orange, and my speech box is grey with blue stripes.  sad  This brings me to another question- how exactly do you make the grey part of a variable not be shown? If you don't know what I mean, then take a look at Scratch Life, a project that one of my friends made. Take a look at the shown variables. You'll see what I mean. http://scratch.mit.edu/projects/Snowydude/1939040

That's it. Thanks guys!

Offline

 

#2 2011-07-24 19:21:20

Greatdane
Scratcher
Registered: 2007-06-05
Posts: 1000+

Re: Adding a name to a Speech Box(not bubble)

There's no current way to easily display information without lists and variables. You could make a sprite with costumes of each letter and make it stamp it out, but that is really complex. You could also have a sprite with ghost effect set to 100 that says or thinks what you want to display.

EDIT: You can also make the sprite hide, ask a question with the answer as the question(a bit weird, I know) and then show it again, making an answer box with a prompt. I use that sometimes.

You can hide the grey part of the display by double-clicking the variable, or right-clicking the variable and choosing a display mode.

Last edited by Greatdane (2011-07-24 19:22:37)


The future belongs to those who believe in the beauty of their dreams.
        ~ Eleanor Roosevelt

Offline

 

#3 2011-07-26 13:09:12

Sidharth
Scratcher
Registered: 2007-12-14
Posts: 100+

Re: Adding a name to a Speech Box(not bubble)

Use the join block
http://i.imgur.com/roEeR.gif
Pretty simple if you use SAY's. If you use costumes ... good luck


http://www.danasoft.com/citysign.jpg

Offline

 

#4 2011-08-01 16:21:06

Jenguinie
New Scratcher
Registered: 2011-04-05
Posts: 8

Re: Adding a name to a Speech Box(not bubble)

Sidharth wrote:

Pretty simple if you use SAY's. If you use costumes ... good luck

I'm going to use costumes and I think I've figured out a way. Thanks though!

Offline

 

#5 2011-08-01 16:49:04

JJROCKER
Scratcher
Registered: 2010-09-06
Posts: 1000+

Re: Adding a name to a Speech Box(not bubble)

Jenguinie wrote:

Sidharth wrote:

Pretty simple if you use SAY's. If you use costumes ... good luck

I'm going to use costumes and I think I've figured out a way. Thanks though!

cool!


http://www.blocks.scratchr.org/API.php?action=random&amp;return=image&amp;link1=http://img255.imageshack.us/img255/3491/signature1y.jpg&amp;link2=http://img577.imageshack.us/img577/5272/signature1sx.jpg&amp;link3=http://img4.imageshack.us/img4/8514/signature1et.jpg&amp;link4=http://i.imgur.com/POEpQyZ.png&amp;link5=http://img163.imageshack.us/img163/4640/jjrockerfinal.jpg

Offline

 

Board footer