http://www.greenfoot.org/scenarios/10534
I don't want the tower to rotate from the middle, I want it to rotate from the tower!
Any way I can achieve this?


1 2 3 4 5 6 7 | private int initX, initY; public void addedToWorld(World w) { initX = getX(); initY = getY()- 10 ; // adjust radius as needed } |
1 2 3 4 5 | // any turning that needs done gets done before the following setLocation(initX, initY); // put in center turn( 90 ); // alter rotation move( 10 ); // move from center (adjust radius as needed) turn(- 90 ); // reset rotation |