How can I flip the image of an actor when it turns 180 degrees without it getting flipped non stopped?
private GreenfootImage[] images = new GreenfootImage[2];
public << ClassName >>() { images[0] = getImage(); images[1] = new GreenfootImage(images[0]); images[1].mirrorVertically(); }
setImage(images[((getRotation()+90)%360)/180]);