Is there a way to end a round with 'all badguys are dead' behavior?
I need something along the lines of telling the game to end a round when all the badguys are dead.
We have a 'collides or overlaps' condition, I WISH we had a 'does not overlap or collide' condition. It would make it so easy.
I have 4 different badguys(some rounds fight 1 of 1, some fight all 4, or 2 of 1 etc), 5 different fights over 6 different stages. After each 'wave' i need to tell the game to start the next wave in x seconds. Not sure how to do that. Without making a different game attribute for each and every round.
There's got to be a way to do it with 5 or less attributes....something, I dread making 120 attributes just for starting the next round of fighting.
Anyone have any ideas?
We have a 'collides or overlaps' condition, I WISH we had a 'does not overlap or collide' condition. It would make it so easy.
I have 4 different badguys(some rounds fight 1 of 1, some fight all 4, or 2 of 1 etc), 5 different fights over 6 different stages. After each 'wave' i need to tell the game to start the next wave in x seconds. Not sure how to do that. Without making a different game attribute for each and every round.
There's got to be a way to do it with 5 or less attributes....something, I dread making 120 attributes just for starting the next round of fighting.
Anyone have any ideas?
Comments
Create an integer and call it Bad Guys Dead
Now in each bad guy actor you have, add a rule that says when the condition required for it to "die", i.e. when it overlaps with a bullet actor, change attribute game.Bad Guys Dead to game.Bad Guys Dead + 1
Then in another actor you can have rules that say:
When game.Bad Guys Dead = 1
.....start round 2
When game.Bad Guys Dead = 3
......start round 3
and so on and so on.
Best of luck!
:^)
I can use 'otherwise' to tell the round that it ended, but to tell the next round to start, and which npcs to spawn, will need to be different Attribute for each one right?
Wouldn't "round 2" and "round 3" need to be an Attribute of their own with rules for spawning specific badguys?
You don't "need" round 2 and round 3 attributes. It really all depends on how you want to organize your game. You can have them if it helps your brain keep everything organized. Adding attributes doesn't have much of an effect on performance, but the less you have the easier it is to keep track of them.