Well i was folloing around with LostInBetea’s easing mouse code and this is what i have came up with.
onClipEvent (load) {
_x = 0;
speed = 3;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.SPACE)) {
endX = _root._xmouse;
_x += (endX-_x)/speed;
}
}
Guess what it does.
If you dont kno see it in action.