Search Unity

2D Sprite animation

Discussion in 'Multiplayer' started by Wrekk, Jan 8, 2014.

  1. Wrekk

    Wrekk

    Joined:
    Jul 16, 2012
    Posts:
    51
    Hello everyone.
    I can't figure out how to send sprite animation information to other players.
    I tried calling an RPC method with the information, though I got tihs error: Sending RPC failed because 'Move' parameter 0 (UnityEngine.Sprite) is not supported. UnityEngine.NetworkView:RPC(String, RPCMode, Object[])
    "Move" is the method name.
    Anyone got any ideas? :)
     
  2. gfoot

    gfoot

    Joined:
    Jan 5, 2011
    Posts:
    550
    Drive your sprite animation through Mecanim parameters, and synchronize either the values of those parameters, or the thing that drives the parameters.
     
  3. Wrekk

    Wrekk

    Joined:
    Jul 16, 2012
    Posts:
    51
    I'll try that, thanks.