playMaker

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

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
Ease Colour, Time. (Solved)
« on: April 27, 2013, 06: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, 01:15:46 PM by TIGGYsmalls »

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
Re: Ease Colour, Time.
« Reply #1 on: April 29, 2013, 08: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
    • View Profile
Re: Ease Colour, Time.
« Reply #2 on: April 29, 2013, 11:14:53 AM »
maybe look into lerp, and set color?

TIGGYsmalls

  • Junior Playmaker
  • **
  • Posts: 80
    • View Profile
Re: Ease Colour, Time.
« Reply #3 on: April 29, 2013, 01: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.