以下公式都可以写的更简单,写成酱紫为了看d清楚:)
磨檫力公式
var fraction:Number=0.85;
var speed:Number=10;
onEnterFrame=function(){
speed*=fraction;
mc._x+=speed;
}
弹性公式
vx = 0;
onEnterFrame = function () {
dx = _xmouse-mc._x;
vx = (vx+dx/10)*0.9;
mc._x += vx;
}
先写两个,准备吃饭,晚上继续补充``
磨檫力公式
var fraction:Number=0.85;
var speed:Number=10;
onEnterFrame=function(){
speed*=fraction;
mc._x+=speed;
}
弹性公式
vx = 0;
onEnterFrame = function () {
dx = _xmouse-mc._x;
vx = (vx+dx/10)*0.9;
mc._x += vx;
}
先写两个,准备吃饭,晚上继续补充``
回复Comments
作者:
{commentrecontent}