00:00
00:00
Newgrounds Background Image Theme

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

camera and mouse

696 Views | 4 Replies
New Topic Respond to this Topic

camera and mouse 2006-08-07 06:43:15


Hey
Would you use this code to make the camera follow the mouse - and would this stop you from being able to see outside of the camera?Like a sniper zoom.

this._x=mouse._x;
this._y=mouse._y;

Thanks!

Response to camera and mouse 2006-08-07 06:58:46


I think it's supposed to be _xmouse and _ymouse, dont quote me on that.

Cant be arsed opening flash.

.

BBS Signature

Response to camera and mouse 2006-08-07 07:00:51


lol - ok. so ..

this._xmouse._x;
this._ymouse._y;

Response to camera and mouse 2006-08-07 07:05:43


At 8/7/06 07:00 AM, nitro_goat wrote: lol - ok. so ..

this._xmouse._x;
this._ymouse._y;

Nah man:

this._x = _xmouse
this._y = _ymouse
and I think you dont need the this. so:
_x=_xmouse
_y=_ymouse

Better again use drag:
onClipEvent (enterFrame) {
startDrag ("", true);
}


.

BBS Signature

Response to camera and mouse 2006-08-07 07:26:10


At 8/7/06 07:05 AM, Fionmaster wrote:
At 8/7/06 07:00 AM, nitro_goat wrote: lol - ok. so ..

this._xmouse._x;
this._ymouse._y;
Nah man:

this._x = _xmouse
this._y = _ymouse
and I think you dont need the this. so:
_x=_xmouse
_y=_ymouse

Better again use drag:
onClipEvent (enterFrame) {
startDrag ("", true);
}

Thanks for ur help m8