s

부드러운 움직임 2

· 17년 전 · 1760

//관성력
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,270
17년 전 조회 1,385
17년 전 조회 1,160
17년 전 조회 1,205
17년 전 조회 1,245
17년 전 조회 1,317
17년 전 조회 1,337
17년 전 조회 1,356
17년 전 조회 1,313
17년 전 조회 1,636
17년 전 조회 2,966
17년 전 조회 3,363
17년 전 조회 1,453
17년 전 조회 1,550
17년 전 조회 1,359
17년 전 조회 2,117
17년 전 조회 3,033
17년 전 조회 1,380
17년 전 조회 1,370
17년 전 조회 1,371
17년 전 조회 1,231
17년 전 조회 1,425
17년 전 조회 1,484
17년 전 조회 1,291
17년 전 조회 2,579
17년 전 조회 1,322
17년 전 조회 1,586
17년 전 조회 1,467
17년 전 조회 1,775
17년 전 조회 1,790
17년 전 조회 1,810
17년 전 조회 1,865
17년 전 조회 1,524
17년 전 조회 1,609
17년 전 조회 1,519
17년 전 조회 1,858
17년 전 조회 1,765
17년 전 조회 1,563
17년 전 조회 1,743
17년 전 조회 1,408
17년 전 조회 1,640
17년 전 조회 1,959
17년 전 조회 2,792
17년 전 조회 1,998
17년 전 조회 1,406
17년 전 조회 1,960
17년 전 조회 2,416
17년 전 조회 1,575
17년 전 조회 2,328
17년 전 조회 1,761
17년 전 조회 1,465
17년 전 조회 1,323
17년 전 조회 1,998
17년 전 조회 2,892
17년 전 조회 2,509
17년 전 조회 1,533
17년 전 조회 2,881
17년 전 조회 2,416
17년 전 조회 2,762
17년 전 조회 2,777
17년 전 조회 2,554
17년 전 조회 2,373
17년 전 조회 1,725
17년 전 조회 2,465
17년 전 조회 3,957
17년 전 조회 1,830
17년 전 조회 3,917
17년 전 조회 1,850
17년 전 조회 1,740
17년 전 조회 2,077
17년 전 조회 2,478
17년 전 조회 1,435
17년 전 조회 1,781
17년 전 조회 2,342
17년 전 조회 1,815
17년 전 조회 1,761
17년 전 조회 1,548
17년 전 조회 1,394
17년 전 조회 1,349
17년 전 조회 1,160
17년 전 조회 1,155
17년 전 조회 1,180
17년 전 조회 1,186
17년 전 조회 1,608
17년 전 조회 1,683
17년 전 조회 1,824
17년 전 조회 2,957
17년 전 조회 2,101
17년 전 조회 1,773
17년 전 조회 2,108
17년 전 조회 1,823
17년 전 조회 3,359
17년 전 조회 1,537
17년 전 조회 1,663
17년 전 조회 1,377
17년 전 조회 2,192
17년 전 조회 3,137
17년 전 조회 2,279
17년 전 조회 1,736
17년 전 조회 2,989
🐛 버그신고