Jump to content

  • Log In with Google      Sign In   
  • Create Account

I need help with scaling and rotating sprites.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 andreidim   Members   -  Reputation: 275

Like
0Likes
Like

Posted 05 September 2012 - 09:46 AM

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.

Edited by andreidim, 05 September 2012 - 09:47 AM.


Sponsor:

#2 andreidim   Members   -  Reputation: 275

Like
0Likes
Like

Posted 05 September 2012 - 09:51 AM

I am storring my sprites in a int array and i draw them in a screen my bitmaps.

#3 VildNinja   Members   -  Reputation: 464

Like
0Likes
Like

Posted 05 September 2012 - 10:50 AM

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)

#4 andreidim   Members   -  Reputation: 275

Like
0Likes
Like

Posted 05 September 2012 - 11:04 AM

im drawing a bufferedimage on the screen, so i cant do much

#5 VildNinja   Members   -  Reputation: 464

Like
0Likes
Like

Posted 05 September 2012 - 12:24 PM

Can I see some code? The above method should work fine with BufferedImage




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS