Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: ints on February 10, 2013, 04:12:12 PM

Title: SpotLight control with GUI Slider, help
Post by: ints on February 10, 2013, 04:12:12 PM
Is possible apply GUI Slider to change SpotLight intensity?
I have use LightIntensity Action, but do not work.

I wach this tutorial

Please help!
Thanks!
Title: Re: SpotLight control with GUI Slider, help
Post by: Alex Chouls on February 10, 2013, 06:08:35 PM
I just checked Set Light Intensity and it seems to be working okay.

Did you check "Every Frame?"

Title: Re: SpotLight control with GUI Slider, help
Post by: ints on February 11, 2013, 03:34:58 AM
Thanks for answer, Alex Chouls!

Here's what I have done.

First picture: Cube are  rotate but SpotLight do not change intensity. What I do wrong?
Second picture: variable for Light Slider.
Title: Re: SpotLight control with GUI Slider, help
Post by: Alex Chouls on February 11, 2013, 02:20:33 PM
Is Set Light Intensity using the Game Object with the Light component?

The screenshot is cut off...

EDIT: If the FSM is on the Light Game Object you can just set Game Object to Use Owner.
Title: Re: SpotLight control with GUI Slider, help
Post by: ints on February 11, 2013, 03:47:09 PM
Thanks, Alex Chouls!
All works. Is possible Cube to drop shadows?
There are result:
32bit: http://failiem.lv/down.php?i=bpawpcx&n=Light%26Cube-32bit.zip (http://failiem.lv/down.php?i=bpawpcx&n=Light%26Cube-32bit.zip)
64bit: http://failiem.lv/down.php?i=smopquy&n=Light%26Cube-64bit.zip (http://failiem.lv/down.php?i=smopquy&n=Light%26Cube-64bit.zip)