Well I know I'm doing something wrong as it spawns 2 viruses as soon as infection starts
int[][] locs = { { 173, 429 }, { 252, 357 }, { 211, 499 } }; public void respawn()
{
if (!getObjects(VirusWASD.class).isEmpty())
{
int rand = Greenfoot.getRandomNumber(locs.length);
int x = locs[rand][0];
int y = locs[rand][1];
addObject(new VirusWASD(), x, y);
}
}

So I can't have more than 1 location?
Sorry, I'm pretty bad at explaining

