ActionScript中~上級者用スレat SWF
ActionScript中~上級者用スレ - 暇つぶし2ch297:Now_loading...774KB
03/08/20 00:14
>>293

どういう軌跡かにもよると思うけど。

だんだん近づくとか
this._x += ( this._parent._xmouse - this._x ) / 10;
this._y += ( this._parent._ymouse - this._y ) / 10;

びよんびよんするとか
this._x += this.xspeed = ( this.xspeed + ( this._parent._xmouse - this._x ) * .3 )*.9;
this._y += this.yspeed = ( this.yspeed + ( this._parent._ymouse - this._y ) * .3 )*.9;

その方向にすすむとか
r = Math.atan2( this._parent._ymouse - this._y , this._parent._xmouse - this._x );
this._x += Math.cos(r)*10;
this._y += Math.sin(r)*10;

はずしてたらすまん


次ページ
続きを表示
1を表示
最新レス表示
レスジャンプ
類似スレ一覧
スレッドの検索
話題のニュース
おまかせリスト
オプション
しおりを挟む
スレッドに書込
スレッドの一覧
暇つぶし2ch