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.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 929
Reputation: 9,356

Post » Tue Jul 10, 2012 10:03 pm

Use the Sprite.Count expression:
http://www.scirra.com/manual/133/common-expressions
B
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

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.
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 929
Reputation: 9,356

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
79
S
24
G
52
Posts: 4,725
Reputation: 39,713

Post » Wed Jul 11, 2012 8:00 am

Thanks R0j0!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
68
S
8
G
6
Posts: 929
Reputation: 9,356


Return to How do I....?

Who is online

Users browsing this forum: Colorfish, Waltuo and 4 guests