Counting number of an object

Get help using Construct 2

Post » Wed Jan 30, 2013 11:40 am

I got a lot of different objects in a layout and the problem I have is that I don't know how to count the number of the same object.

I have tried ObjectCount but failed miserably.

So any ideas out there? And thanks for helping !
(\__/)
(='.'=)
(")_(")
B
20
S
9
G
1
Posts: 68
Reputation: 3,057

Post » Wed Jan 30, 2013 11:43 am

Every object has 'count' variable which should work, you can call it like this: Object.Count
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Wed Jan 30, 2013 2:33 pm

You must go to:

Add event
System
Compare two values
-------
first value sprite.count

comparision = equal to

secon value 3


this is the example.

B
45
S
9
G
10
Posts: 194
Reputation: 8,165


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go, mnashwan, shinkan, stylie1, tarek2 and 10 guests