Family SOL List not updating?

Get help using Construct 2

Post » Tue Feb 14, 2012 10:08 pm



FamilyButton contains sprites ButtonA, ButtonB, and ButtonC.

Right-Button Mouse Click creates a row of three adjacent buttons.
Pressing Z puts the first one down in the correct location, but because the family SOL hasn't been updated, it puts the others in random locations.

Can anyone tell me why the Family SOL is not being filtered on each subsequent System.Create? Shouldn't it behave the same as System.Create for specific sprites?

-- cacotigoncacotigon2012-02-14 22:08:44
B
30
S
6
G
8
Posts: 232
Reputation: 6,119

Post » Tue Feb 14, 2012 10:24 pm

How should it know the difference between a,b,and c, unless you refer to them specifically?
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Tue Feb 14, 2012 11:00 pm

well, as I understand it, Families have individual SOL lists just as Sprites do, so I would expect that particular Families SOL list to be set to the last created instance, just as sprite SOL lists do.

EDIT: What I mean is that the ButtonFamily SOL list should (at the time subsequent to the Create ButtonFamily method) contain only a single UID, it doesn't really matter if it's ButtonA/ButtonB/ButtonC, since I'm using properties (X position) which are common to all of them.cacotigon2012-02-14 23:02:34
B
30
S
6
G
8
Posts: 232
Reputation: 6,119

Post » Tue Feb 14, 2012 11:48 pm

Might do a family.count check there.
Image Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

Post » Wed Feb 15, 2012 12:29 am

I think when you create an object from a family type it picks it in the real object type's SOL, but not in the family SOL. You're right it's a bug, I'll try get it fixed for the next build.
Scirra Founder
B
359
S
214
G
72
Posts: 22,949
Reputation: 178,544


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 28 guests