playMaker

Author Topic: different event for a trigger after a second time  (Read 2159 times)

volpygregor

  • Playmaker Newbie
  • *
  • Posts: 5
different event for a trigger after a second time
« on: October 25, 2012, 07:21:15 AM »
H there,

I created a simple trigger ( following the tutorial on youtube) in which as soon as the player enters an area it trigger a gui text.

I have two questions:

1)how to disable that gui text after the player enters in the same area for the second time and which action should i use?

2)How to disable the  trigger event such as play a sound also if the they player enter for the second time in in the area connected to the same trigger ? ;)

thank you

volpy :)

DARK_ETERNAL

  • Full Member
  • ***
  • Posts: 110
Re: different event for a trigger after a second time
« Reply #1 on: October 25, 2012, 12:03:07 PM »
I'd use a variable. The 1st entrance would increment that variable, and, depending of the value, I'd fire different events, so the trigger can reach different states.

Now, to disable yout GUIText, you can simply set the GUIText with an empty string, if you would need it afterwards, or, just use de 'Activate GameObject' with the 'activate' check set to false, so the GUIText's GameObject will be deactivated.

Hope that helps.
Check out our new game: Nitro Chimp. Now live in App Store!

Trailer:
Download: https://itunes.apple.com/app/nitro-chimp/id557150450?l=en&mt=8

volpygregor

  • Playmaker Newbie
  • *
  • Posts: 5
Re: different event for a trigger after a second time
« Reply #2 on: October 27, 2012, 06:00:30 AM »
thanks mate. it helps a lot :)