I want it set up so that when my counter reaches a certain amount (set at 20 for testing purposes), new objects will start to appear appearing at random times at random positions along the left side of screen.
counter++;
if (counter == 20)
{
if (Greenfoot.getRandomNumber(200) <10)
addObject(new pointBall2(), 0, Greenfoot.getRandomNumber(600)); //
}
/**
*the code, without the counter ++, if( counter == 20){} works the way i want it too. essentially all * I want to add is a delay before the function takes place
*/