Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-28-2011, 03:47 AM #1
- Join Date
- Apr 2011
- Thanked 0 Times in 0 Posts
Whats more efficient? Rotating images(in JLabel)
Im making a game and I need my character to rotate.
Would it be better to rotate it by making a whole other image, in the direction desired? or to rotate the content in code?
So theres 4 directions(up,down,left,right)
Have 4 images, each one in a certain direction. When i want to rotate, i
sub one image for another.
Have 1 image. When I want to rotate it, I actually rotate it in code.
P.S. I can do option 1 with ease, but i feel like its elementary and inefficient. But iv spent some time trying to use AffineTransform to try to rotate it with no luck