I have this code in a button. I want more exaggerated easing, but more importantly, a “bounce.” What I mean by this is on rollout, the button seems kinda sticky and jiggles back and forth a little. Can anyone help me out?
code:
onClipEvent (enterFrame) {
if (_root._ymouse > 50 && _root._ymouse < 150) {
_root.yChange = Math.round(_root._ymouse-this._y);
_root.xChange = Math.round(_root._xmouse-this._x);
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
this._y += _root.yMove;
this._x += _root.xMove;
}
else {
_root.yChange = Math.round(this._y - 60);
_root.xChange = Math.round(this._x - 50);
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
this._x -= _root.xMove;
this._y -= _root.yMove;
}
}
-Deano
Who is totally clueless when it comes to AS
:thumb: