playMaker

Author Topic: "On Trigger collision, do X"[SOLVED]  (Read 1525 times)

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
"On Trigger collision, do X"[SOLVED]
« on: June 09, 2017, 08:30:52 AM »
Hi all,

I'm working on a game and need a little help.

I'm familiar with Trigger Events in Playmaker, but was wondering if there's any way of telling Playmaker to do something when two Triggers hit each other, instead of enter?

I have created a ball which 'iTween Moves To' an empty game object further ahead.  However, I want the ball to stop (iTween Stop) when it collides with an obstacle and await further instruction.

Is there any way of achieving this "On Trigger hit"?

Thanks!
« Last Edit: June 12, 2017, 08:35:23 AM by jeanfabre »

tcmeric

  • Beta Group
  • Hero Member
  • *
  • Posts: 768
Re: "On Trigger collision, do X"
« Reply #1 on: June 09, 2017, 08:58:57 AM »
Try the action "Collision Event". This is probably the one you are looking for. It has some instructions on the action description.

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
Re: "On Trigger collision, do X"
« Reply #2 on: June 09, 2017, 09:03:06 AM »
Hi tcmeric, thanks for the reply.

I've tried using the Collision Event, but it works almost the exact same as Trigger Event- only it requires Rigid Bodies.

I'm looking for a solution that allows the ball to understand when it's hit something, and stop, as opposed to when it enters something, and stops.

ItzArranT

  • Playmaker Newbie
  • *
  • Posts: 45
Re: "On Trigger collision, do X"
« Reply #3 on: June 09, 2017, 09:29:47 AM »
Just wanted to write a quick update that the problem has been solved.

If anyone is ever interested, I created a "on hit stop" behaviour by using a Trigger Event action (as per normal), including two box triggers on my wall (one non-Trigger, one "Is Trigger") and an iTween Stop action.

Any questions just let me know :)