
-----------------------------------
Kid_Goron
Tue May 24, 2005 1:16 pm

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

-----------------------------------
Hikaru79
Wed May 25, 2005 9:06 pm


-----------------------------------
The two things you need to learn are: [url=http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/MouseListener.html]MouseListener, for clicks and releases, etc, and
[url=http://java.sun.com/j2se/1.4.2/docs/api/java/awt/event/MouseMotionListener.html]MouseMotionListener for just regular movements.

-----------------------------------
Kid_Goron
Thu May 26, 2005 8:21 am


-----------------------------------
Never mind I figured this one out myself.  I got what I need thanx amyways.
