s

부드러운 움직임 2

· 17년 전 · 1805

//관성력
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,335
17년 전 조회 1,437
17년 전 조회 1,217
17년 전 조회 1,265
17년 전 조회 1,300
17년 전 조회 1,366
17년 전 조회 1,392
17년 전 조회 1,412
17년 전 조회 1,358
17년 전 조회 1,692
17년 전 조회 3,018
17년 전 조회 3,410
17년 전 조회 1,503
17년 전 조회 1,599
17년 전 조회 1,409
17년 전 조회 2,164
17년 전 조회 3,082
17년 전 조회 1,424
17년 전 조회 1,416
17년 전 조회 1,421
17년 전 조회 1,288
17년 전 조회 1,476
17년 전 조회 1,537
17년 전 조회 1,343
17년 전 조회 2,624
17년 전 조회 1,377
17년 전 조회 1,633
17년 전 조회 1,514
17년 전 조회 1,827
17년 전 조회 1,836
17년 전 조회 1,846
17년 전 조회 1,920
17년 전 조회 1,579
17년 전 조회 1,660
17년 전 조회 1,563
17년 전 조회 1,904
17년 전 조회 1,824
17년 전 조회 1,618
17년 전 조회 1,803
17년 전 조회 1,456
17년 전 조회 1,698
17년 전 조회 2,008
17년 전 조회 2,842
17년 전 조회 2,050
17년 전 조회 1,458
17년 전 조회 2,017
17년 전 조회 2,471
17년 전 조회 1,613
17년 전 조회 2,378
17년 전 조회 1,806
17년 전 조회 1,519
17년 전 조회 1,370
17년 전 조회 2,039
17년 전 조회 2,947
17년 전 조회 2,553
17년 전 조회 1,577
17년 전 조회 2,928
17년 전 조회 2,463
17년 전 조회 2,814
17년 전 조회 2,821
17년 전 조회 2,602
17년 전 조회 2,417
17년 전 조회 1,772
17년 전 조회 2,516
17년 전 조회 4,005
17년 전 조회 1,876
17년 전 조회 3,971
17년 전 조회 1,893
17년 전 조회 1,789
17년 전 조회 2,125
17년 전 조회 2,529
17년 전 조회 1,487
17년 전 조회 1,830
17년 전 조회 2,392
17년 전 조회 1,867
17년 전 조회 1,803
17년 전 조회 1,603
17년 전 조회 1,442
17년 전 조회 1,404
17년 전 조회 1,209
17년 전 조회 1,202
17년 전 조회 1,219
17년 전 조회 1,234
17년 전 조회 1,654
17년 전 조회 1,741
17년 전 조회 1,881
17년 전 조회 3,004
17년 전 조회 2,147
17년 전 조회 1,821
17년 전 조회 2,156
17년 전 조회 1,878
17년 전 조회 3,412
17년 전 조회 1,585
17년 전 조회 1,705
17년 전 조회 1,420
17년 전 조회 2,245
17년 전 조회 3,184
17년 전 조회 2,324
17년 전 조회 1,783
17년 전 조회 3,044