Taking a Custom Variable away from a spawned object

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

Taking a Custom Variable away from a spawned object

Postby niffirg1 » Tue Nov 03, 2009 4:25 am

Okay so i spawn lets say a box and it a a custom variable in its color called scene.my.var1 and i can alter this color until i spawn a new box and then the original box no longer has a custom variable and the new spawned box does. Is there a way to do this?
User avatar
niffirg1
 
Posts: 376
Joined: Mon Aug 31, 2009 10:31 pm
Location: The Great American South!

Re: Taking a Custom Variable away from a spawned object

Postby Mystery » Tue Nov 03, 2009 12:53 pm

Code: Select all
scene.addsquare{Blah := BlahBlah; e.other.colour := e.this.color}; e.this.color = [0.0, 0.0, 0.0, 1.0]

In this case the custom variable will be transported to the spawned bow and then the custom variable will be deleted and replaced with Black.
User avatar
Mystery
 
Posts: 2802
Joined: Thu Sep 03, 2009 1:16 pm
Location: Southern Australia

Re: Taking a Custom Variable away from a spawned object

Postby KarateBrot » Tue Nov 03, 2009 1:39 pm

Yeah i recognized this bug, too (it seems to be one). but that doesn't only happen to custom variables but also to geometry specific variables like controlleracc and stuff. It happens to everything that's not constant.
you could make a bug report for this.
Image
User avatar
KarateBrot
 
Posts: 825
Joined: Mon Aug 31, 2009 7:32 pm
Location: Germany


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 8 guests

cron