I’ve completed the infinite menu tutorial and am going to implement a menu of this type on my site. I would like to know how to slow the menu down a bit so that it does not scroll so fast when the mouse is all the way to the left or right edge. Here is the code:
onClipEvent (load) {
xcenter = 150;
speed = 1/10;
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distancespeed);
}
onClipEvent (enterFrame) {
var distance = _root._xmouse-xcenter;
_x += (distancespeed);
if (_x>0) {
_x = -300;
}
if (_x<-300) {
_x = 0;
}
}
I tried changing the speed variable to 1/5 and such but it seems to still go really fast. Can anyone help.