unexpected picking with containers and families

Bugs will be moved here once resolved.

Post » Sun Jan 19, 2014 1:08 pm

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
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Fri Jan 24, 2014 5:14 pm

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.
Scirra Founder
B
403
S
238
G
89
Posts: 24,654
Reputation: 196,145

Post » Fri Jan 24, 2014 6:12 pm

@Ashley

Thanks for your response, I'll keep that in mind
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 5 guests