Text values

About advanced scenes, and the Thyme scripting language used in Algodoo.

Text values

Postby Sniperkasa » Mon Sep 07, 2009 3:39 pm

Okay may be missleading subject.. couldnt think of anything better but.
Is there any way to add many variables to one text column..?
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.

Re: Text values

Postby Ian151 » Mon Sep 07, 2009 4:03 pm

I think you mean this...
In the text box...
Code: Select all
{scene.my.blueteamnameexample + "\n" + scene.my.blueteamscoreexample + " Points"}


That will look something like this on the textbox.

Blue team
0 Points

the backwards slash \ with the letter n act like a return key which is how you got the 0 points to be below the team name. Simply add variables together with +, and when you want special text to always be there, like the word " Points", then use that in adding too. If you want a nice looking space after a variable, just simply add a space before the words in the static strings you add.

EDIT: I also think you are talking about adding text to a textbox with scripting as well. I think you should put invisible variables with strings in there that will become visable, like for example, change scene.my.blueteamname from "" to "Blue Team". That might work if you want text to be added in specific locations.
"THE BEST 2 PLAYER SCENE EVER MADE!!!" - ianno
http://www.algodoo.com/algobox/details.php?id=24204
Image
User avatar
Ian151
 
Posts: 47
Joined: Tue Sep 01, 2009 12:02 am

Re: Text values

Postby Sniperkasa » Mon Sep 07, 2009 5:00 pm

Hmm thats what i tried earlier.. wonder why it didnt work :/ now it works though..
If you have a question, have a dollar and call somebody that cares.
No really just PM me if you have a problem :)
User avatar
Sniperkasa
 
Posts: 493
Joined: Tue Sep 01, 2009 5:34 pm
Location: The bottom of a lake.


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest

cron