Multiplayer Sync Object not syncing object size/scale?

0 favourites
  • 5 posts
From the Asset Store
This is a single chapter from the "Construct Starter Kit Collection". It is the Student Workbook for its Workshop.
  • Hi. I used the Sync Object on Start of Layout to sync some objects and their instance variables. To make it work all synced objects are destroyed on the peers and then recreated by the host. This works fine so far BUT all ojects on the peer appear in the wrong (original) size and dont have the reduced sice from the Host. I tried syncing positon + angle but it seems the scale/size is not synced. Can't you resize objects which are synced?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • It seems the collision poly changes size when you sync an object and change its size on the host but the actual sprite does not increase in size. Is this intended and I have to set the size on host and peers individually (in common group for both)? But why does the collision poly increase?

  • No, it does not sync the size of objects.

    Since the host handles the collisions and positions of objects, it also handles the collision polygon size,

    so it may seem like the collision polygon is synced, but it is not

    You have to set the object size on both sites, yes.

    • Conti
  • It's by design that the Multiplayer object only syncs the absolute minimal set of properties that you specifically tell it to, in order to avoid wasting bandwidth. If it synced all the object's expressions that would likely use a huge amount of bandwidth and make it impractical to use, so anything extra you want to sync you have to explicitly add.

    The easiest way to do that is add an instance variable, sync the variable, and use it to store the intended width/height (or just a single scale value if that's all you need and want to save bandwidth).

  • Ok, I will do that. Thank you.

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