playMaker

Author Topic: A Character to listen both Move and Collision  (Read 2607 times)

weilies

  • Junior Playmaker
  • **
  • Posts: 74
A Character to listen both Move and Collision
« on: May 01, 2016, 09:07:03 AM »
Good day,

How can i get a character which can constantly listen to movement.
But after i add a global event, 'collision enter 2D', it stuck in 'Collision Enter 2D' event and refuse to to trigger 'onUpdate'. (as attahed image)

How to design playmaker framework in order to get my character constantly listen to movement and collision?


Thanks for the help

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: A Character to listen both Move and Collision
« Reply #1 on: May 01, 2016, 10:03:53 AM »
Use one FSM for movement and another FSM for detecting collisions?
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!

weilies

  • Junior Playmaker
  • **
  • Posts: 74
Re: A Character to listen both Move and Collision
« Reply #2 on: May 01, 2016, 07:24:10 PM »
Thanks mdostrange!

Didn't know there is such a great feature :)

mdotstrange

  • Hero Member
  • *****
  • Posts: 555
    • Can't code? Who cares! Make games anyway!
Re: A Character to listen both Move and Collision
« Reply #3 on: May 01, 2016, 09:33:07 PM »
No problem  :)

I was using playmaker for a few weeks before I learned you could have more than one FSM per object- its a great feature indeed!
Indie game dev and instructor at the Strange School. Learn Playmaker at the Strange School!