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
56
S
15
G
18
Posts: 1,846
Reputation: 17,793

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: imhotep22, kiko2015, Monkin8r, Yahoo [Bot] and 12 guests