s

부드러운 움직임 2

· 17년 전 · 1751

//관성력
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,374
17년 전 조회 1,148
17년 전 조회 1,195
17년 전 조회 1,231
17년 전 조회 1,303
17년 전 조회 1,327
17년 전 조회 1,342
17년 전 조회 1,305
17년 전 조회 1,624
17년 전 조회 2,951
17년 전 조회 3,350
17년 전 조회 1,443
17년 전 조회 1,539
17년 전 조회 1,349
17년 전 조회 2,104
17년 전 조회 3,023
17년 전 조회 1,370
17년 전 조회 1,358
17년 전 조회 1,359
17년 전 조회 1,224
17년 전 조회 1,415
17년 전 조회 1,472
17년 전 조회 1,279
17년 전 조회 2,565
17년 전 조회 1,312
17년 전 조회 1,575
17년 전 조회 1,456
17년 전 조회 1,762
17년 전 조회 1,781
17년 전 조회 1,797
17년 전 조회 1,852
17년 전 조회 1,514
17년 전 조회 1,596
17년 전 조회 1,509
17년 전 조회 1,849
17년 전 조회 1,754
17년 전 조회 1,551
17년 전 조회 1,734
17년 전 조회 1,397
17년 전 조회 1,627
17년 전 조회 1,946
17년 전 조회 2,779
17년 전 조회 1,985
17년 전 조회 1,391
17년 전 조회 1,948
17년 전 조회 2,403
17년 전 조회 1,563
17년 전 조회 2,319
17년 전 조회 1,752
17년 전 조회 1,455
17년 전 조회 1,311
17년 전 조회 1,987
17년 전 조회 2,882
17년 전 조회 2,495
17년 전 조회 1,520
17년 전 조회 2,867
17년 전 조회 2,404
17년 전 조회 2,750
17년 전 조회 2,766
17년 전 조회 2,543
17년 전 조회 2,362
17년 전 조회 1,714
17년 전 조회 2,451
17년 전 조회 3,942
17년 전 조회 1,821
17년 전 조회 3,906
17년 전 조회 1,837
17년 전 조회 1,726
17년 전 조회 2,064
17년 전 조회 2,469
17년 전 조회 1,422
17년 전 조회 1,769
17년 전 조회 2,329
17년 전 조회 1,801
17년 전 조회 1,754
17년 전 조회 1,537
17년 전 조회 1,384
17년 전 조회 1,339
17년 전 조회 1,153
17년 전 조회 1,145
17년 전 조회 1,170
17년 전 조회 1,176
17년 전 조회 1,595
17년 전 조회 1,671
17년 전 조회 1,811
17년 전 조회 2,949
17년 전 조회 2,086
17년 전 조회 1,762
17년 전 조회 2,099
17년 전 조회 1,810
17년 전 조회 3,346
17년 전 조회 1,524
17년 전 조회 1,650
17년 전 조회 1,364
17년 전 조회 2,180
17년 전 조회 3,127
17년 전 조회 2,267
17년 전 조회 1,725
17년 전 조회 2,977
🐛 버그신고