Hi, I am making a program in which there is a small actor, and when I call the function I want many of those actors to fill a certain area in the screen, and I have no idea where to start. Any help is greatly appreciated, thanks alot.
John


// fields for the defining of the area and the number of actors int leftX = 200, rightX = 400, topY = 100, bottomY = 300; int totalActors = 100; // if in a World sub-class, to add the actors in the specified area for (int i = 0; i < totalActors; i++) { int actorX = leftX + Greenfoot.getRandomNumber(rightX - leftX); int actorY = topY + Greenfoot.getRandomNumber(bottomY - topY); addObject(new SmallActor(), actorX, actorY); }