function mousetracing() {
this._x = (this._x+_root._xmouse)/2; //rootから見た座標
this._y = (this._y+_root._ymouse)/2;
}
mc.onEnterFrame = mousetracing;
数値を色々変更すればスピードが変わります。
インスタンスの向きを変更するにする場合
_xscaleプロパティの値の正負の符号を
逆にすると向きが変わります。
this._x = (this._x+_root._xmouse)/2; //rootから見た座標
this._y = (this._y+_root._ymouse)/2;
}
mc.onEnterFrame = mousetracing;
数値を色々変更すればスピードが変わります。
インスタンスの向きを変更するにする場合
_xscaleプロパティの値の正負の符号を
逆にすると向きが変わります。