Family.Count Problems! Please Help!

Get help using Construct 2

Post » Fri Aug 14, 2015 5:35 pm

I want to count each different objects inside the family instead the whole family objects ( example two charlie names exist then = Boolean duplicated true ), i cant realize how to do this, please help me! , i cant use local or global variables because i have a lot of names, i just want set Boolean in duplicated objects, i tried a lot of combinations, i have several hours breaking my head with this, this cant be done?

Image
B
9
S
3
Posts: 142
Reputation: 1,108

Post » Fri Aug 14, 2015 10:00 pm

Use a dictionary with the key as the name and the value as the number of instances.
My tutorial through development blog is at http://myconstruct2dev.blogspot.co.uk/
B
12
S
3
Posts: 221
Reputation: 1,328

Post » Fri Aug 14, 2015 10:59 pm

event 1 : you pick each member of the family "names"
event 2: you compare a number(names.count= total object in family "names") with a text variable so pickedcount (event 3/4) is always = 0
Image Image
B
22
S
13
G
135
Posts: 871
Reputation: 70,320

Post » Fri Aug 14, 2015 11:04 pm

Try this :
Image
B
69
S
28
G
24
Posts: 977
Reputation: 18,739

Post » Fri Aug 14, 2015 11:08 pm

you're faster than me @Magistross ;)
Image Image
B
22
S
13
G
135
Posts: 871
Reputation: 70,320

Post » Sat Aug 15, 2015 12:27 am

Magistross wrote:Try this :
Image

Finally this worked, thank you so much!! ;)
B
9
S
3
Posts: 142
Reputation: 1,108


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 14 guests