s

부드러운 움직임 2

· 17년 전 · 1981

//관성력
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,488
17년 전 조회 1,580
17년 전 조회 1,367
17년 전 조회 1,413
17년 전 조회 1,450
17년 전 조회 1,520
17년 전 조회 1,526
17년 전 조회 1,572
17년 전 조회 1,521
17년 전 조회 1,854
17년 전 조회 3,173
17년 전 조회 3,570
17년 전 조회 1,670
17년 전 조회 1,760
17년 전 조회 1,556
17년 전 조회 2,331
17년 전 조회 3,259
17년 전 조회 1,591
17년 전 조회 1,552
17년 전 조회 1,584
17년 전 조회 1,455
17년 전 조회 1,649
17년 전 조회 1,704
17년 전 조회 1,508
17년 전 조회 2,776
17년 전 조회 1,537
17년 전 조회 1,785
17년 전 조회 1,689
17년 전 조회 1,988
17년 전 조회 2,001
17년 전 조회 2,005
17년 전 조회 2,071
17년 전 조회 1,737
17년 전 조회 1,792
17년 전 조회 1,725
17년 전 조회 2,062
17년 전 조회 1,984
17년 전 조회 1,764
17년 전 조회 1,958
17년 전 조회 1,610
17년 전 조회 1,841
17년 전 조회 2,177
17년 전 조회 3,004
17년 전 조회 2,228
17년 전 조회 1,598
17년 전 조회 2,186
17년 전 조회 2,621
17년 전 조회 1,769
17년 전 조회 2,519
17년 전 조회 1,982
17년 전 조회 1,686
17년 전 조회 1,509
17년 전 조회 2,191
17년 전 조회 3,125
17년 전 조회 2,723
17년 전 조회 1,730
17년 전 조회 3,126
17년 전 조회 2,633
17년 전 조회 2,972
17년 전 조회 2,992
17년 전 조회 2,772
17년 전 조회 2,587
17년 전 조회 1,946
17년 전 조회 2,674
17년 전 조회 4,206
17년 전 조회 2,044
17년 전 조회 4,127
17년 전 조회 2,046
17년 전 조회 1,943
17년 전 조회 2,298
17년 전 조회 2,721
17년 전 조회 1,653
17년 전 조회 2,003
17년 전 조회 2,562
17년 전 조회 2,054
17년 전 조회 1,990
17년 전 조회 1,783
17년 전 조회 1,610
17년 전 조회 1,589
17년 전 조회 1,395
17년 전 조회 1,378
17년 전 조회 1,404
17년 전 조회 1,413
17년 전 조회 1,799
17년 전 조회 1,918
17년 전 조회 2,048
17년 전 조회 3,175
17년 전 조회 2,328
17년 전 조회 1,981
18년 전 조회 2,329
18년 전 조회 2,058
18년 전 조회 3,584
18년 전 조회 1,756
18년 전 조회 1,875
18년 전 조회 1,573
18년 전 조회 2,424
18년 전 조회 3,353
18년 전 조회 2,496
18년 전 조회 1,938
18년 전 조회 3,201