'Associate Object with Peer' does not work with Families

0 favourites
  • 2 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • Problem Description

    The 'Associate Object with Peer' action only works with individual objects, and not with instances of a Family.

    Attach a Capx

    https://www.scirra.com/forum/download/file.php?id=4413

    Description of Capx

    The CAPX is exactly the same as the Multiplayer Real-Time Game tutorial, with a few modifications in Game Events (do a search for "MODIFICATION" to see them all). 'Associate Object with Peer' now associates with an instance of 'PeerFamily' instead of 'Peer'. 'PeerFamily' is a simple family that I created that has only one object: 'Peer'.

    Steps to Reproduce Bug

    • Step 1 - Run the game from the Login screen as you would normally to create a Host.
    • Step 2 - Open a second game window to create a Peer.
    • Step 3 - Close the Peer window.

    Observed Result

    In the Host window, the Peer object is not destroyed, indicating that the association did not take place.

    Expected Result

    Object associated with Peer should be destroyed.

    Affected Browsers

    • Chrome: (YES)
    • FireFox: (YES) Operating System and Service Pack ____ Windows 8 64-Bit ____ Construct 2 Version ID r175
  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Closing as not a bug. This is not to do with the multiplayer object. You just can't 'pick by UID' in its family type before the object is fully created. Any object created with 'Create object' or 'Spawn an object' does not actually fully exist until the end of the next top-level event, and so can't be picked from its family in branches of the same sub-event. This is a quirk of the event system that is necessary to avoid crashing in this case given the particular algorithms we use.

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