How long does it take for code to run? because I notice that there is a delay when the code runs because of thisif there is no delay then it would just spawn spiders EVERYWHERE and it would be FILLED on the screen but it takes about a good 15 seconds for a spider to spawn
if (Greenfoot.getRandomNumber(500) < 1) { addObject(new Spider(),0,Greenfoot.getRandomNumber(400)); }