# Character shooting

**URL:** <https://forum.kirupa.com/t/character-shooting/81299>\
**Category:** Uncategorized\
**Created:** [March 1, 2005, 3:32pm UTC](https://forum.kirupa.com/t/character-shooting/81299 "2005-03-01T15:32:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![i\_need\_help](https://avatars.discourse-cdn.com/v4/letter/i/bb73d2/32.png) [@i\_need\_help](https://forum.kirupa.com/u/i_need_help)\
**Post date:** [March 1, 2005, 3:32pm UTC](https://forum.kirupa.com/t/character-shooting/81299/1 "2005-03-01T15:32:21Z")

</div>

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?
