s

부드러운 움직임 2

· 17년 전 · 1987

//관성력
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,489
17년 전 조회 1,584
17년 전 조회 1,370
17년 전 조회 1,417
17년 전 조회 1,453
17년 전 조회 1,525
17년 전 조회 1,530
17년 전 조회 1,575
17년 전 조회 1,525
17년 전 조회 1,858
17년 전 조회 3,175
17년 전 조회 3,577
17년 전 조회 1,671
17년 전 조회 1,764
17년 전 조회 1,559
17년 전 조회 2,331
17년 전 조회 3,259
17년 전 조회 1,595
17년 전 조회 1,556
17년 전 조회 1,588
17년 전 조회 1,459
17년 전 조회 1,650
17년 전 조회 1,706
17년 전 조회 1,513
17년 전 조회 2,780
17년 전 조회 1,539
17년 전 조회 1,787
17년 전 조회 1,690
17년 전 조회 1,994
17년 전 조회 2,004
17년 전 조회 2,008
17년 전 조회 2,071
17년 전 조회 1,742
17년 전 조회 1,794
17년 전 조회 1,729
17년 전 조회 2,067
17년 전 조회 1,989
17년 전 조회 1,767
17년 전 조회 1,962
17년 전 조회 1,613
17년 전 조회 1,843
17년 전 조회 2,178
17년 전 조회 3,007
17년 전 조회 2,228
17년 전 조회 1,603
17년 전 조회 2,189
17년 전 조회 2,623
17년 전 조회 1,774
17년 전 조회 2,522
17년 전 조회 1,988
17년 전 조회 1,686
17년 전 조회 1,512
17년 전 조회 2,192
17년 전 조회 3,127
17년 전 조회 2,729
17년 전 조회 1,732
17년 전 조회 3,129
17년 전 조회 2,637
17년 전 조회 2,979
17년 전 조회 2,997
17년 전 조회 2,776
17년 전 조회 2,590
17년 전 조회 1,949
17년 전 조회 2,676
17년 전 조회 4,210
17년 전 조회 2,046
17년 전 조회 4,127
17년 전 조회 2,050
17년 전 조회 1,944
17년 전 조회 2,302
17년 전 조회 2,724
17년 전 조회 1,653
17년 전 조회 2,007
17년 전 조회 2,565
17년 전 조회 2,057
17년 전 조회 1,993
17년 전 조회 1,788
17년 전 조회 1,613
17년 전 조회 1,594
17년 전 조회 1,397
17년 전 조회 1,383
17년 전 조회 1,405
17년 전 조회 1,415
17년 전 조회 1,800
17년 전 조회 1,919
17년 전 조회 2,050
18년 전 조회 3,179
18년 전 조회 2,333
18년 전 조회 1,984
18년 전 조회 2,333
18년 전 조회 2,061
18년 전 조회 3,589
18년 전 조회 1,758
18년 전 조회 1,876
18년 전 조회 1,576
18년 전 조회 2,429
18년 전 조회 3,355
18년 전 조회 2,501
18년 전 조회 1,941
18년 전 조회 3,203