[Suggestion] If all X have been destroyed

Discussion and feedback on Construct 2

Post » Mon Nov 28, 2011 7:26 pm

Hi.

Just one suggestion I thought of.
If you had an event condition which was either one of the following:

If all of the X objects are destroyed...

or

If the number of X objects = 0...

Perhaps the second one would be more useful as you could utilise it in different ways.

Example: Say you have a wave based game and you destroy all the monsters, it would register as a satisfied condition and cause the next wave to spawn.
B
10
S
2
G
4
Posts: 45
Reputation: 5,894

Post » Mon Nov 28, 2011 7:31 pm

You can use .count for this. When creating a new condition, go to System>Compare Two Values> then enter object.count = 0
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Nov 28, 2011 7:33 pm

Ah okay. Thank you.
B
10
S
2
G
4
Posts: 45
Reputation: 5,894


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 7 guests