Image rotation to another image
Hello. Im trying to make a game like tower defence, i think someone knows how that games looks. So now i need to make that my laser shooter automatically rotates to moving enemies, laser shooter is from image so im drawing it like that:
As you can see there are already added rotation by angle, but i need to know how to rotate it to another image which is moving. And also maybe someone knows how to put that image with rotation to desired location by x and y?
AffineTransform affineTransform = new AffineTransform();
g2.drawImage(tank_head.getTexture(), affineTransform, this);
Re: Image rotation to another image
Moved from New to Java