s

부드러운 움직임 2

· 17년 전 · 1781

//관성력
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,302
17년 전 조회 1,409
17년 전 조회 1,188
17년 전 조회 1,232
17년 전 조회 1,272
17년 전 조회 1,338
17년 전 조회 1,357
17년 전 조회 1,382
17년 전 조회 1,339
17년 전 조회 1,665
17년 전 조회 2,985
17년 전 조회 3,385
17년 전 조회 1,475
17년 전 조회 1,574
17년 전 조회 1,384
17년 전 조회 2,136
17년 전 조회 3,057
17년 전 조회 1,401
17년 전 조회 1,394
17년 전 조회 1,391
17년 전 조회 1,258
17년 전 조회 1,447
17년 전 조회 1,502
17년 전 조회 1,321
17년 전 조회 2,594
17년 전 조회 1,349
17년 전 조회 1,609
17년 전 조회 1,489
17년 전 조회 1,797
17년 전 조회 1,809
17년 전 조회 1,827
17년 전 조회 1,888
17년 전 조회 1,552
17년 전 조회 1,632
17년 전 조회 1,536
17년 전 조회 1,882
17년 전 조회 1,790
17년 전 조회 1,590
17년 전 조회 1,774
17년 전 조회 1,428
17년 전 조회 1,667
17년 전 조회 1,980
17년 전 조회 2,814
17년 전 조회 2,024
17년 전 조회 1,431
17년 전 조회 1,982
17년 전 조회 2,440
17년 전 조회 1,594
17년 전 조회 2,355
17년 전 조회 1,782
17년 전 조회 1,492
17년 전 조회 1,346
17년 전 조회 2,015
17년 전 조회 2,915
17년 전 조회 2,535
17년 전 조회 1,548
17년 전 조회 2,902
17년 전 조회 2,434
17년 전 조회 2,786
17년 전 조회 2,799
17년 전 조회 2,573
17년 전 조회 2,390
17년 전 조회 1,745
17년 전 조회 2,483
17년 전 조회 3,977
17년 전 조회 1,848
17년 전 조회 3,945
17년 전 조회 1,867
17년 전 조회 1,763
17년 전 조회 2,099
17년 전 조회 2,499
17년 전 조회 1,462
17년 전 조회 1,799
17년 전 조회 2,364
17년 전 조회 1,841
17년 전 조회 1,778
17년 전 조회 1,568
17년 전 조회 1,414
17년 전 조회 1,370
17년 전 조회 1,180
17년 전 조회 1,175
17년 전 조회 1,197
17년 전 조회 1,208
17년 전 조회 1,624
17년 전 조회 1,703
17년 전 조회 1,845
17년 전 조회 2,978
17년 전 조회 2,123
17년 전 조회 1,793
17년 전 조회 2,130
17년 전 조회 1,845
17년 전 조회 3,376
17년 전 조회 1,558
17년 전 조회 1,679
17년 전 조회 1,398
17년 전 조회 2,211
17년 전 조회 3,153
17년 전 조회 2,296
17년 전 조회 1,754
17년 전 조회 3,012