Need mouse help
Author |
Message |
Kid_Goron
![](http://www.palaiszelda.com/images/z10/char/goron2.jpg)
|
Posted: Tue May 24, 2005 1:16 pm Post subject: Need mouse help |
|
|
I've been making a final project in java, and i would like to incorporate the mouse into my program. I would like my helicopter (or any object) to follow the location of the mouse coordinates without a button press or anything. I would like to reserve the clicking to fire bombs from the helicopter. If possible i would also like a delay of follwing the mouse from the helicopter, and for the helicopter to never exceed a certain speed. Any sort of help would be appreciatd. Thanx |
|
|
|
|
![](images/spacer.gif) |
Sponsor Sponsor
![Sponsor Sponsor](templates/subSilver/images/ranks/stars_rank5.gif)
|
|
![](images/spacer.gif) |
Hikaru79
|
Posted: Wed May 25, 2005 9:06 pm Post subject: (No subject) |
|
|
The two things you need to learn are: MouseListener, for clicks and releases, etc, and
MouseMotionListener for just regular movements. |
|
|
|
|
![](images/spacer.gif) |
Kid_Goron
![](http://www.palaiszelda.com/images/z10/char/goron2.jpg)
|
Posted: Thu May 26, 2005 8:21 am Post subject: (No subject) |
|
|
Never mind I figured this one out myself. I got what I need thanx amyways. |
|
|
|
|
![](images/spacer.gif) |
|
|