I’m trying to make a footer, simple, just eyes following the mouse. How can I make it so that the eyes stay within their boundaries but are always pointing at the mouse pointer? I’ll think of smoothing over the movement later, for now I just want the basics.
I’ve considered having each eye on a pivot with a 0% alpha line coming off it, following the mouse, however then the eyes would only move in a circular motion…
I’ve thought about e.g. for every 5 pixels the mouse is away from they eye’s, they move one in that direction, but then if the mouse is directly above them, they won’t be moving much.
The only way I can work out is to have a set boundary, which they eye’s cannot move outside of, but then I assume that would have to be a quadrilateral of some sort, which would look really odd.
Is there anyone who can help me with ideas of how to code it? Once I have ideas, i’ll try to work the rest out myself, otherwise I won’t learn anything.