so i wanted the actor jerry to get mirrored vertically when "a" is pressed ( while it's moving) basically I want jerry to face to the side it is moving...but when I tried this code when ever I pressed "a" its started glitching
public void act()
{
if(Greenfoot.isKeyDown("w"))
move(4);
if(Greenfoot.isKeyDown("a"))
{ move(-4);
turn(180);
getImage().mirrorVertically();
}
