PDA

View Full Version : this one should be easy.


omega10mg
02-01-2003, 03:09 PM
how do i make a MC follow another MC, but like 10 pixels behind it?

tost
02-01-2003, 06:25 PM
play with this:


rate = 0.5;
slave_mc.onClipEvent (enterFrame) {
_x += ((leader_mc._x - 10) - _x)*rate;
_y += ((leader_mc._y - 10) - _y)*rate;
}


cheerz
tost