I use this code* inorder to flip the image but it don't work, either it doesn't flip or it keeps fliping when i walk one direction. Could someone tell me what I'm doing wrong :)
*
if((getRotation()==180 && Greenfoot.isKeyDown("D"))
||
(getRotation()==0 &&
Greenfoot.isKeyDown("A")))
{
getImage().mirrorVertically();
}

