Hello.
I’ve have been producing a game as a part of my agile course. I would like to ask if there is a way to fetch a random child from my enemy group. The game is based on space invaders and i have already implemented a wave system so when you clear the screen of enemies the game spawns a new wave. 2 out of 6 enemy types are supposed to fire back at the player.
So here is we come to my problem. I can get them to fire using getFirstAlive(), but our product owner is not satisfied with that and i must agree it looks kinda stupid. My bullet code looks like this: Enemy bullet code