Dynamic Color changing?
6 posts • Page 1 of 1
Dynamic Color changing?
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?
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Dynamic Color changing?
i think it would look more like this
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
- 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!
-

frogman786 - Posts: 71
- Joined: Fri Jan 07, 2011 8:32 am
- Location: Christchurch, New Zealand
Re: Dynamic Color changing?
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.
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
Re: Dynamic Color changing?
ok i made this a while ago, i can't remember how it works but it changes the color with global varibles
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!
-

frogman786 - Posts: 71
- Joined: Fri Jan 07, 2011 8:32 am
- Location: Christchurch, New Zealand
Re: Dynamic Color changing?
Have you tried (e) => {[0, 0, 0, scene.my.pow/15]} ?
TheWinkits wrote:They both looks of cuking amazing
-

Chronos - [Most Active Member 2010]
- Posts: 4457
- Joined: Mon Aug 31, 2009 6:00 pm
- Location: Californania
Re: Dynamic Color changing?
The one thing I didn't try...
Thanks, Chronos!
Thanks, Chronos!
-

TC42 - Posts: 984
- Joined: Sun Jan 09, 2011 1:53 pm
- Location: $ sudo apt get-install sandwich_
6 posts • Page 1 of 1
Who is online
Users browsing this forum: No registered users and 8 guests





