text scripting

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

text scripting

Postby hecta » Fri Feb 10, 2012 8:29 pm

can you change the text of a box with a scene.my.* on laser hit ?or any other way (but has to be on laser hit) and needs to be able to change for multiple diferent texts.
hecta
 
Posts: 21
Joined: Thu Feb 02, 2012 3:39 am

Re: text scripting

Postby monstertje3 » Sat Feb 11, 2012 12:29 pm

you can change a scene.my.text with something like a oncollide (scene.my.text = "blabla";)
then you can put in the text field in the scripting menu {"My text is: "+scene.my.text}
if you dont use the {}, then it will read the scene.my once, instead of updating when scene.my changes

hope this helps
Basically, there are only 10 types of people in the world. Those who know binary, and those who don't.
Light travels faster than sound. That's why some people appear bright until they open their mouths.
User avatar
monstertje3
 
Posts: 343
Joined: Sat Sep 05, 2009 4:29 pm
Location: N-H, NL

Re: text scripting

Postby hecta » Sat Feb 11, 2012 5:29 pm

thanks work perfectly now :thumbup:
hecta
 
Posts: 21
Joined: Thu Feb 02, 2012 3:39 am


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 1 guest