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
25
S
14
G
139
Posts: 876
Reputation: 72,510

Post » Fri Aug 14, 2015 11:04 pm

Try this :
Image
B
74
S
31
G
26
Posts: 994
Reputation: 20,198

Post » Fri Aug 14, 2015 11:08 pm

you're faster than me @Magistross ;)
Image Image
B
25
S
14
G
139
Posts: 876
Reputation: 72,510

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: Beatchyvon and 24 guests