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
79
S
12
G
6
Posts: 961
Reputation: 10,217

Post » Tue Jul 10, 2012 10:03 pm

Use the Sprite.Count expression:
http://www.scirra.com/manual/133/common-expressions
B
88
S
30
G
89
Posts: 5,113
Reputation: 60,337

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
79
S
12
G
6
Posts: 961
Reputation: 10,217

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
88
S
30
G
89
Posts: 5,113
Reputation: 60,337

Post » Wed Jul 11, 2012 8:00 am

Thanks R0j0!
@bearboxmedia
www.bearboxmedia.com

Nintendo Wii U Developer using Construct 2
B
79
S
12
G
6
Posts: 961
Reputation: 10,217


Return to How do I....?

Who is online

Users browsing this forum: bclikesyou, imhotep22 and 13 guests