Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Shizane on May 11, 2017, 09:59:08 AM

Title: How to setup Ease or Animate Light Intensity?
Post by: Shizane on May 11, 2017, 09:59:08 AM
I'm close but I'm trying to trigger the light intensity over time.

I have a trigger and a variable name but I'm not sure how to set this up to communicate with the light. Do I need an event on the light and then if true a set variable to true? I was playing around with Animate float and Ease float. I didn't see any itween actions for this.

Thank you.
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: topscore1632 on May 11, 2017, 10:14:25 AM
Hi,

Use the float interpolate action and set its min and max values to the min and max intensity values you want to use for the light.

Then drag the 'light' component on the inspector of the light you want to animate into a state window and then select 'Set Property'.  Under the Property drop down choose 'Intensity' and then for the value click the lines and set it to the variable you've made in the Float Interpolate action. Click 'every frame' and bingo!
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: Shizane on May 11, 2017, 10:36:54 AM
Thanks for the quick response.

So on my trigger I have the Float Interpolate with a variable name in the Store Result.

On the light I have a Set Property but I dont see Intensity anywhere in the Property when I drag the light onto the Object Type.
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: Shizane on May 11, 2017, 10:41:31 AM
Ah nevermind, found it by dragging it from the inspector like you mentioned ;)

Do I need a state to trigger this too? I have a character that when collides with a trigger to increase the intensity.
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: Shizane on May 11, 2017, 11:04:33 AM
Ok I got this working, thanks for your help and here's a screenshot for those who are looking to animate to setup a light animating intensity.
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: stigma on August 15, 2023, 03:37:26 AM
thank you for this example!
Title: Re: How to setup Ease or Animate Light Intensity?
Post by: djaydino on August 15, 2023, 06:34:50 AM
Hi.
There should be dedicated actions for light now.
also instead of interpolate you can use Tween Float if you need different curves