actions script
actions script
- Started
- Last post
- 4 Responses
- Xentic
Hello, I'm trying to make a movie clip that slowly follows the mouse.. only the x position has to change, so that it will move on horizontal line.
The MC is named 'menu'
I've been trying things like this:
onClipEvent (enterFrame) {
_root.menu._x = _root.menu._x - (_root.menu._x + +_root._xmouse)/2;
}but it doens't work...
Does anyone know how to do this?
Thanks in advance!
MC
- jevad0
onClipEvent (enterFrame) {
// x movement
mx = _root._xmouse;
if (mx<_x) {
dx = _x-mx;
} else {
dx = mx-_x;
}
moveSpeedx = dx/10;
if (mx<_x) {
_x = _x-moveSpeedx;
} else {
_x = _x+moveSpeedx;
}
}
- phlegm0
what choo talkin about jevad.
(reference to your pic)
the script works.
- Xentic0
thanks a lot! It works great!!!
- jevad0
course it works - im a fucking script ninja me...