s

부드러운 움직임 2

· 17년 전 · 2004

//관성력
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,499
17년 전 조회 1,591
17년 전 조회 1,378
17년 전 조회 1,427
17년 전 조회 1,459
17년 전 조회 1,532
17년 전 조회 1,541
17년 전 조회 1,583
17년 전 조회 1,535
17년 전 조회 1,867
17년 전 조회 3,183
17년 전 조회 3,590
17년 전 조회 1,682
17년 전 조회 1,775
17년 전 조회 1,568
17년 전 조회 2,338
17년 전 조회 3,269
17년 전 조회 1,606
17년 전 조회 1,565
17년 전 조회 1,597
17년 전 조회 1,466
17년 전 조회 1,662
17년 전 조회 1,711
17년 전 조회 1,524
17년 전 조회 2,790
17년 전 조회 1,547
17년 전 조회 1,795
17년 전 조회 1,699
17년 전 조회 2,007
17년 전 조회 2,015
17년 전 조회 2,014
17년 전 조회 2,083
17년 전 조회 1,752
17년 전 조회 1,804
17년 전 조회 1,741
17년 전 조회 2,079
17년 전 조회 2,001
17년 전 조회 1,780
17년 전 조회 1,978
17년 전 조회 1,625
17년 전 조회 1,861
17년 전 조회 2,189
17년 전 조회 3,017
17년 전 조회 2,238
17년 전 조회 1,613
17년 전 조회 2,199
17년 전 조회 2,640
17년 전 조회 1,789
17년 전 조회 2,525
17년 전 조회 2,005
17년 전 조회 1,701
17년 전 조회 1,523
17년 전 조회 2,201
17년 전 조회 3,138
17년 전 조회 2,742
17년 전 조회 1,741
17년 전 조회 3,136
17년 전 조회 2,650
17년 전 조회 2,990
17년 전 조회 3,007
17년 전 조회 2,786
17년 전 조회 2,600
17년 전 조회 1,961
17년 전 조회 2,686
17년 전 조회 4,218
17년 전 조회 2,054
17년 전 조회 4,143
17년 전 조회 2,062
17년 전 조회 1,955
17년 전 조회 2,314
17년 전 조회 2,732
17년 전 조회 1,663
17년 전 조회 2,017
17년 전 조회 2,576
17년 전 조회 2,068
17년 전 조회 2,012
17년 전 조회 1,800
17년 전 조회 1,625
17년 전 조회 1,608
17년 전 조회 1,405
17년 전 조회 1,398
17년 전 조회 1,417
17년 전 조회 1,425
17년 전 조회 1,810
17년 전 조회 1,928
18년 전 조회 2,063
18년 전 조회 3,193
18년 전 조회 2,344
18년 전 조회 2,000
18년 전 조회 2,348
18년 전 조회 2,074
18년 전 조회 3,602
18년 전 조회 1,766
18년 전 조회 1,884
18년 전 조회 1,586
18년 전 조회 2,440
18년 전 조회 3,369
18년 전 조회 2,510
18년 전 조회 1,952
18년 전 조회 3,218