chiefmonkey
01-25-2001, 07:06 PM
I know it is easy enough to have an object follow the x position of the mouse but how do yo uget the movie clip to move in the oppisite direction from the mouse.
TIA
George
Jesse
01-25-2001, 11:33 PM
I made an example like this for the mouse trailer tutorial but never posted it:
My clip is 300px by 300px
// run away!
setProperty ("_level0.target", _x, 300 - _root._xmouse);
setProperty ("_level0.target", _y, 300 - _root._ymouse);
Loop that and the clip will do the exact opposite to the mouse. Change the 300 values to suite the dimensions of your clip.
Cheers
Jesse
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.