Valhalla Legends Archive

Programming => General Programming => Java Programming => Topic started by: Clan CDH on September 08, 2008, 09:30 PM

Title: 2 Quick Applet Questions
Post by: Clan CDH on September 08, 2008, 09:30 PM
1.  I need to create a moving eye and have it follow the mouse cursor.  My teacher said we're going to have to be doing this in a few weeks but I've been sitting in class doing nothing b/c I'm already done with our assignments.  He said something about using distance formula, but wouldn't you use Tan, Sin, or Cos?

Oh, and how does one go about creating a text box?


Thanks!
-Aaron
Title: Re: 2 Quick Applet Questions
Post by: c0ol on September 09, 2008, 04:46 PM
Why do you need a text box?  For following eyes you need a canvas that you can draw 4 circles on(one for each eye, one for each pupil)