HEY, dunno how to prevent objects spawning on eachother. I know I have to put it in the code below.
public void spawnContainer()
{
int spawnX = Greenfoot.getRandomNumber(1024);
if(Greenfoot.getRandomNumber(80) == 1){
getWorld().addObject(new Container(), spawnX, 0);
}
}
My objects do move down and also remove when they are at the edge but problem is sometimes they spawn on eachother D:
thx in advance :)

