playMaker

Author Topic: Playmaker & Animator state[SOLVED]  (Read 1544 times)

Sam3D

  • Playmaker Newbie
  • *
  • Posts: 2
Playmaker & Animator state[SOLVED]
« on: August 30, 2018, 07:54:45 AM »
Is there a way to wait for the animator to finish playing a clip to trigger another action? Until now, i have used wait (number of seconds) till the clip finishes, but this is not ideal. There has to be a playmaker action that checks if the clip is done animating and then trigger the next animation, right?
« Last Edit: September 02, 2018, 09:59:35 AM by djaydino »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker & Animator state
« Reply #1 on: August 30, 2018, 09:31:33 AM »
Hi.
In your animation you can set an event in the timeline of your animation.

Then when you select the event, you can set a function.
You can do a SendEvent or a SetState. (see image below)



But you can only do this on an fsm that is on the same object as the animator

or you can use the animator state sync.

You can get the script on the Ecosystem , search for "animator proxies"
after you got it and you have errors, also search for "Play Maker Utils" and get/update this.

then you can follow the video below :


Sam3D

  • Playmaker Newbie
  • *
  • Posts: 2
Re: Playmaker & Animator state
« Reply #2 on: September 02, 2018, 02:33:25 AM »
Thanks a lot man for the solution  :)