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

#1 2008-11-20 19:21:35

nurfuermist
Scratcher
Registered: 2008-11-20
Posts: 5

putting Variables into think/voice bubbles?

hello!

i got a question:

is there any possibility to show the current value of a variable in a voice or thinkg bubble?

couldn't find anything about it at help topics not either with the search function.

many thx in advance 4 your replies!

Offline

 

#2 2008-11-20 19:22:38

Zelda123
Scratcher
Registered: 2007-11-21
Posts: 1000+

Re: putting Variables into think/voice bubbles?

Say (Variable)

You can fit the Circular variable into the say or think blocks.

Offline

 

#3 2008-11-20 19:31:00

shadow_7283
Scratcher
Registered: 2007-11-07
Posts: 1000+

Re: putting Variables into think/voice bubbles?

Zelda123 wrote:

Say (Variable)

You can fit the Circular variable into the say or think blocks.

Yep.
<when I receive[ Something or rather
<say[ <{ score }> ]for( random )secs>

Offline

 

#4 2008-11-20 19:50:42

nurfuermist
Scratcher
Registered: 2008-11-20
Posts: 5

Re: putting Variables into think/voice bubbles?

lol easy ... and i tried <> and weird stuff xD

but now i got another problem ... i can't write anything else in the bubble when putting the variable in it .... even by first writing my text in the space and then putting the variable in it..

thx for reply

Offline

 

#5 2008-11-20 20:04:00

nurfuermist
Scratcher
Registered: 2008-11-20
Posts: 5

Re: putting Variables into think/voice bubbles?

ok i figured it out by myself  smile  .. by using the ((  <+>  )) icon..

edit: ok that doesn't really work cause with that i can only enter numbers and no text .. so help pls^^

Last edited by nurfuermist (2008-11-20 20:07:18)

Offline

 

#6 2008-11-20 20:31:00

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

Re: putting Variables into think/voice bubbles?

nurfuermist wrote:

ok i figured it out by myself  smile  .. by using the ((  <+>  )) icon..

edit: ok that doesn't really work cause with that i can only enter numbers and no text .. so help pls^^

You can just stick the variable directly in the Say block and it will print the contents, number or text.  If you want to put other words in there too, you might want to play around with Lists.  The Say block can print the entire contents of a List, with blanks between each item.  You can use this to build up a line of text (with variables) and then print the whole thing in the Say block.

See this project for an example of the List technique...

http://scratch.mit.edu/projects/Paddle2SeeFixIt/325050


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

Offline

 

#7 2008-11-20 21:58:21

nurfuermist
Scratcher
Registered: 2008-11-20
Posts: 5

Re: putting Variables into think/voice bubbles?

thx now i got it...  smile


topic can be closed!

Offline

 

Board footer