Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: belfis on November 06, 2018, 03:02:38 PM

Title: Trigger enter questions[SOLVED]
Post by: belfis on November 06, 2018, 03:02:38 PM
Hello, I have 2 or more cubes with a trigger, 1 cube moves behind the sight rounded to a whole number. When a cube that moves behind a mouse and hits a trigger, the cube becomes red when it leaves the trigger to turn green. No problem with that. The problem starts when 2 trigeros stand nearby when you exit from the first to the second tiger to become green, but still be in the inside of the second trigger.
Title: Re: Trigger enter questions
Post by: djaydino on November 06, 2018, 06:23:01 PM
Hi,
So you mean when the cube is in both triggers

I guess you have a trigger fsm on each cube.

What you can do is also have a trigger event on the moving object and set it up like this :

(https://i.imgur.com/vmUx5gQ.gif)

Trigger events must be set to 'On Enter' not 'On Stay' !
Title: Re: Trigger enter questions
Post by: belfis on November 06, 2018, 08:39:22 PM
http://recordit.co/7e6JiQweGY
Title: Re: Trigger enter questions
Post by: djaydino on November 07, 2018, 01:32:29 AM
hi.
Ok, do you have a separate fsm doing the trigger?
if not, its better to do so.

I made a quick sample scene (attachment below).
On the collider fsm you might need to change the materials on the Set Material actions.
Title: Re: Trigger enter questions
Post by: belfis on November 07, 2018, 07:31:33 AM
Thanks for the quick response and an example for solving my problem.