Jump to content

  • Log In with Google      Sign In   
  • Create Account

Bench3

Member Since 08 Aug 2012
Offline Last Active Sep 14 2012 03:51 PM

Topics I've Started

Rotating Images With Angles On KeyPresses

16 August 2012 - 09:32 AM

Hi, I was wondering how I could rotate an image when I press a key. For example, if I pressed D it would rotate right and A left. I know how to set up keyListeners but not sure about the rotation.
I then wondered about how I would go about getting something to face a direction. So if I pressed G, the image would turn to face a certain angle?
Thanks in advance!
~Ben

Rotating Images With Angles On KeyPresses

16 August 2012 - 09:30 AM

Hi, I was wondering how I could rotate an image when I press a key. For example, if I pressed D it would rotate right and A left. I know how to set up keyListeners but not sure about the rotation.

I then wondered about how I would go about getting something to face a direction. So if I pressed G, the image would turn to face a certain angle?

Thanks in advance!

~Ben

Fading Objects In And Out

15 August 2012 - 03:35 PM

Hi, i've been attempting to make a game and was wondering how to make objects (such as rectangles) in and out from a JPanel. Can anybody help me out?

Thanks in advance,
~Ben

PARTNERS