playMaker

Author Topic: Fsm in one object to trigger another FSM on collision  (Read 1165 times)

zard

  • Playmaker Newbie
  • *
  • Posts: 1
Fsm in one object to trigger another FSM on collision
« on: January 01, 2023, 01:36:15 PM »
Hello,

I have tried to look for this on the forum but cant find answer.

I have two objects and each have their own FSM. The first FSM is triggered by a mouse click and moves towards the other one. I like the object's FSM to be triggered when they collide but this doesn't happen. Does anybody know how to get over this issue?

Thank you

Kaikoura

  • Playmaker Newbie
  • *
  • Posts: 23
Re: Fsm in one object to trigger another FSM on collision
« Reply #1 on: January 02, 2023, 06:58:51 AM »
Hey,

You can use the "collision event" action.
it sends an event if it detects an collision between colliders.


hope that helps, if not, specify your question a bit more.




djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7618
    • jinxtergames
Re: Fsm in one object to trigger another FSM on collision
« Reply #2 on: January 02, 2023, 11:36:21 AM »
Hi.
Also make sure that one of the objects has a rigidbody(2D)