playMaker

Author Topic: SpotLight control with GUI Slider, help  (Read 2496 times)

ints

  • Playmaker Newbie
  • *
  • Posts: 3
SpotLight control with GUI Slider, help
« 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!

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: SpotLight control with GUI Slider, help
« Reply #1 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?"


ints

  • Playmaker Newbie
  • *
  • Posts: 3
Re: SpotLight control with GUI Slider, help
« Reply #2 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.
« Last Edit: February 11, 2013, 10:11:58 AM by ints »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: SpotLight control with GUI Slider, help
« Reply #3 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.

ints

  • Playmaker Newbie
  • *
  • Posts: 3
Re: SpotLight control with GUI Slider, help
« Reply #4 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
64bit: http://failiem.lv/down.php?i=smopquy&n=Light%26Cube-64bit.zip
« Last Edit: February 12, 2013, 01:25:40 AM by ints »