Constrain an integer attribute to a tagged group of actors?
DankStew
Member Posts: 36
Hey there, I've been trying to figure this out for about 2 days now... I was wondering if you can:
set up an integer attribute
(Enemies left)
and then constrain that to a tagged group of actors
(Bad Guys)
I want to be able to know when the level ends. Or is there an easier way? I was doing it this way because I have about 25 different bad guys, and I don't want to have to go through and add something to each one specifically. Thanks!
set up an integer attribute
(Enemies left)
and then constrain that to a tagged group of actors
(Bad Guys)
I want to be able to know when the level ends. Or is there an easier way? I was doing it this way because I have about 25 different bad guys, and I don't want to have to go through and add something to each one specifically. Thanks!
Comments
When collides with bullet
change game.EnemiesLeft to game.EnemiesLeft - 1
put this in each bad guy. (Next time you are making a game you m ay want to create one bad guy actor with all of the rules that will be the same for each bad guy. Then copy and paste to make each new actor and add the unique rules. That'll save a bunch of time.)
I did try and do 1 main bad guy archetype, but then got too overzealous wanting to try playing a level, so I jumped a step or two... but trust me I will definitely be doing it that way in the future.
Thanks!