Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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.
-
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' !
-
http://recordit.co/7e6JiQweGY
-
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.
-
Thanks for the quick response and an example for solving my problem.