I know that I have to create a loop with a scale command which gets reversed but I don't really know what to do
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class ScaleDot extends Enemy
{
public void act()
{
for(int i=1; i<11; i++){
GreenfootImage image = getImage();
image.scale(image.getWidth() + 1, image.getHeight() + 1);
setImage(image);// Add your action code here.
}
}
}
