I have read many BufferedImage rotating posts and found that the method to rotate it is using an AffineTransform (at), and using at.rotate(double, int, int). I got this to work, and I can turn it and all but then I want to move it so it shows at a different spot on the screen. For that I used at.translate(int, int). However, the ints don't line up with the actual JFrame I'm using, and it rotates over a different point than the rotated one. How does the translate work with relation to the rotate method? Here's the code I tried using...
public void draw(Graphics2D g){
counter++;
g.drawImage(animation.getImage(), (int)x, (int)y, null);
if (counter * .05 > Math.PI * 2)
counter = 0;
g.rotate(counter * .05, test.getWidth() / 2, test.getHeight() / 2);
g.drawImage(test, at, null);
g.rotate(-counter * .05, test.getWidth() / 2, test.getHeight() / 2);
}