[Multiplayer] How do I synchronize animations?

0 favourites
  • 8 posts
From the Asset Store
3 pixel charaters with over 8 animations each + animations with a gun
  • Hello everyone,

    I'm working with the multiplayer plugin, but I cannot figure out the animations.

    Currently I have 2 players A(host) & B(Client).

    The sprite animations in the host work fine.

    However in the Client, the animations from "A" (host) are not working fine.

    I'm using the getbit/setbit instructions.

    It seems that the animations are not synchornize with Sync:Object (only the position) and these needs to be set differently, am I right?

    Regards

  • Don't bother. Start and stop animations when the client recieves the approrpriate action. But unless there is a serious need for it. Don't. 99% of games don't bother. The start/stop of an action is good enough and with latency there is no way you will ever get a 100% animation sync,

  • umm I think I did not explain clearly.

    The problem that I have is the animation is not starting for example I have this:

    getbit(sprite.inputs,0)==1 Set Animation "animation01" (play from beginning)

    (This is following the multiplayer game example).

    But the animation is not starting.

  • Dakiu

    Did you find a solution for this? I'm having the same problem understanding the menchanism.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Dakiu

    Did you find a solution for this? I'm having the same problem understanding the menchanism.

    Yes, as far as I remember, I just updated the animations only in the host I mean the Start Animation.

    This worked for the client.

  • getbit(sprite.inputs,0)==1 Set Animation "animation01" (play from beginning)

    This will restart the animation from the beginning every tick while the bit is set, so it will never advance beyond the first frame, making it look like it is not playing. Either play from the current frame or only set the animation the first time it is true.

  • Hi all i Want to find the code for set animation Multiplayer for host and Client, i have the same problem of dakiu...

    Please worker Help ours With a good cap x of THIS

    Like all

    Sphxrprod

  • Hi all i Want to find the code for set animation Multiplayer for host and Client, i have the same problem of dakiu...

    Please worker Help ours With a good cap x of THIS

    Like all

    Sphxrprod

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)