s

부드러운 움직임 2

· 17년 전 · 1761

//관성력
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,274
17년 전 조회 1,387
17년 전 조회 1,161
17년 전 조회 1,210
17년 전 조회 1,248
17년 전 조회 1,318
17년 전 조회 1,340
17년 전 조회 1,361
17년 전 조회 1,317
17년 전 조회 1,640
17년 전 조회 2,967
17년 전 조회 3,364
17년 전 조회 1,454
17년 전 조회 1,551
17년 전 조회 1,362
17년 전 조회 2,118
17년 전 조회 3,034
17년 전 조회 1,381
17년 전 조회 1,373
17년 전 조회 1,373
17년 전 조회 1,233
17년 전 조회 1,425
17년 전 조회 1,487
17년 전 조회 1,296
17년 전 조회 2,580
17년 전 조회 1,326
17년 전 조회 1,591
17년 전 조회 1,467
17년 전 조회 1,775
17년 전 조회 1,791
17년 전 조회 1,814
17년 전 조회 1,867
17년 전 조회 1,528
17년 전 조회 1,611
17년 전 조회 1,522
17년 전 조회 1,860
17년 전 조회 1,768
17년 전 조회 1,564
17년 전 조회 1,747
17년 전 조회 1,409
17년 전 조회 1,643
17년 전 조회 1,960
17년 전 조회 2,794
17년 전 조회 2,001
17년 전 조회 1,407
17년 전 조회 1,962
17년 전 조회 2,419
17년 전 조회 1,579
17년 전 조회 2,333
17년 전 조회 1,762
17년 전 조회 1,468
17년 전 조회 1,324
17년 전 조회 2,001
17년 전 조회 2,894
17년 전 조회 2,511
17년 전 조회 1,533
17년 전 조회 2,881
17년 전 조회 2,418
17년 전 조회 2,765
17년 전 조회 2,780
17년 전 조회 2,556
17년 전 조회 2,374
17년 전 조회 1,726
17년 전 조회 2,467
17년 전 조회 3,960
17년 전 조회 1,836
17년 전 조회 3,921
17년 전 조회 1,851
17년 전 조회 1,742
17년 전 조회 2,080
17년 전 조회 2,478
17년 전 조회 1,437
17년 전 조회 1,783
17년 전 조회 2,345
17년 전 조회 1,817
17년 전 조회 1,763
17년 전 조회 1,548
17년 전 조회 1,398
17년 전 조회 1,351
17년 전 조회 1,161
17년 전 조회 1,157
17년 전 조회 1,182
17년 전 조회 1,186
17년 전 조회 1,609
17년 전 조회 1,686
17년 전 조회 1,826
17년 전 조회 2,958
17년 전 조회 2,102
17년 전 조회 1,773
17년 전 조회 2,110
17년 전 조회 1,825
17년 전 조회 3,360
17년 전 조회 1,539
17년 전 조회 1,665
17년 전 조회 1,380
17년 전 조회 2,192
17년 전 조회 3,138
17년 전 조회 2,279
17년 전 조회 1,738
17년 전 조회 2,990
🐛 버그신고