Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
-
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!
-
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.
-
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.
-
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.
-
thank you for this example!
-
Hi.
There should be dedicated actions for light now.
also instead of interpolate you can use Tween Float if you need different curves