Hi I am trying to and have almost finished a game on greenfoot. I want the game to add in 4 new enemies when i kill the first wave of enemies, this is 4 at the start. I am using this code but whenever i kill 4 i am getting unlimited enemies spawning from it, here is the code
KillCount1 kc1 = getKillCount1();
if(kc1.dead1 ==4)
{
addObject(new AtrixoLV1(), 400, 400);
addObject(new AtrixoLV1(), 100, 200);
addObject(new AtrixoLV1(), 700, 300);
addObject(new AtrixoLV1(), 800, 400);
}

