00:00
00:00
Newgrounds Background Image Theme

mouse game tut(begginers)

Share Collapse

Author Comments

#1: onClipEvent (load)
{
this._x = 0;

var speed = 20;
}
onClipEvent (enterFrame)
{
_x += (_xmouse - _x)/speed;

}

note theat the y stuff is alreaddy removed

#2:onClipEvent (load)
{
this._x = 0;
this._y = 0;
var speed = 20;
}
onClipEvent (enterFrame)
{
_x += (_xmouse - _x)/speed;
_y += (_ymouse - _y)/speed;
}

dont remove anything from the one above

#3:onClipEvent (load)
{
this._x = 0;
this._y = 0;
var speed = 20;
var rotSpeed = 5;
}
onClipEvent (enterFrame)
{
_x += (_xmouse - this._x ) / speed;
_y += (_ymouse %uFFFD this._y) / speed;
_rotation += (((_xmouse - this._x) / rotSpeed) + ((endY - this._y) / rotSpeed)) / 2;
}

Log in / sign up to vote & review!

Newgrounds accounts are free and registered users see fewer ads!

ummmm....

it was OK but useless

Credits & Info

Views
4,101
Faves:
2
Votes
5
Score
4.31 / 5.00

Uploaded
Sep 29, 2008
5:02 PM EDT
Genre
Informative