Search  

MOVIECLIP FOLLOWS MOUSE WITH DELAY

HomeBrowse CategoriesFlashAnimationsMouse ControlledMovieClip follows Mouse with delay

MovieClip follows mouse position with delay using an onEnterFrame function. Delay is easily modified by changing one variable. Code is fully commented and easy to understand.

Posted about 1 year ago

Can I customize this (i.e., will you comment on how to customer this), so that the movie clip only moves like 100 pixels out of its original position?

The effect I’m looking for is a movie clip that kind of float intuitively toward the mouse, but doesn’t fly all over the page.

JDC

Posted about 1 year ago

Thats complicated. I guess you could use startDrag() instead of just following it, but then you would need to incorporate the delay. I would need to see your method of delay to say any more.

Alternatively (no idea how intensive this is on resources) onFrameEnter(){ if(instancename._x=<[xboundary]){ //continue } else // don’t continue; };

These will need some work and are definitely not solutions but they should hopefully help you, JC.

Posted about 1 year ago

john_clements,

i sent you a message about how to get the mc to only float within certain limitations.

Posted about 1 year ago

can you send me how from above?

Posted about 1 year ago

evil,

if you email me, i will send you the information.

drumkeyjw@gmail.com

-drumkeyjw

Posted about 1 year ago

can you change the movie clip to whatever you want in the fla?

Posted 5 months ago

robo523,

Yes, you should be able to change the movieclip to whatever you want. Email me at drumkeyjw@gmail.com know if you have problems with this.

Posted 4 months ago