playMaker

Author Topic: Having lights flicker upon entering room  (Read 3570 times)

bassman2112

  • Playmaker Newbie
  • *
  • Posts: 5
Having lights flicker upon entering room
« on: January 16, 2014, 12:37:03 AM »
Hey all,

I'm really new to all of this; but have experience using programs like Max/MSP and PureDB. I've been experimenting with having the lights in a room flicker once the player has entered a Box Collider which I've set up.

I have the initial state as being "Not flickering" and using a "Trigger Event" action. The problem is that when my player character enters the collider, the event does not trigger.

Also, for the purpose of testing, I've tried getting the light to flicker by simply forcing the next event to trigger; but that also is not working. Here is an image with the settings I'm using with the "Flicker" action. Any tips?

Thanks a ton!

redikann

  • PlayMaker2 Beta
  • Full Member
  • *
  • Posts: 185
Re: Having lights flicker upon entering room
« Reply #1 on: January 16, 2014, 12:44:00 AM »
Did you make sure your box collider is set to trigger in the inspector?

bassman2112

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Having lights flicker upon entering room
« Reply #2 on: January 16, 2014, 01:02:58 AM »
Did you make sure your box collider is set to trigger in the inspector?

Yes, absolutely. When I had it improperly configured, Playmaker displayed an error that I required a trigger; but when I checked the "Is Trigger" button, all was well.

Also, I've found that when it changes to the "flickering" state, it stays on for about .25 seconds and the Playmaker FSM window is no longer green, it says "Disabled."

redikann

  • PlayMaker2 Beta
  • Full Member
  • *
  • Posts: 185
Re: Having lights flicker upon entering room
« Reply #3 on: January 16, 2014, 01:13:28 AM »
Sounds like you need to control it longer with an animated float or lerp. Most action last 1 frame and then terminate. I don't see an every frame option so you definetly have to make it loop or last longer. Check the Wiki docs for more guidance.

bassman2112

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Having lights flicker upon entering room
« Reply #4 on: January 16, 2014, 01:18:40 AM »
Sounds like you need to control it longer with an animated float or lerp. Most action last 1 frame and then terminate. I don't see an every frame option so you definetly have to make it loop or last longer. Check the Wiki docs for more guidance.

Indeed, I checked the 'manual' wiki and also the tutorial file, and then added an animated float with the float set to the var 0. It's still terminating after a few frames, haha. I have been looking for a way to make it loop, but am unsure - is there a really easy method? (Couldn't see one in the wiki, sorry if I missed an obvious one)