• Welcome to Valhalla Legends Archive.
 

2 Quick Applet Questions

Started by Clan CDH, September 08, 2008, 09:30 PM

Previous topic - Next topic

Clan CDH

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

c0ol

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)