s

부드러운 움직임 2

· 17년 전 · 1750

//관성력
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,257
17년 전 조회 1,372
17년 전 조회 1,147
17년 전 조회 1,195
17년 전 조회 1,230
17년 전 조회 1,302
17년 전 조회 1,326
17년 전 조회 1,342
17년 전 조회 1,304
17년 전 조회 1,624
17년 전 조회 2,950
17년 전 조회 3,348
17년 전 조회 1,440
17년 전 조회 1,535
17년 전 조회 1,347
17년 전 조회 2,103
17년 전 조회 3,022
17년 전 조회 1,367
17년 전 조회 1,356
17년 전 조회 1,357
17년 전 조회 1,223
17년 전 조회 1,413
17년 전 조회 1,471
17년 전 조회 1,277
17년 전 조회 2,564
17년 전 조회 1,310
17년 전 조회 1,574
17년 전 조회 1,455
17년 전 조회 1,760
17년 전 조회 1,780
17년 전 조회 1,797
17년 전 조회 1,849
17년 전 조회 1,511
17년 전 조회 1,596
17년 전 조회 1,508
17년 전 조회 1,849
17년 전 조회 1,753
17년 전 조회 1,548
17년 전 조회 1,733
17년 전 조회 1,395
17년 전 조회 1,626
17년 전 조회 1,946
17년 전 조회 2,777
17년 전 조회 1,985
17년 전 조회 1,389
17년 전 조회 1,948
17년 전 조회 2,403
17년 전 조회 1,561
17년 전 조회 2,317
17년 전 조회 1,751
17년 전 조회 1,453
17년 전 조회 1,309
17년 전 조회 1,985
17년 전 조회 2,881
17년 전 조회 2,494
17년 전 조회 1,520
17년 전 조회 2,867
17년 전 조회 2,403
17년 전 조회 2,749
17년 전 조회 2,764
17년 전 조회 2,542
17년 전 조회 2,360
17년 전 조회 1,712
17년 전 조회 2,449
17년 전 조회 3,941
17년 전 조회 1,819
17년 전 조회 3,905
17년 전 조회 1,835
17년 전 조회 1,725
17년 전 조회 2,063
17년 전 조회 2,467
17년 전 조회 1,420
17년 전 조회 1,767
17년 전 조회 2,328
17년 전 조회 1,799
17년 전 조회 1,752
17년 전 조회 1,536
17년 전 조회 1,382
17년 전 조회 1,337
17년 전 조회 1,151
17년 전 조회 1,143
17년 전 조회 1,168
17년 전 조회 1,174
17년 전 조회 1,593
17년 전 조회 1,671
17년 전 조회 1,811
17년 전 조회 2,947
17년 전 조회 2,084
17년 전 조회 1,761
17년 전 조회 2,097
17년 전 조회 1,808
17년 전 조회 3,344
17년 전 조회 1,523
17년 전 조회 1,648
17년 전 조회 1,364
17년 전 조회 2,178
17년 전 조회 3,125
17년 전 조회 2,266
17년 전 조회 1,723
17년 전 조회 2,975
🐛 버그신고