s

부드러운 움직임 2

· 17년 전 · 1749

//관성력
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,255
17년 전 조회 1,372
17년 전 조회 1,146
17년 전 조회 1,194
17년 전 조회 1,228
17년 전 조회 1,300
17년 전 조회 1,326
17년 전 조회 1,341
17년 전 조회 1,303
17년 전 조회 1,623
17년 전 조회 2,949
17년 전 조회 3,348
17년 전 조회 1,437
17년 전 조회 1,535
17년 전 조회 1,345
17년 전 조회 2,103
17년 전 조회 3,020
17년 전 조회 1,367
17년 전 조회 1,356
17년 전 조회 1,356
17년 전 조회 1,222
17년 전 조회 1,411
17년 전 조회 1,471
17년 전 조회 1,277
17년 전 조회 2,563
17년 전 조회 1,309
17년 전 조회 1,573
17년 전 조회 1,453
17년 전 조회 1,759
17년 전 조회 1,778
17년 전 조회 1,797
17년 전 조회 1,849
17년 전 조회 1,511
17년 전 조회 1,595
17년 전 조회 1,508
17년 전 조회 1,848
17년 전 조회 1,752
17년 전 조회 1,548
17년 전 조회 1,732
17년 전 조회 1,395
17년 전 조회 1,625
17년 전 조회 1,945
17년 전 조회 2,777
17년 전 조회 1,983
17년 전 조회 1,389
17년 전 조회 1,947
17년 전 조회 2,402
17년 전 조회 1,561
17년 전 조회 2,317
17년 전 조회 1,750
17년 전 조회 1,452
17년 전 조회 1,309
17년 전 조회 1,984
17년 전 조회 2,881
17년 전 조회 2,494
17년 전 조회 1,520
17년 전 조회 2,866
17년 전 조회 2,402
17년 전 조회 2,748
17년 전 조회 2,763
17년 전 조회 2,540
17년 전 조회 2,359
17년 전 조회 1,710
17년 전 조회 2,448
17년 전 조회 3,939
17년 전 조회 1,818
17년 전 조회 3,902
17년 전 조회 1,833
17년 전 조회 1,723
17년 전 조회 2,063
17년 전 조회 2,467
17년 전 조회 1,420
17년 전 조회 1,767
17년 전 조회 2,327
17년 전 조회 1,799
17년 전 조회 1,752
17년 전 조회 1,536
17년 전 조회 1,382
17년 전 조회 1,337
17년 전 조회 1,151
17년 전 조회 1,143
17년 전 조회 1,167
17년 전 조회 1,173
17년 전 조회 1,593
17년 전 조회 1,670
17년 전 조회 1,810
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,973
🐛 버그신고