Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-20-2004, 09:21 PM   #1
Vignor2003
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
Vignor2003
Registered User
 
Join Date: Apr 2004
Posts: 7
Default

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

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


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 12:38 PM.

///
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.