ive got an mc (man) rotating to the mouse bu i cant seem to get it to fire when i press space and go in the direction that the man was facing when it was pressed the cod i have so far is
bs = 3;
Key.SPACE.onKeyDown = function() {
bullety.duplicateMovieClip("bullet"+i++, i, {onEnterFrame:function () {
this._x = _root.man._x;
this._y = _root.man._y;
this._x += Math.sin(this._rotation/180*Math.PI)*bs;
this._y -= Math.sin(this._rotation/180*Math.PI)*bs;
}});
};
any help is apreciated
even if any one knows a good tutorial that i could use
thanks