Count object instances based upon instance variable value

Get help using Construct 2

Post » Mon Mar 23, 2015 1:47 pm

Sorry form my noob, I need to maintain a text box/variable that keeps active count of object instances that have an instance variable of 'X'.
For example (if this worked) as a text box expression "sprite.instanceVar=1.Count"

Thanks for any assistance.
B
4
Posts: 7
Reputation: 214

Post » Mon Mar 23, 2015 1:54 pm

pick


event
pick all object
pick object by evaluate where object.var = X
action
set text.txt object.PickedCount
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,562

Post » Mon Mar 23, 2015 5:44 pm

Exactly what I was looking for, TKS!
B
4
Posts: 7
Reputation: 214


Return to How do I....?

Who is online

Users browsing this forum: ezgaming420 and 17 guests