unexpected picking with containers and families

0 favourites
  • 3 posts
From the Asset Store
A collection of various zombie characters sprites for creating a 2D platformer or sidescroller game
  • The following may not be truly a bug, but doesn't feel right in some cases, so I report it.

    Link to .capx file (required! If link is blocked remove the http and www parts):

    https://www.dropbox.com/s/786lda2gpoc8si1/Family%20picking%20issue.capx

    Steps to reproduce:

    0.The capx can be quite tricky, so let me explain a little:

    the blue sprite and the yellow sprite are containers, the behavior pin is used to pin the blue one on the corresponding yellow one, the yellow one has a platform behaviour only to show the problem

    1. launch the layout "Test this layout" with the event sheet "Using object directly", as you should see, everything is fine

    2. launch it, but with the event sheet "Using Families", now all blue sprites are pin only to one

    Observed result:

    When using families, the correspondance between object is lost

    Expected result:

    the containers picking working even while using families

    Browsers affected:

    Chrome: yes

    Firefox:

    Internet Explorer: yes/no

    Operating system & service pack:Windows 7 family edition

    Construct 2 version:158.2

  • This is currently by design: containers don't have any effect when referenced through families. This is mainly due to the complexity, and possible performance cost, that could come from supporting this. There are a few ways to work around it using IIDs or UIDs, hopefully you can get by with that. I'll leave this bug report open though to indicate a known issue.

  • Try Construct 3

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

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

    Thanks for your response, I'll keep that in mind

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