I am having trouble getting my character to do a full left or right flip, depending on which is pressed. I tried setLocation(getX(), getY(); but I just could not have it work. Is there anyone who can help?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | public void flipLeft() { flip(- 360 ); } public void flipRight() { flip( 360 ); } private void flip( int x) { } |