xquest
Started by: sticky505 | Replies: 6 | Views: 749 | Closed
Oct 18, 2008 2:27 PM #275138
a game that is not yet finished
Oct 18, 2008 2:33 PM #275144
this is just a small demo like thing. i just wanted to see if it worked which it does and to show ppl wat im on about.its not finished and has some glitches in it so yes i will fix it later.
Oct 18, 2008 7:07 PM #275343
Nice job, kinda boring, but it worked well, its not really "stick" related tho.
Oct 19, 2008 4:49 PM #275973
Cool, but make it more challenging.
Oct 19, 2008 10:53 PM #276269
nice game, how did you come up with the math to make it follow the mouse?
maybe for and enemy you could have the same ship just red and it follows at 1/2 speed
maybe for and enemy you could have the same ship just red and it follows at 1/2 speed
Oct 27, 2008 4:47 PM #281394
hey, thanks for your opinion. The actionscript for the movieclip following the mouse is:
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x);
myDegrees = Math.round((myRadians*180/Math.PI));
_root.yChange = Math.round(_root._ymouse-this._y);
_root.xChange = Math.round(_root._xmouse-this._x);
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
this._y += _root.yMove;
this._x += _root.xMove;
this._rotation = myDegrees+90;
}
(btw all this is on the movieclip)
onClipEvent (enterFrame) {
myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x);
myDegrees = Math.round((myRadians*180/Math.PI));
_root.yChange = Math.round(_root._ymouse-this._y);
_root.xChange = Math.round(_root._xmouse-this._x);
_root.yMove = Math.round(_root.yChange/20);
_root.xMove = Math.round(_root.xChange/20);
this._y += _root.yMove;
this._x += _root.xMove;
this._rotation = myDegrees+90;
}
(btw all this is on the movieclip)
Feb 14, 2009 11:53 PM #357554
kk i think it might take long to fix though