00:00
00:00
Newgrounds Background Image Theme

Chan99 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!

_xmouse 2006-08-12 08:16:34


well i have an object i want its _x to e like the mouse x so i have wriiten this code
onClipEvent (enterFrame) {

_x=_xmouse
}
but the object is goin right and left in crazy and fast speed ant help???

Response to _xmouse 2006-08-12 08:18:28


Try _root._xmouse


Come join music competitions on Chips Compo and hang on our Discord!

Good artists copy. Great artists get banned from the Audio Portal.

BBS Signature

Response to _xmouse 2006-08-12 08:19:18


onClipEvent (mouseMove) {
_x=_xmouse;
}

Response to _xmouse 2006-08-12 08:24:11


At 8/12/06 08:19 AM, phyconinja wrote: onClipEvent (mouseMove) {
_x=_xmouse;
}

well it didnt work when i moved the mouse the object disappered

Response to _xmouse 2006-08-12 08:25:26


At 8/12/06 08:18 AM, johnfn wrote: Try _root._xmouse

well this worked thanks john

Response to _xmouse 2006-08-12 08:28:02


but how do i make the _ymouse= to the object.y
how?

Response to _xmouse 2006-08-12 08:32:19


At 8/12/06 08:28 AM, omarshaaban wrote: but how do i make the _ymouse= to the object.y
how?

same way?
_y=_root._ymouse;

=P

Response to _xmouse 2006-08-12 08:56:57


didnt work

Response to _xmouse 2006-08-12 09:02:51


Then you're doing something wrong.


BBS Signature