Hello, I'm a student and i have to create my own computer game with the old 2.4.2 version of greenfoot.
My game should be similar to the game "falling leaves" - a girl who is running on the bottom and catching fruits which are falling from the sky.
I created the following code for the running animation of the girl:
public void switchImage()
{
if (getImage() == image1)
{
setImage(image2);
}
else
{
if (getImage() == image2)
{
setImage(image3);
}
else
{
setImage(image1);
}
}
}
my question is how can i slow down the speed of the changing images?

