Each object will increase in size by 5 (height and width). I'm working from the World class. For example, 1st object will be 5x5, 2nd object10x10, 3rd object 15x15, etc. I'm also trying to create a while loop.
I think the code to scale is:
I don't know how to reference the cat class, though. I'm a beginner.
private void setup ()
{
while (i < 25)
{
Cat cat = new Cat();
addObject(cat, 100+15*i, 200);
i++;
}
}
GreenfootImage image = new GreenfootImage; image.scale(image.getWidth(), image.getHeight()); setImage(image);


