Multiplayer and Sync object

0 favourites
  • 3 posts
From the Asset Store
Now you can drop everything in your game with sound :)
  • In Manual u can read:

    [quote:2vabfrve]As synced objects are created, moved and destroyed on the host, they are correspondingly created, moved and destroyed on all connected peers. It is important to disable any behaviors and deactivate any events on the peers that may attempt to move the objects themselves; this will conflict with what Sync object is trying to do, and will not have any effect on the host.

    How can i give peer ability to move their own object and sync only with host and other peers (but not them self)?

    I enable local input prediction.

    Every peer sent positionX and positionY to host, and host set X and Y to sync object but then host send back position of this object back to peer so object dont move smooth.

  • Bump!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I've solved my own problem, about this and maybe it will help you too. When syncing objects, if that objects movement dependent to another object that controlled by you (for ex. soldier(main object) walking with his spear(dependent object)) dependent movement gradually fall behind. But if you simulate this movements locally by local variables you can prevent this, dont use synced variables and also dont forget to simulate this behaviour on peer and host's ''peerid not equal to multiplayer.myid'' section, hope this helps.

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