playMaker

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

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
How to setup Ease or Animate Light Intensity?
« 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.

topscore1632

  • Playmaker Newbie
  • *
  • Posts: 19
Re: How to setup Ease or Animate Light Intensity?
« Reply #1 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!

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: How to setup Ease or Animate Light Intensity?
« Reply #2 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.

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: How to setup Ease or Animate Light Intensity?
« Reply #3 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.

Shizane

  • Junior Playmaker
  • **
  • Posts: 52
Re: How to setup Ease or Animate Light Intensity?
« Reply #4 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.

stigma

  • Full Member
  • ***
  • Posts: 176
Re: How to setup Ease or Animate Light Intensity?
« Reply #5 on: August 15, 2023, 03:37:26 AM »
thank you for this example!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: How to setup Ease or Animate Light Intensity?
« Reply #6 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