I need help with scaling and rotating sprites.

Started by
3 comments, last by VildNinja 11 years, 7 months ago
Hello everyone, my name is Andrei and i want to develop a game in java, but i need some features that i dont know how to implement in my pure java game engine, if anyone can help me, i would love to, i can get the angle, but i dont know how to rotate a sprite and i dont know how to do scale.

Thanks.

PS.:Sorry for my bad english, i have some typos from hurrying and english is not my primary language.
Advertisement
I am storring my sprites in a int array and i draw them in a screen my bitmaps.
Why don't you use Graphics2D?

Then you can draw your image with drawImage(java.awt.Image, java.awt.geom.AffineTransform, java.awt.image.ImageObserver)
im drawing a bufferedimage on the screen, so i cant do much
Can I see some code? The above method should work fine with BufferedImage

This topic is closed to new replies.

Advertisement