im looking on how to spawn different zombies that after a certain time frame it will become random if they are the speed zombies or normal zombies then again after the 2nd period of time to spawn a tank heres the code i have already:
  if(time == 60)
        {
            randomZombie = Greenfoot.getRandomNumber(2);
            switch(randomZombie)
            {
                case 0: zombie.speed = 1; zombie.health = 5;
                case 1: zombie.speed = 5; zombie.health = 3;
            }
        }
        if(time == 120)
        {
            randomZombie = Greenfoot.getRandomNumber(3);
            switch(randomZombie)
            {
                case 0: zombie.speed = 1; zombie.health = 5;
                case 1: zombie.speed = 5; zombie.health = 3;
                case 2: zombie.speed = 1; zombie.health = 10;
            }
        } 
          
         
   
