omega10mg
02-01-2003, 03:09 PM
how do i make a MC follow another MC, but like 10 pixels behind it?
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
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.