playMaker

Author Topic: Trigger enter questions[SOLVED]  (Read 1449 times)

belfis

  • Playmaker Newbie
  • *
  • Posts: 5
Trigger enter questions[SOLVED]
« 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.
« Last Edit: November 08, 2018, 12:38:51 AM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Trigger enter questions
« Reply #1 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 :



Trigger events must be set to 'On Enter' not 'On Stay' !

belfis

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Trigger enter questions
« Reply #2 on: November 06, 2018, 08:39:22 PM »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Trigger enter questions
« Reply #3 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.

belfis

  • Playmaker Newbie
  • *
  • Posts: 5
Re: Trigger enter questions
« Reply #4 on: November 07, 2018, 07:31:33 AM »
Thanks for the quick response and an example for solving my problem.