s

부드러운 움직임 2

· 17년 전 · 1950

//관성력
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,463
17년 전 조회 1,551
17년 전 조회 1,344
17년 전 조회 1,380
17년 전 조회 1,426
17년 전 조회 1,495
17년 전 조회 1,504
17년 전 조회 1,538
17년 전 조회 1,496
17년 전 조회 1,823
17년 전 조회 3,143
17년 전 조회 3,551
17년 전 조회 1,637
17년 전 조회 1,732
17년 전 조회 1,535
17년 전 조회 2,306
17년 전 조회 3,227
17년 전 조회 1,564
17년 전 조회 1,523
17년 전 조회 1,560
17년 전 조회 1,429
17년 전 조회 1,625
17년 전 조회 1,672
17년 전 조회 1,485
17년 전 조회 2,757
17년 전 조회 1,513
17년 전 조회 1,762
17년 전 조회 1,653
17년 전 조회 1,966
17년 전 조회 1,974
17년 전 조회 1,984
17년 전 조회 2,047
17년 전 조회 1,711
17년 전 조회 1,772
17년 전 조회 1,702
17년 전 조회 2,041
17년 전 조회 1,955
17년 전 조회 1,739
17년 전 조회 1,936
17년 전 조회 1,586
17년 전 조회 1,823
17년 전 조회 2,148
17년 전 조회 2,977
17년 전 조회 2,197
17년 전 조회 1,579
17년 전 조회 2,157
17년 전 조회 2,596
17년 전 조회 1,747
17년 전 조회 2,497
17년 전 조회 1,951
17년 전 조회 1,651
17년 전 조회 1,489
17년 전 조회 2,167
17년 전 조회 3,094
17년 전 조회 2,696
17년 전 조회 1,709
17년 전 조회 3,098
17년 전 조회 2,610
17년 전 조회 2,946
17년 전 조회 2,966
17년 전 조회 2,747
17년 전 조회 2,561
17년 전 조회 1,920
17년 전 조회 2,654
17년 전 조회 4,173
17년 전 조회 2,015
17년 전 조회 4,099
17년 전 조회 2,021
17년 전 조회 1,923
17년 전 조회 2,272
17년 전 조회 2,693
17년 전 조회 1,628
17년 전 조회 1,979
17년 전 조회 2,536
17년 전 조회 2,028
17년 전 조회 1,966
17년 전 조회 1,755
17년 전 조회 1,583
17년 전 조회 1,554
17년 전 조회 1,360
17년 전 조회 1,359
17년 전 조회 1,379
17년 전 조회 1,386
17년 전 조회 1,777
17년 전 조회 1,891
17년 전 조회 2,026
17년 전 조회 3,152
17년 전 조회 2,304
17년 전 조회 1,960
17년 전 조회 2,304
17년 전 조회 2,033
17년 전 조회 3,558
17년 전 조회 1,731
17년 전 조회 1,853
17년 전 조회 1,551
17년 전 조회 2,392
17년 전 조회 3,328
18년 전 조회 2,467
18년 전 조회 1,919
18년 전 조회 3,180