I'm trying to make two more seagulls appear every time there is none on screen, but only two seagulls appear and fly across the screen and no other ones appear afterwards.
private void addSeagulls() { if (getObjects(Seagull.class) == null); { addObject(new Seagull(), 999, Greenfoot.getRandomNumber(600)); addObject(new Seagull(), 999, Greenfoot.getRandomNumber(600)); }