Pretty simply I'm making a greenfoot program for my hsc. Now my program is closely based of the "little-crab" scenario but with a difference. my major character, a computer, will shut and close as it moves so it looks better and so my code becomes a bit more complex. the problem is at the speed i want the program to run (about halfway) the two images switch rapidly. Can i have some help to slow them down please? Here's the code so far;
public class laptop extends Actor
{
private GreenfootImage laptop1 = new GreenfootImage("Laptop5.png");
private GreenfootImage laptop2 = new GreenfootImage("LaptopClosed2.png");
private boolean image1 = true;
code code code....
private void walk()
{
if (getImage() == laptop1)
{
setImage(laptop2);
}
else
{
setImage(laptop1);
}
move(2);
}

