Computer Science Canada Need mouse help |
| Author: | Kid_Goron [ 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 |
|
| Author: | Hikaru79 [ Wed May 25, 2005 9:06 pm ] |
| Post subject: | |
The two things you need to learn are: MouseListener, for clicks and releases, etc, and MouseMotionListener for just regular movements. |
|
| Author: | Kid_Goron [ Thu May 26, 2005 8:21 am ] |
| Post subject: | |
Never mind I figured this one out myself. I got what I need thanx amyways. |
|