I have this code already:
onClipEvent(load){
moveSpeed=15;
_root.laser._visible=false;
laserCounter=1;
}
onClipEvent (enterFrame) {
if (Key.isDown(Key.CONTROL)) {
laserCounter++;
_root.laser.duplicateMovieClip(“laser”+laserCounter, laserCounter );
_root[“laser”+laserCounter]._visible=true;
}
}
onClipEvent (enterFrame) {
if (Key.isdown(KEY.LEFT)) {
this.play();
this._xscale = -100;
this._x -= 15;
}
}
onClipEvent (enterFrame) {
if (Key.isdown(KEY.RIGHT)) {
this.play();
this._xscale = 100;
this._x += 15;
}
}
onClipEvent (enterFrame) {
if (Key.isdown(KEY.UP)) {
this.gotoAndPlay(4);
this._y -= 15;
}
}
onClipEvent (enterFrame) {
if (Key.isdown(KEY.DOWN)) {
this.gotoAndPlay(4);
this._y+= 15;
}
}
But my character only shoots to the right. How do I make it so that he shoots in whatever direction he is facing?