how do I use families?

Get help using Construct 2

Post » Sun Apr 29, 2012 12:32 am

I recently bought construct 2 standard edition, and I have to make a pile of the same object, so I have to pin them, and when the platform that is at the bottom moves it has to move all of the object that are piled above of the platform. I have been seeing the forums and they said that with collision with same objects its better to use families, but I don't know where is the option to make families in the event sheet, so I would like to know where to find it. Theres the group option but that only groups the events in the event sheet. Do I have to upgrade to another version? I currently have Construct 2 R84, built at mar 26 2012. Thanks
B
3
Posts: 9
Reputation: 443

Post » Sun Apr 29, 2012 2:24 am

Families are on the Project Bar, they appear as a folder. Once you create a family, it will appear on the conditions and action icons.

http://www.scirra.com/manual/39/project-bar

The manual needs an update.Xavier2012-04-29 02:25:15
B
63
S
23
G
17
Posts: 254
Reputation: 14,342

Post » Sun Apr 29, 2012 3:12 am

[QUOTE=Xavier] Families are on the Project Bar, they appear as a folder. Once you create a family, it will appear on the conditions and action icons.

http://www.scirra.com/manual/39/project-bar

The manual needs an update.[/QUOTE]

I wondered about that myself.

What's the best way to file a bug against the manual? I'm one of those strange people who like to sit down and read manuals from A to Zed. I think the manual for Construct 2 is one of the better ones I've ever seen, but there's always bits and pieces that need improvement, especially since Construct 2 is changing frequently.
Check out my HTML5 Firefox OS Game Programming and Game Playing blog at http://firefoxosgaming.blogspot.com/ and my book on Amazon at http://www.amazon.com/dp/B00IZUYIGO. I wrote a newer post on using Construct for Firefox OS at http://firefoxosgaming.blogspot.com/201 ... -game.html.
B
16
S
4
G
4
Posts: 181
Reputation: 3,837

Post » Mon Apr 30, 2012 12:45 am

Thanks Xavier, I found it. Yes I think the manual should be updated to include the new things they add.
B
3
Posts: 9
Reputation: 443

Post » Mon Apr 30, 2012 9:11 am

Is it possible to use "Pin" behavior conditions/actions in the event sheet when working with families?

I have a group of objects that need to use the pin behavior. I added them to a family, but in the event sheet, I can not use Pin conditions/actions on the family.
B
2
Posts: 2
Reputation: 354

Post » Mon Apr 30, 2012 1:50 pm

Behaviors are not passed through families. What you're going to need to do, instead of using the Pin Behavior, is to have a ForEach [family] loop, every tick, set their position to another object. This will essentially do the same thing as the pin behavior.

Though I must ask, from someone more knowledgeable than I--is there a significant performance drop if you set one object's position to another object, provided the other object doesn't move?
B
14
S
1
G
2
Posts: 85
Reputation: 2,810

Post » Mon Apr 30, 2012 9:37 pm

Family behaviors is coming on next release, I believe

@brockatkinson there's probably no performance drop
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Wed May 02, 2012 4:40 pm

What I did was first look if the family collide with the sprite, and set a flag if this was true, then in another event after that one, I recheck if the family collide with the sprite and check the flag, you cannot pin the family to the sprite, but the sprite to the family can be pin; cause this is the way it worked for me
B
3
Posts: 9
Reputation: 443

Post » Thu May 03, 2012 8:28 pm

Hmm well I hope families will include behavior events in the near future... so far for my project, families are useless because they don't include behaviors.... like i have objects your character can pick up and throw, using the physics behavior. It would be AWESOME if i could just set up the events for one family and i could easily make dozens of different objects you can pick up and throw... oh well, for now i just have to copy and manually replace all the rules. sigh
B
2
Posts: 2
Reputation: 354


Return to How do I....?

Who is online

Users browsing this forum: Kagubro, Solomon and 27 guests