s

부드러운 움직임 2

· 17년 전 · 1752

//관성력
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,258
17년 전 조회 1,375
17년 전 조회 1,149
17년 전 조회 1,197
17년 전 조회 1,231
17년 전 조회 1,303
17년 전 조회 1,328
17년 전 조회 1,343
17년 전 조회 1,305
17년 전 조회 1,626
17년 전 조회 2,952
17년 전 조회 3,351
17년 전 조회 1,443
17년 전 조회 1,540
17년 전 조회 1,349
17년 전 조회 2,104
17년 전 조회 3,024
17년 전 조회 1,370
17년 전 조회 1,359
17년 전 조회 1,359
17년 전 조회 1,225
17년 전 조회 1,415
17년 전 조회 1,473
17년 전 조회 1,279
17년 전 조회 2,566
17년 전 조회 1,312
17년 전 조회 1,575
17년 전 조회 1,457
17년 전 조회 1,764
17년 전 조회 1,782
17년 전 조회 1,797
17년 전 조회 1,853
17년 전 조회 1,515
17년 전 조회 1,599
17년 전 조회 1,509
17년 전 조회 1,851
17년 전 조회 1,755
17년 전 조회 1,553
17년 전 조회 1,735
17년 전 조회 1,397
17년 전 조회 1,628
17년 전 조회 1,947
17년 전 조회 2,779
17년 전 조회 1,986
17년 전 조회 1,394
17년 전 조회 1,949
17년 전 조회 2,404
17년 전 조회 1,564
17년 전 조회 2,320
17년 전 조회 1,753
17년 전 조회 1,455
17년 전 조회 1,314
17년 전 조회 1,987
17년 전 조회 2,884
17년 전 조회 2,495
17년 전 조회 1,522
17년 전 조회 2,870
17년 전 조회 2,406
17년 전 조회 2,751
17년 전 조회 2,767
17년 전 조회 2,545
17년 전 조회 2,363
17년 전 조회 1,715
17년 전 조회 2,452
17년 전 조회 3,943
17년 전 조회 1,822
17년 전 조회 3,907
17년 전 조회 1,838
17년 전 조회 1,727
17년 전 조회 2,066
17년 전 조회 2,470
17년 전 조회 1,423
17년 전 조회 1,770
17년 전 조회 2,330
17년 전 조회 1,802
17년 전 조회 1,754
17년 전 조회 1,537
17년 전 조회 1,384
17년 전 조회 1,339
17년 전 조회 1,154
17년 전 조회 1,146
17년 전 조회 1,170
17년 전 조회 1,177
17년 전 조회 1,596
17년 전 조회 1,672
17년 전 조회 1,812
17년 전 조회 2,950
17년 전 조회 2,087
17년 전 조회 1,764
17년 전 조회 2,099
17년 전 조회 1,811
17년 전 조회 3,346
17년 전 조회 1,526
17년 전 조회 1,651
17년 전 조회 1,365
17년 전 조회 2,180
17년 전 조회 3,127
17년 전 조회 2,269
17년 전 조회 1,725
17년 전 조회 2,978
🐛 버그신고