playMaker

Author Topic: "Get Animation State" ? Photon Network  (Read 2756 times)

jexon

  • Playmaker Newbie
  • *
  • Posts: 5
"Get Animation State" ? Photon Network
« on: June 26, 2014, 01:13:08 PM »
Hi,

Could you tell me how to synchronize animation state over the network? Is there any action to do this in Playmaker?

Thanks  :)

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: "Get Animation State" ? Photon Network
« Reply #1 on: July 29, 2014, 07:55:07 AM »
Hi,

 interesting question. Never tried to do that as is, typically, I strongly recommand that you instead synchronize the Mecanim properties you expose, and then your states will be synchronized as a result.

 so typically, if you have a boolean property jump, do not try to synchronize the Jump state, but instead synchronize the boolean value itself.

 You can look at how it's done in the Photon demo, I am synchronizing the animatino state, and even tho it's using the old animation system, the logic is totally identical and for this you'll need to use the action "SetAnimatorBool"

you can actually verify this by manually controlling the boolean fsm variable that you will use in this action and without any network in place, see how you can control that animator boolean property first, then add the network layer on top.

Bye,

 Jean