playMaker

Author Topic: How to setup Ease or Animate Light Intensity?  (Read 1135 times)

Shizane

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
How to setup Ease or Animate Light Intensity?
« on: May 11, 2017, 06: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.

topscore1632

  • Playmaker Newbie
  • *
  • Posts: 19
    • View Profile
Re: How to setup Ease or Animate Light Intensity?
« Reply #1 on: May 11, 2017, 07: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!

Shizane

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to setup Ease or Animate Light Intensity?
« Reply #2 on: May 11, 2017, 07: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.

Shizane

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to setup Ease or Animate Light Intensity?
« Reply #3 on: May 11, 2017, 07: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.

Shizane

  • Playmaker Newbie
  • *
  • Posts: 21
    • View Profile
Re: How to setup Ease or Animate Light Intensity?
« Reply #4 on: May 11, 2017, 08: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.