Multiple (independent) Image Rotation
Usually I'm good at finding information to solve problems by searching the forums. but honestly I've never seen this problem solved or ever heard any mention of it. . . . here goes.
I'm writing a space shooter that uses images as the hero and enemy ships.
My problem is this.
I've written the code and walked through it several times an what I have written correctly works incorrectly.
I wrote a loop to cycle each sprite object (each has an AffineTransform object as a variable).
Afterwards coded it to rotate each object individually based on their own AffineTrasform.
The result is a when I rotate the hero ship the other ships rotate in concert. Even more strange they rotate slightly off. meaning that they aren't completely synchronized, but they rotate in the same fashion. (The enemy ships rotate in sync with each other, slightly latent to the rotation of the hero ship)
My question is how do you rotate multiple objects indepedently?
I haven't tried creating a thread for each object because it would make the program unduly complicated and slow. Also it is unecessary when I already have a thread that cycles each object before it is rendered in the paint(Graphics g) method.
My theory is that there are static attributes in the AffineTransform Class that are creating a rollover effect to the other sprites. I haven't been able to prove this theory but If it is true hopefully Sun recognizes this problem and fixes it. . .i.e. an alternative AffineTransform class that doesn't have static variables so that I can rotate each sprite without the rollover. (Much easier than ME rewriting code LOL :P )
If necessary I'll post the code. but hopefully it isn't.
Thank you to any genius that can help!

