s

부드러운 움직임 2

· 17년 전 · 1834

//관성력
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에서 이동 됨]
|
댓글을 작성하시려면 로그인이 필요합니다.

프로그램

태그 필터 (최대 3개) 전체 개발자 소스 기타 mysql 팁자료실 javascript php linux flash 정규표현식 jquery node.js mobile 웹서버 os 프로그램 강좌 썸네일 이미지관련 도로명주소 그누보드5 기획자 견적서 계약서 기획서 마케팅 제안서 seo 통계 서식 통계자료 퍼블리셔 html css 반응형 웹접근성 퍼블리싱 표준화 반응형웹 홈페이지기초 부트스트랩 angularjs 포럼 스크린리더 센스리더 개발자톡 개발자팁 퍼블리셔톡 퍼블리셔팁 기획자톡 기획자팁 프로그램강좌 퍼블리싱강좌
+
제목 글쓴이 날짜 조회
17년 전 조회 1,358
17년 전 조회 1,456
17년 전 조회 1,242
17년 전 조회 1,289
17년 전 조회 1,327
17년 전 조회 1,393
17년 전 조회 1,411
17년 전 조회 1,436
17년 전 조회 1,379
17년 전 조회 1,718
17년 전 조회 3,037
17년 전 조회 3,438
17년 전 조회 1,531
17년 전 조회 1,618
17년 전 조회 1,431
17년 전 조회 2,196
17년 전 조회 3,110
17년 전 조회 1,449
17년 전 조회 1,434
17년 전 조회 1,444
17년 전 조회 1,315
17년 전 조회 1,504
17년 전 조회 1,566
17년 전 조회 1,371
17년 전 조회 2,643
17년 전 조회 1,400
17년 전 조회 1,661
17년 전 조회 1,545
17년 전 조회 1,852
17년 전 조회 1,864
17년 전 조회 1,871
17년 전 조회 1,937
17년 전 조회 1,601
17년 전 조회 1,676
17년 전 조회 1,585
17년 전 조회 1,930
17년 전 조회 1,846
17년 전 조회 1,634
17년 전 조회 1,828
17년 전 조회 1,485
17년 전 조회 1,717
17년 전 조회 2,026
17년 전 조회 2,867
17년 전 조회 2,080
17년 전 조회 1,478
17년 전 조회 2,045
17년 전 조회 2,487
17년 전 조회 1,633
17년 전 조회 2,397
17년 전 조회 1,835
17년 전 조회 1,548
17년 전 조회 1,385
17년 전 조회 2,058
17년 전 조회 2,966
17년 전 조회 2,578
17년 전 조회 1,594
17년 전 조회 2,958
17년 전 조회 2,487
17년 전 조회 2,839
17년 전 조회 2,846
17년 전 조회 2,624
17년 전 조회 2,433
17년 전 조회 1,799
17년 전 조회 2,536
17년 전 조회 4,032
17년 전 조회 1,904
17년 전 조회 3,988
17년 전 조회 1,915
17년 전 조회 1,800
17년 전 조회 2,144
17년 전 조회 2,554
17년 전 조회 1,506
17년 전 조회 1,846
17년 전 조회 2,416
17년 전 조회 1,894
17년 전 조회 1,831
17년 전 조회 1,635
17년 전 조회 1,471
17년 전 조회 1,430
17년 전 조회 1,244
17년 전 조회 1,228
17년 전 조회 1,247
17년 전 조회 1,255
17년 전 조회 1,666
17년 전 조회 1,759
17년 전 조회 1,896
17년 전 조회 3,028
17년 전 조회 2,169
17년 전 조회 1,839
17년 전 조회 2,182
17년 전 조회 1,900
17년 전 조회 3,437
17년 전 조회 1,613
17년 전 조회 1,718
17년 전 조회 1,433
17년 전 조회 2,267
17년 전 조회 3,203
17년 전 조회 2,351
17년 전 조회 1,807
17년 전 조회 3,060