Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: mathius777 on September 09, 2015, 07:02:04 PM

Title: Animation Syncing
Post by: mathius777 on September 09, 2015, 07:02:04 PM
I saw this video on syncing PM with mecanim here:

I downloaded the sample at:https://hutonggames.fogbugz.com/?W1031

And out of the box it does not work. My playmaker states never change, even though the mecanim states are changing.

I am using the latest PM beta, so I thought that might be the cause, but wanted to make sure, as I really want to use this. Thanks.
Title: Re: Animation Syncing
Post by: jeanfabre on September 10, 2015, 01:26:30 AM
Hi,

 eh eh :) It's because I rushed this action and it was not supposed to come out before 1.8  ;) and so I had to use code reflection to make it work.

It's ok, there is an easy fix that will be set by default when 1.8 will go out.

you need to comment all lines using
Quote
SwitchState() method
and uncomment all lines using
Quote
Fsm.Fsm.SwitchState
like so:

Quote
//SwitchState(Fsm.Fsm,_fsmState);
// Only in 1.8
Fsm.Fsm.SwitchState(_fsmState);

I have attached the full code if you are allergic to c# :)

I would have done a script that works on both version but unfortunatly, I don't think there isn't any.

 Bye,

 Jean

ps: make sure you use the beta forum instead of the regular forum, as beta matters should remain within the scope of who have access to this otherwise it will confuse users.