00:00
00:00
Newgrounds Background Image Theme

Heln966 just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

Making object follow the mouse

636 Views | 1 Reply
New Topic Respond to this Topic

Making object follow the mouse 2002-07-12 14:21:29


I'm a major newbie to Flash. What I would like to know is how do you make something follow the mouse? Like a crosshair-type thing? Any help appreciated.

Response to Making object follow the mouse 2002-07-12 19:38:51


what the guy before me said, but if u put this in...

onClipEvent (enterFrame) {
Mouse.hide();
this._y = _root._ymouse;
this._x = _root._xmouse;
}

...it would be easier, and u can use the startgrad for something else ;)