Whenever i'm making a top down game, I always run into the same problem with my enemies. One of my games was a top down game with enemies with melee attacks and when two of the enemies attacked at the same time, they'd attack many times (they were supposed to attack every half second but did it much faster than that. In another one of my games the enemies would shoot and it worked perfectly with just one enemy but they all attacked rapidly when I added a few more. Basically I can get one enemy to have perfect attacking mechanics but when I add more enemies it gets messed up. So can anyone tell me how they make enemies attack or why it gets messed up?