private GreenfootImage image1;
private GreenfootImage image2;
public void animateCrab()
{
if ( getImage() == image1 )
{
setImage(image2);
}
else
{
setImage(image1);
}
}
This code used to animate the actor but at some point it stopped working. I have tried a dozen solutions and none have worked as of yet. Everything I have tried has just crashed the client by overusing memory.


