Instance variable of a family

Get help using Construct 2

Post » Sun Jan 29, 2012 1:02 am

I have a family with four different objects, each of them gets spawned randomly.

When they collide with another object, they have different behaviours.

I created a family collides with object event, is it possible to add another condition more or less like this:

family.object_that_collided.instance_variable = 'something'?

Thanks
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Sun Jan 29, 2012 2:21 am

Not yet. Family variables and family behaviors are to be implemented in a future release.
New to Construct ? Where to start

Image Image
Image Image

Please attach a capx to any help request or bug report !
Moderator
B
247
S
85
G
40
Posts: 6,998
Reputation: 57,791

Post » Sun Jan 29, 2012 12:39 pm

I'll say it here because I don't want to fill the forums, but thank you, you're always very helpful.
B
29
S
9
G
6
Posts: 525
Reputation: 8,294

Post » Wed Feb 01, 2012 9:40 am

I would like to see a Families in Construct 2-help section in the manual and a tutorial if possible. I want my monster classes to behave properly. I need to make living vegetation, destroyable and non-destructible object classes, map-zones [to change music, mood, exit/entry zones], proximity traps. Looking forward to extensive use of families.
B
25
S
5
G
5
Posts: 138
Reputation: 5,638

Post » Wed Feb 01, 2012 1:33 pm

@mercy, we'll document families when all the features are done - shouldn't be more than a couple of weeks.
Scirra Founder
B
359
S
214
G
72
Posts: 22,948
Reputation: 178,532

Post » Tue Feb 03, 2015 10:37 am

So any update on this? Is it possible to do "family.object_that_collided.instance_variable"
B
22
S
6
G
2
Posts: 50
Reputation: 2,161


Return to How do I....?

Who is online

Users browsing this forum: Braus, jatin1726, RickUSBstick, Yura G and 18 guests