I am trying to make an enemy that spawns at random times INSIDE the game and not just when i reset the game. please help!this is what i have so far but that just places the object when i start the game, not spawn it at random times
if (Greenfoot.getRandomNumber(30)<10){
addObject(new Mothership(), 90, 5);
}