Oh go on !
Oh go on !
- Started
- Last post
- 1 Response
- chinaman
can anyone help me modify this code so the MC doesn't keep scrolling and stops at a certain position either end? same for the _y too if possible, thanks tons.
onClipEvent (load)
{
xcenter=150;
speed=1/30;
}
onClipEvent (enterFrame)
{
var distance=_root._xmouse-xcenter;
_x+=(distance*speed);
if (_x > 0) _x=-300;
if (_x < -300) _x=0;
}
- chinaman0
bump