Yeah, that is what I am aiming for. When the monster dies, it spawns a new object, which is the random powerup. But, I don't want a powerup to spawn on every death. It has to be random. I don't have the monsters in array. Every monster is a unique one.
So, I have:
Monster A, Monster B, Monster C, Monster D.
All the monsters spawn infinitely. Is there a way I can do a collective "random powerup spawn at any death", even though the monsters are not in an array?
The problem I am facing is since the monsters spawning is infinite, I am not able to give percentage for the powerup drops. :(