s

부드러운 움직임 2

· 17년 전 · 1812

//관성력
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,338
17년 전 조회 1,442
17년 전 조회 1,228
17년 전 조회 1,273
17년 전 조회 1,308
17년 전 조회 1,371
17년 전 조회 1,395
17년 전 조회 1,416
17년 전 조회 1,367
17년 전 조회 1,696
17년 전 조회 3,025
17년 전 조회 3,420
17년 전 조회 1,507
17년 전 조회 1,604
17년 전 조회 1,413
17년 전 조회 2,172
17년 전 조회 3,090
17년 전 조회 1,430
17년 전 조회 1,420
17년 전 조회 1,428
17년 전 조회 1,293
17년 전 조회 1,480
17년 전 조회 1,547
17년 전 조회 1,350
17년 전 조회 2,626
17년 전 조회 1,383
17년 전 조회 1,636
17년 전 조회 1,518
17년 전 조회 1,832
17년 전 조회 1,844
17년 전 조회 1,853
17년 전 조회 1,923
17년 전 조회 1,583
17년 전 조회 1,664
17년 전 조회 1,568
17년 전 조회 1,906
17년 전 조회 1,827
17년 전 조회 1,623
17년 전 조회 1,808
17년 전 조회 1,464
17년 전 조회 1,707
17년 전 조회 2,013
17년 전 조회 2,849
17년 전 조회 2,056
17년 전 조회 1,461
17년 전 조회 2,020
17년 전 조회 2,476
17년 전 조회 1,618
17년 전 조회 2,382
17년 전 조회 1,813
17년 전 조회 1,527
17년 전 조회 1,373
17년 전 조회 2,044
17년 전 조회 2,950
17년 전 조회 2,564
17년 전 조회 1,581
17년 전 조회 2,935
17년 전 조회 2,468
17년 전 조회 2,820
17년 전 조회 2,826
17년 전 조회 2,606
17년 전 조회 2,420
17년 전 조회 1,775
17년 전 조회 2,521
17년 전 조회 4,010
17년 전 조회 1,883
17년 전 조회 3,972
17년 전 조회 1,897
17년 전 조회 1,791
17년 전 조회 2,130
17년 전 조회 2,536
17년 전 조회 1,491
17년 전 조회 1,833
17년 전 조회 2,398
17년 전 조회 1,875
17년 전 조회 1,808
17년 전 조회 1,607
17년 전 조회 1,449
17년 전 조회 1,409
17년 전 조회 1,216
17년 전 조회 1,210
17년 전 조회 1,226
17년 전 조회 1,240
17년 전 조회 1,657
17년 전 조회 1,743
17년 전 조회 1,886
17년 전 조회 3,011
17년 전 조회 2,153
17년 전 조회 1,827
17년 전 조회 2,159
17년 전 조회 1,882
17년 전 조회 3,417
17년 전 조회 1,592
17년 전 조회 1,710
17년 전 조회 1,424
17년 전 조회 2,247
17년 전 조회 3,188
17년 전 조회 2,333
17년 전 조회 1,792
17년 전 조회 3,047