playMaker

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

belfis

  • Playmaker Newbie
  • *
  • Posts: 5
    • View Profile
Trigger enter questions[SOLVED]
« on: November 06, 2018, 01: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 07, 2018, 10:38:51 PM by jeanfabre »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3602
    • View Profile
    • jinxtergames
Re: Trigger enter questions
« Reply #1 on: November 06, 2018, 04: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
    • View Profile
Re: Trigger enter questions
« Reply #2 on: November 06, 2018, 06:39:22 PM »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 3602
    • View Profile
    • jinxtergames
Re: Trigger enter questions
« Reply #3 on: November 06, 2018, 11:32:29 PM »
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
    • View Profile
Re: Trigger enter questions
« Reply #4 on: November 07, 2018, 05:31:33 AM »
Thanks for the quick response and an example for solving my problem.