Hi, i am making a project for school and it's due this Friday, I am trying to make it when i kill a humans it with spawn another humans, but when I do the method it always spawn and enormous amount of humans, here is the code I used:
public void checkWave()
{
if (Zombie.score == 4)
{
getWorld().addObject(new Human(),200,100);
}
can someone help me to make it only spawn 1 human instead of thousands!

