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!

[1790 byte] By [Agent616a] at [2007-10-3 11:24:09]
# 1
You probably need to post your code. Have you made the AffineTransform object static? Its hard to say whats wrong without seeing your code. Make sure you only post what is relevant and wrap it in [code]...[/code] tags.
CaptainMorgan08a at 2007-7-15 13:49:45 > top of Java-index,Other Topics,Java Game Development...
# 2
Nevermind. . . I rewrote the code and everything works fine now. I don't know if the AffineTransform object has been updated or I just figured out a better way of using it.Thanks anyway. I'm sure I'll be back with some other questions soon.
Agent616a at 2007-7-15 13:49:45 > top of Java-index,Other Topics,Java Game Development...