playMaker

Author Topic: Playmaker and Mecanim Animator Controller [solved]  (Read 3570 times)

solideuk

  • Playmaker Newbie
  • *
  • Posts: 6
Playmaker and Mecanim Animator Controller [solved]
« on: August 19, 2015, 02:52:44 PM »
Hi All,

I hope I can get some assistance. I am trying to have a custom animation on my character to play.

The character has a bolean transition to activate this clip, this works fine.

However I do not know how to stop this custom animation to play after playing once using the mecanim animator controller. I have tried to set the boolean to 'false' after the play animation event, but in doing so prevents the animation from playing at all.

So to summarise, I would be grateful if someone can guide me on how I can play a custom animation once and then back to idle.

Many thanks
« Last Edit: August 20, 2015, 05:26:02 PM by solideuk »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Playmaker and Mecanim Animator Controller
« Reply #1 on: August 20, 2015, 02:11:50 AM »
Hi,
what i do sometimes is :
i add an empty state (called "animDone" for example) to the animator and make a transition to that state with the same bool and use exit time in the Settings.

i also use Animator Fsm State Sync and set the bool to false in the "animDone" synced state.

here i a video explaining the Animator State Sync :


Pandur

  • Full Member
  • ***
  • Posts: 122
Re: Playmaker and Mecanim Animator Controller
« Reply #2 on: August 20, 2015, 04:23:22 PM »
Hey solideuk,
i have make a Tutorial serie for mecanim and Playmaker to make a 3rd person controller.in my Tutorial serie are walk,crouch and swim.
it is in german,but it is all step by step to learn it.
look here :
https://www.youtube.com/playlist?list=PLn4sS8aiQ7jm3Zu9ZhDfY_OTZ1Sqldfld
hope it can help you :D
« Last Edit: August 21, 2015, 04:52:09 AM by Pandur »

solideuk

  • Playmaker Newbie
  • *
  • Posts: 6
Re: Playmaker and Mecanim Animator Controller
« Reply #3 on: August 20, 2015, 05:25:25 PM »
Thanks guys, I appreciate the assistance.

I managed to resolve my issue, I simply changed the 'boolean' parameter to a 'trigger' parameter. In doing so it appears that the trigger will always reset once activated.