playMaker

Author Topic: Turn off the lights  (Read 1841 times)

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Turn off the lights
« on: December 23, 2015, 02:30:57 AM »
Hi!

I have a light switch! And when the Player hits that light switch, the light will turn off in the current room. My question is, do I need to set the light intensity to 0 on all the lights I have in the room? For example if I have 13 lights. Or is it an easer way? For example to use a variable or if it is an Action that do this or something?
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no

fuzzywobs

  • Playmaker Newbie
  • *
  • Posts: 25
Re: Turn off the lights
« Reply #1 on: December 23, 2015, 06:30:31 AM »
You could put all the lights into an empty game object and when you want to turn the lights off, just deactivate that game object and all the lights will turn off.

Rabagast

  • Hero Member
  • *****
  • Posts: 683
    • Homepage
Re: Turn off the lights
« Reply #2 on: December 23, 2015, 06:38:21 AM »
Hi!

Thank you! I will try that! :)
Check out our homepage. http://www.walsberg.no
Or my personal game blog for news about my games. http://retro-tetro.walsberg.no