s

부드러운 움직임 2

· 17년 전 · 1757

//관성력
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,267
17년 전 조회 1,382
17년 전 조회 1,155
17년 전 조회 1,204
17년 전 조회 1,240
17년 전 조회 1,311
17년 전 조회 1,336
17년 전 조회 1,354
17년 전 조회 1,312
17년 전 조회 1,632
17년 전 조회 2,959
17년 전 조회 3,357
17년 전 조회 1,449
17년 전 조회 1,548
17년 전 조회 1,354
17년 전 조회 2,113
17년 전 조회 3,030
17년 전 조회 1,376
17년 전 조회 1,365
17년 전 조회 1,368
17년 전 조회 1,229
17년 전 조회 1,422
17년 전 조회 1,481
17년 전 조회 1,287
17년 전 조회 2,574
17년 전 조회 1,319
17년 전 조회 1,583
17년 전 조회 1,462
17년 전 조회 1,770
17년 전 조회 1,786
17년 전 조회 1,805
17년 전 조회 1,861
17년 전 조회 1,521
17년 전 조회 1,606
17년 전 조회 1,516
17년 전 조회 1,857
17년 전 조회 1,761
17년 전 조회 1,560
17년 전 조회 1,740
17년 전 조회 1,406
17년 전 조회 1,636
17년 전 조회 1,956
17년 전 조회 2,787
17년 전 조회 1,993
17년 전 조회 1,401
17년 전 조회 1,956
17년 전 조회 2,410
17년 전 조회 1,570
17년 전 조회 2,325
17년 전 조회 1,758
17년 전 조회 1,462
17년 전 조회 1,320
17년 전 조회 1,995
17년 전 조회 2,888
17년 전 조회 2,505
17년 전 조회 1,532
17년 전 조회 2,878
17년 전 조회 2,411
17년 전 조회 2,761
17년 전 조회 2,771
17년 전 조회 2,551
17년 전 조회 2,370
17년 전 조회 1,722
17년 전 조회 2,458
17년 전 조회 3,953
17년 전 조회 1,830
17년 전 조회 3,915
17년 전 조회 1,847
17년 전 조회 1,735
17년 전 조회 2,074
17년 전 조회 2,477
17년 전 조회 1,432
17년 전 조회 1,778
17년 전 조회 2,339
17년 전 조회 1,811
17년 전 조회 1,760
17년 전 조회 1,546
17년 전 조회 1,394
17년 전 조회 1,347
17년 전 조회 1,158
17년 전 조회 1,152
17년 전 조회 1,178
17년 전 조회 1,183
17년 전 조회 1,603
17년 전 조회 1,682
17년 전 조회 1,818
17년 전 조회 2,955
17년 전 조회 2,095
17년 전 조회 1,770
17년 전 조회 2,108
17년 전 조회 1,819
17년 전 조회 3,355
17년 전 조회 1,534
17년 전 조회 1,660
17년 전 조회 1,374
17년 전 조회 2,189
17년 전 조회 3,134
17년 전 조회 2,278
17년 전 조회 1,733
17년 전 조회 2,985
🐛 버그신고