hey-
i am using the code
a1 = eye._y-_ymouse;
b1 = eye._x-_xmouse;
angleA1 = Math.atan2(a1, b1);
degrees1 = angleA1/(Math.PI/180);
setProperty ("eye", _rotation, degrees1);
and this makes my eye follow the mouse through 360 degrees and works fine.
however - on a different page unrelated to this one...
is there a way i can set a limiter on the angle so that it will only rotate through maybe 90
i want to have my character point to a board when u scroll down each menu button on the board - i literally want his hand to point from the top of the board to the bottom as you move down it but i dont want his hand to follow the cursor unless the pointer is actually over the menu selections on the board - if you get me...
i can only get his arm to do complete rotations which looks stupid when you have the mouse behind him
thanks in advance
i am using the code
a1 = eye._y-_ymouse;
b1 = eye._x-_xmouse;
angleA1 = Math.atan2(a1, b1);
degrees1 = angleA1/(Math.PI/180);
setProperty ("eye", _rotation, degrees1);
and this makes my eye follow the mouse through 360 degrees and works fine.
however - on a different page unrelated to this one...
is there a way i can set a limiter on the angle so that it will only rotate through maybe 90
i want to have my character point to a board when u scroll down each menu button on the board - i literally want his hand to point from the top of the board to the bottom as you move down it but i dont want his hand to follow the cursor unless the pointer is actually over the menu selections on the board - if you get me...
i can only get his arm to do complete rotations which looks stupid when you have the mouse behind him
thanks in advance