Inserisci questo codice nel primo frame di un movie vuoto, e vedi cosa ti restituisce il trace![]()
this.onEnterFrame = function() {
x = _root._xmouse;
y = _root._ymouse;
c = Math.atan2(x, y);
d = (180*Math.atan2(x, y))/Math.PI;
trace(c);
trace(d);
};
Poi in base al valore ruoti un mc che ti farà da "bussola" ..
Ciao,

Rispondi quotando