Experiment Succeded(LostinBeta)

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.

Hey BullDog: test out this code:


onClipEvent(load){
        speed = 5;
}
onClipEvent (enterFrame) {
	if (Key.isDown(Key.SPACE)) {
		nRandom = Math.round(Math.random()*Stage.width);
	}
	ball._x += (nRandom-ball._x)/speed;
}

its a little different than yours…