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 :)
*
1 2 3 4 5 6 7 8 9 10 | if ((getRotation()== 180 && Greenfoot.isKeyDown( "D" )) || (getRotation()== 0 && Greenfoot.isKeyDown( "A" ))) { getImage().mirrorVertically(); } |