Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-20-2004, 09:21 PM   #1
Registered User
Join Date: Apr 2004
Posts: 7
Default multiple MC mouse follow scripts...

hey all...

i've just recently tried getting movie clips to follow the mouse with a certain amount of delay. Basically, i'm trying to get more than one MC to follow the mouse, but each with different delay times. For whatever reason, I can only get one clip to actually work - that is, follow the mouse and have a delay time. Any others I put on there will move with the mouse, but they will not follow the pointer. They just slide along, seemingly random-like on the X axis. Is there anything wrong with my script? It seems so simple, but i'm stumped:

mouse_x = _xmouse;
mouse_x2 = _xmouse;
setProperty (_root.follow, _x, mouse_x+((getProperty(_root.follow,_x)-mouse_x)/2));
setProperty (_root.follow2, _x, mouse_x2+((getProperty(_root.follow2,_x)-mouse_x2)/1.7));

A simple enough code, it's just not working for some reason. Any help?
Vignor2003 is offline   Reply With Quote
Old 04-20-2004, 09:27 PM   #2
Registered User
Join Date: Apr 2004
Posts: 7

I added an attachment so that you can see the problem firsthand.

thanks again
Attached Files
File Type: zip delayfollowA.zip (4.3 KB, 703 views)
Vignor2003 is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

All times are GMT. The time now is 01:58 AM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.