Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: TIGGYsmalls on April 27, 2013, 09:50:00 AM

Title: Ease Colour, Time. (Solved)
Post by: TIGGYsmalls 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?
Title: Re: Ease Colour, Time.
Post by: TIGGYsmalls 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?
Title: Re: Ease Colour, Time.
Post by: greg on April 29, 2013, 02:14:53 PM
maybe look into lerp, and set color?
Title: Re: Ease Colour, Time.
Post by: TIGGYsmalls 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.