Sidestepping help

Hi, my game is a shooting game, but I think it needs side stepping. I’ve fooled around with this Script but found nothing. Would I have to find out like, My MC’s roation +90 and -90?


//this is the rotation with mouse
myRadians = Math.atan2(_root._ymouse-this._y, _root._xmouse-this._x);
myDegrees = Math.round((myRadians*180/Math.PI));
this._rotation = myDegrees;
//this is my walking forwards towards mouse
g = _rotation*0.01745;
z = Math.cos(g);
n = Math.sin(g);
if (Key.isDown(87)) {
_x += z*walkwalkspeed;
_y += n*walkwalkspeed;
}