s

부드러운 움직임 2

· 17년 전 · 1753

//관성력
MovieClip.prototype.inertiaMove = function(widthX,heightY,g,fric){
        if(this._x + this.speedX > widthX - this._width/2){
                this.speedX = -1*this.speedX;
                this._x = widthX - this._width/2;
        }else if(this._x + speedX <0 + this._width/2){
                this.speedX = -1*this.speedX;
                this._x = 0 + this._width/2;
        }else{
                this._x += this.speedX ;
        }
        if(this._y + this.speedY > heightY - this._height/2){
                this.speedY = -1*this.speedY;
                this._y = heightY - this._height/2;
        }else if(this._y + this.speedY <0 + this._height/2){
                this.speedY = -1*this.speedY;
                this._y = 0 + this._height/2;
        }else{
                this._y += this.speedY;
        }
       
        this.speedY = this.speedY + g;
        this.speedX = fric*this.speedX;
        this.speedY = fric*this.speedY;
};

//포물선운동
MovieClip.prototype.parabolaMove = function(){
        this.vy = this.vy + this.g;
        this._x = this._x + this.vx;
        this._y = this._y + this.vy;
};

[이 게시물은 관리자님에 의해 2011-10-31 16:50:06 Flash에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다. 로그인

프로그램

+
제목 글쓴이 날짜 조회
17년 전 조회 1,260
17년 전 조회 1,377
17년 전 조회 1,152
17년 전 조회 1,201
17년 전 조회 1,236
17년 전 조회 1,306
17년 전 조회 1,331
17년 전 조회 1,347
17년 전 조회 1,308
17년 전 조회 1,628
17년 전 조회 2,955
17년 전 조회 3,353
17년 전 조회 1,445
17년 전 조회 1,542
17년 전 조회 1,352
17년 전 조회 2,110
17년 전 조회 3,027
17년 전 조회 1,371
17년 전 조회 1,360
17년 전 조회 1,361
17년 전 조회 1,226
17년 전 조회 1,417
17년 전 조회 1,474
17년 전 조회 1,283
17년 전 조회 2,568
17년 전 조회 1,314
17년 전 조회 1,577
17년 전 조회 1,458
17년 전 조회 1,767
17년 전 조회 1,783
17년 전 조회 1,802
17년 전 조회 1,856
17년 전 조회 1,515
17년 전 조회 1,601
17년 전 조회 1,511
17년 전 조회 1,854
17년 전 조회 1,757
17년 전 조회 1,554
17년 전 조회 1,736
17년 전 조회 1,402
17년 전 조회 1,630
17년 전 조회 1,949
17년 전 조회 2,782
17년 전 조회 1,987
17년 전 조회 1,396
17년 전 조회 1,951
17년 전 조회 2,407
17년 전 조회 1,567
17년 전 조회 2,323
17년 전 조회 1,754
17년 전 조회 1,456
17년 전 조회 1,317
17년 전 조회 1,990
17년 전 조회 2,885
17년 전 조회 2,498
17년 전 조회 1,524
17년 전 조회 2,873
17년 전 조회 2,407
17년 전 조회 2,754
17년 전 조회 2,768
17년 전 조회 2,547
17년 전 조회 2,367
17년 전 조회 1,717
17년 전 조회 2,454
17년 전 조회 3,947
17년 전 조회 1,824
17년 전 조회 3,909
17년 전 조회 1,840
17년 전 조회 1,728
17년 전 조회 2,068
17년 전 조회 2,473
17년 전 조회 1,426
17년 전 조회 1,772
17년 전 조회 2,334
17년 전 조회 1,803
17년 전 조회 1,756
17년 전 조회 1,540
17년 전 조회 1,389
17년 전 조회 1,342
17년 전 조회 1,156
17년 전 조회 1,148
17년 전 조회 1,173
17년 전 조회 1,179
17년 전 조회 1,599
17년 전 조회 1,675
17년 전 조회 1,816
17년 전 조회 2,951
17년 전 조회 2,090
17년 전 조회 1,765
17년 전 조회 2,101
17년 전 조회 1,813
17년 전 조회 3,349
17년 전 조회 1,528
17년 전 조회 1,655
17년 전 조회 1,368
17년 전 조회 2,184
17년 전 조회 3,130
17년 전 조회 2,271
17년 전 조회 1,729
17년 전 조회 2,982
🐛 버그신고