import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
public class girl extends Actor
{
int count = 0;
public girl()
{
setRotation(45);
}
/**
* Act - do whatever the girl wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
count++;
if (count % 10 == 0) {
System.out.println("Clearing the background");
GreenfootImage img = getWorld().getBackground();
img.clear();
getWorld().setBackground(img);
}
move(10);
}
}

