阿特底賽 ArtDesign
網頁設計CSS/JS、美術動畫、繪圖軟體經驗分享與交流
1/23/2011
偉大的等加速度公式在onEnterFrame
//100=D,D=物件移動之終點
mc.onEnterFrame = function(){
this._x += (100- this._x)/ 8;//等加速率
if(this._x > 99){
delete this.onEnterFrame;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment