playMaker

Author Topic: Ease Colour, Time. (Solved)  (Read 2978 times)

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Ease Colour, Time. (Solved)
« on: April 27, 2013, 09:50:00 AM »
I am changing the Main Colour of an material using its health.

Current Health / Max Health = A value between 0 and 1.

Now when I set the time in Ease Color it counts from 1 second rather than the continuous input of the health sum.

How do I get it to change with the value rather than starting time?
« Last Edit: April 29, 2013, 04:15:46 PM by TIGGYsmalls »

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: Ease Colour, Time.
« Reply #1 on: April 29, 2013, 11:54:48 AM »
There must be a way to say in the script, "value" instead of "time"?

Or would I have to just keep looping back into the colour state with the updated time?

greg

  • Junior Playmaker
  • **
  • Posts: 68
Re: Ease Colour, Time.
« Reply #2 on: April 29, 2013, 02:14:53 PM »
maybe look into lerp, and set color?

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
Re: Ease Colour, Time.
« Reply #3 on: April 29, 2013, 04:15:21 PM »
Cheers,

Vector Lerp to Vector XYZ to Floats to Set Property.

And its from 0 to 1 not 0 to 255. I got confused when my colour values went to 6000.