About family object selection..

Get help using Construct 2

Post » Mon Sep 24, 2012 5:44 pm

I normally use "objects in objects" instead of families, so I've run into some unexpected differences in object selection / instance picking when attempting to use them in my latest project.

+Player is overlapping family and presses Z
-> Enable family effect


This enables the effect for all objects in the family, not just the one the player is overlapping like I thought it would.

+Player is overlapping family
-> Toggle Boolean "Flash"

+Is Flash
-> Enable family Effect

+Is NOT Flash
-> Disable family Effect


And this only works 50% of the time when overlapping the first instance, and 100% of the time when overlapping all instances. And by work, I mean it makes all objects in the family flash, not just the one the player is overlapping.

I've tried a combination of "For Each" , "Pick nearest/farthest" ,and swapping the order of "player" and "family" but nothing is working - it's all objects or none. Could someone explain this to me?Tokinsom2012-09-24 17:52:17
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Sep 24, 2012 6:07 pm

Dunno what you're doing wrong. What you describe should work.
flash.capx
B
54
S
28
G
18
Posts: 1,520
Reputation: 25,020

Post » Mon Sep 24, 2012 6:13 pm

[QUOTE=Tokinsom]+Player is overlapping family and presses Z
-> Enable family effect
[/QUOTE]

Works fine here on r104.
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Mon Sep 24, 2012 6:21 pm

Yeah it's uhh...not working like that in my project. Weird. Will investigate.

EDIT: Ok there were some other events I didn't notice that were interfering. The flashing works now, but the first example still affects all objects in the family instead of the one player is overlapping :\ hmm

EDIT 2: Solved. It would appear that the only way to toggle family effects on individual objects in a family is to set the parameters so that they look enabled or disabled - actually enabling or disabling the effect will affect all instances.Tokinsom2012-09-24 18:48:37
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024


Return to How do I....?

Who is online

Users browsing this forum: SpartCrafter and 24 guests