# They won't fire...\[MX\]

**URL:** <https://forum.kirupa.com/t/they-wont-fire-mx/37421>\
**Category:** flash\
**Created:** [December 10, 2003, 1:46am UTC](https://forum.kirupa.com/t/they-wont-fire-mx/37421 "2003-12-10T01:46:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SetroGamer](https://avatars.discourse-cdn.com/v4/letter/s/71c47a/32.png) [@SetroGamer](https://forum.kirupa.com/u/SetroGamer)\
**Post date:** [December 10, 2003, 1:46am UTC](https://forum.kirupa.com/t/they-wont-fire-mx/37421/1 "2003-12-10T01:46:30Z")

</div>

Neither the player nor enemy will fire at eachother! (That sounds funny, doesn’t it?)  
“YOU”(player)  
[AS]  
on (keyPress “\<Enter\>”) {  
\_root.firey = 1;  
\_root.i += 1;  
duplicateMovieClip(\_root.bullet2, “bullet2”, i);  
}  
[/AS]  
“BULLET2”  
[AS]  
onClipEvent (load) {  
this.\_visible = 0;  
if (\_root.firey == 1) {  
this.\_x = \_root.you.\_x;  
this.\_y = \_root.you.\_y;  
}  
}  
onClipEvent (enterFrame) {  
if (this != \_level0.bullet2) {  
if (\_root.firey == 1) {  
this.\_x += 5;  
this.\_visible = 1;  
}  
if (this.\_x\>0) {  
this.removeMovieClip();  
}  
}  
}  
[/AS]  
“E”(Enemy)  
[AS]  
rand = random(2);  
if (rand == 1) {  
\_root.fire = 1;  
\_root.i += 1;  
duplicateMovieClip(\_root.bullet, “bullet”+i, i);  
}  
[/AS]  
“BULLET”  
[AS]  
onClipEvent (load) {  
this.\_visible = 0;  
if (\_root.fire == 1) {  
this.\_x = \_root.e.\_x;  
this.\_y = \_root.e.\_y;  
}  
}  
onClipEvent (enterFrame) {  
if (this != \_level0.bullet) {  
if (\_root.fire == 1) {  
this.\_x -= 5;  
this.\_visible = 1;  
}  
if (this.\_x\<0) {  
this.removeMovieClip();  
}  
}  
}  
[/AS]  
If you can help, that’d be great 😃
