Count number of objects

Get help using Construct 2

Post » Tue Jul 10, 2012 9:54 pm

Hey,

I'm looking to count how many of a certain object are left on the level so that when the number = zero, the exit will appear.

Any help would be much appreciated.
B
94
S
18
G
8
Posts: 1,026
Reputation: 12,378

Post » Tue Jul 10, 2012 10:03 pm

Use the Sprite.Count expression:
http://www.scirra.com/manual/133/common-expressions
B
95
S
33
G
128
Posts: 5,491
Reputation: 81,570

Post » Tue Jul 10, 2012 10:11 pm

Sorry, but could you tell me where to look? Tat age doesn't appear to say which section it is in. I've tried system, and the object, for both conditions and actions and can't see it anywhere.
B
94
S
18
G
8
Posts: 1,026
Reputation: 12,378

Post » Tue Jul 10, 2012 10:42 pm

It's an expression.
Use the system condition "compare two values" and set one value to Sprite.Count and the other to 0.
B
95
S
33
G
128
Posts: 5,491
Reputation: 81,570

Post » Wed Jul 11, 2012 8:00 am

Thanks R0j0!
B
94
S
18
G
8
Posts: 1,026
Reputation: 12,378


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests