|
-
i Write.
A Little Help?
Mellow Greetings, everyone!
I've been teaching myself Flash for about two months now, and while I've got the basics of it, there's still a lot for me to learn!
If you would kindly look at the site http://www.leoburnett.com - they did this cool action where the letters float around, and fly in tandem with the mouse movement. Could someone tell me what action that is, so I could research and learn it?
Thanks in advance!
-
my dear flasher!
there are lots of actions in that particuler work which when combined produce such an effect, but if you are only interest in knowing how to make your movie clips(in this instance letters) follow the mouse position that's acually quit easy!! here is a an example : http://www.kirupa.com/developer/mx/followease.htm
hope it helps!
-
i Write.
Thanks!
Thanks for the reply, FlashSmashed!
Using the link you gave me, I was able to make the ball go in the opposite direction of the mouse by changing the endX to ymouse, and the endY to the xmouse, like so:
onClipEvent (load) {
_x = 90;
_y = 70;
speed = 60;
}
onClipEvent (enterFrame) {
endX = _root._ymouse;
endY = _root._xmouse;
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
I was also able to keep the little ball from exiting the screen by increasing the speed.
Thing is, is there a way for me to limit the area of movement of the movie clip that's "following" the mouse?
By the way, as I'm sure you know, I'm still a Flash noob, and haven't even begun to learn about action script yet...
Any help would be gratefully accepted. Again, thanks for the reply. It's much appreciated.
EDIT: Ugh. After playing around with the script, I found that all I managed to do was make the xmouse control the vertical movement, and vice versa. I'm gonna do more research to try to learn how to make the endx into the opposite of the xmouse...
Last edited by shetz; 07-05-2006 at 09:40 AM.
Reason: Dang, wrong result!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|