Best way to execute a destroy command only once?

Get help using Construct 2

Post » Fri Apr 29, 2016 11:59 pm

What I want to do is, when 2nd wave is reached, that is enabled by reaching a certain score, all enemies in the screen are destroyed.

But after that, I want the spawning of the enemies of the 1st wave to continue the way they were.

I'm adding "If score > or = than X, Enemy Destroy"

But they never spawn again after that.

Tried with subtracting all health, didn't work either.

Any suggestions? Will I have to create a whole new spawn event for each wave or can that be done simply?
B
9
S
3
G
1
Posts: 20
Reputation: 1,169

Post » Sat Apr 30, 2016 2:11 am

Can you post a screenshot of your spawner code or a .capx.. would make it much easier to figure out what you're trying to do.. I can think of several ways to do this (and did in my space shooter) but it seems you have a certain way in mind.
Check out my completed games on the Arcade! Capt. Doe Save the Universe! & Clicker Wizard!
B
68
S
17
G
8
Posts: 637
Reputation: 9,420

Post » Sat Apr 30, 2016 4:07 am

I think a trigger once will do what you need if I understand correctly.

Whats happening at the moment is once you are above a certain score you just keep destroying enemies every tick, if that makes sense. Even a Boolean that you set to true once you have destroyed the enemies could be set and referenced in order to control it.
Image
B
33
S
11
G
2
Posts: 564
Reputation: 5,153


Return to How do I....?

Who is online

Users browsing this forum: ST314, tarek2 and 31 guests