Dynamic Color changing?

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

Dynamic Color changing?

Postby TC42 » Sun Mar 27, 2011 2:16 am

How do you to change one value of a color with a variable? Whenever I try it, Algodoo simply reads the value of the variable and instead of reading [0,0,0,(scene.my.pow/15)] it reads [0,0,0,9.125]. Any ideas?
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: Dynamic Color changing?

Postby frogman786 » Sun Mar 27, 2011 2:44 am

i think it would look more like this
Code: Select all
[0,0,0,{scene.my.pow/15}]

can't test it at the moment

EDIT:that doesn't work sorry
but you could make scene.my.pow an array and put {scene.my.pow} in the color menu that will work
DFTBA nerdfighters

TheWonkits wrote:As immature as some of the people on this forum can be, most of you are pretty cool.

TC42 wrote:Better than spell-check... ...TC42's instant grammar-correction posts! :lol:
User avatar
frogman786
 
Posts: 71
Joined: Fri Jan 07, 2011 8:32 am
Location: Christchurch, New Zealand

Re: Dynamic Color changing?

Postby TC42 » Sun Mar 27, 2011 3:58 am

frogman786 wrote:but you could make scene.my.pow an array and put {scene.my.pow} in the color menu that will work


Nope, already tried it.
(e)=>{scene.my.color(3) = scene.my.pow} doesn't work.
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_

Re: Dynamic Color changing?

Postby frogman786 » Sun Mar 27, 2011 4:04 am

ok i made this a while ago, i can't remember how it works but it changes the color with global varibles
Rating: rated 5.4
Filesize: 29.7 kB
Comments: 2
Ratings: 2
download
DFTBA nerdfighters

TheWonkits wrote:As immature as some of the people on this forum can be, most of you are pretty cool.

TC42 wrote:Better than spell-check... ...TC42's instant grammar-correction posts! :lol:
User avatar
frogman786
 
Posts: 71
Joined: Fri Jan 07, 2011 8:32 am
Location: Christchurch, New Zealand

Re: Dynamic Color changing?

Postby Chronos » Sun Mar 27, 2011 4:06 am

Have you tried (e) => {[0, 0, 0, scene.my.pow/15]} ?
TheWinkits wrote:They both looks of cuking amazing
User avatar
Chronos
[Most Active Member 2010]
 
Posts: 4457
Joined: Mon Aug 31, 2009 6:00 pm
Location: Californania

Re: Dynamic Color changing?

Postby TC42 » Sun Mar 27, 2011 5:37 am

The one thing I didn't try...
Thanks, Chronos! :thumbup:
Image
Spambot wrote:Nowadays, memes usually are studied less in the field of biology, but more with the arena of psychology along with sociology. But, the major area of a meme, getting embraced and imitated all the time is what’s at any core connected with any meme.
User avatar
TC42
 
Posts: 984
Joined: Sun Jan 09, 2011 1:53 pm
Location: $ sudo apt get-install sandwich_


Return to Thyme scripting

Who is online

Users browsing this forum: No registered users and 8 guests