Hi, i'm beginners on construct 2
So I just try this to make enemies spawn based on the "spawnon" and "enemy"variable
->system spawnon = 0 | system set pattern to choose (0, 1, 2)
->system trigger once |
-->system pattern = 0 | "enemy spawn"
-->system pattern = 1 | "other kind enemy spawn"
-->system pattern = 1 | "another kind enemy spawn"
->Enemy on created | Add 1 to enemy
->Enemy on destroy |Add -1 to enemy
->system enemy > 0 | set spawnon to 1
->system enemy = 0 | set spawnon to 0
but after all first wave enemies destroy, the next wave usually spawn more enemies than it should be (like pattern 1 and 2 spawn together, or pattern 0 spawn double), and I can't find where is the problem.
If anyone can help i would be grateful
*english is not my native language