# Game (2nd Clip Doesnt Work)

**URL:** <https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762>\
**Category:** Uncategorized\
**Created:** [December 13, 2003, 3:41am UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762 "2003-12-13T03:41:18Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Soul814](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@Soul814](https://forum.kirupa.com/u/Soul814)\
**Post date:** [December 13, 2003, 3:41am UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/1 "2003-12-13T03:41:18Z")

</div>

[http://www.silverspecter.com/phoneix.swf](http://www.silverspecter.com/phoneix.swf)  
[http://www.silverspecter.com/phoneix.fla](http://www.silverspecter.com/phoneix.fla)

if you duplicate the enemy movie clip (the black box) then play the movie, the bullet goes thro the 2nd box and nothing happens… how do you prevent this…

BYTHEWAY PEOPLE THE TOP DOESNT REALLY SHOW THE PROBLEM YOU GOTTA GO DOWNLOAD THE .FLA AND DUPLICATE THE CLIP YOURSELF AND TRY IT.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 5:04am UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/2 "2003-12-13T05:04:02Z")

</div>

Your fla is a dead link.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 6:58am UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/3 "2003-12-13T06:58:21Z")

</div>

Well you probably have a deep and interally flawed engine from the root…

If you could provide the code then I could pinpoint your problem…

And I don’t mean .fla… Post your code on here… if you are too lazy, then I’m too lazy also.

Sound fair? 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 9:10am UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/4 "2003-12-13T09:10:06Z")

</div>

What are you talking about Marz? I’m the laziest!!

\_root[lazy].gotoAndPlay(“lazy”);

^ That’s a start 😛

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 3:07pm UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/5 "2003-12-13T15:07:30Z")

</div>

i reuploaded the .fla and .swf this is the problem… click on the swf and try to shoot both squares… one disappears the other stays there and the collision isnt detected

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 6:25pm UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/6 "2003-12-13T18:25:17Z")

</div>

well… I still can’t help you… and now I’ll expain why I can’t help you. Right now I’m sitting here at my house enjoying a nice relaxing break rying to help people. Something I typically can’t persist at the ofice because I’m too busy. Now, I don’t have Flash MX or anything installed here at the house because the computer here, macintosh, doesn’t have enough juice to handle it.

So… if I seen the code on here… Then I’d be able to help you… I could guess a wha it is… or give you some clean code to place in your movieclips to mke it work… But I’d rather eror trap your code so that you learn more…

Soo 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 13, 2003, 9:51pm UTC](https://forum.kirupa.com/t/game-2nd-clip-doesnt-work/96762/7 "2003-12-13T21:51:12Z")

</div>

umm okay

the right most box & left most box (Instant name: enemy) no action script on them

the ship  
// start  
on (keyPress “\<Space\>”) {  
\_root.fire = 1;  
\_root.i += 1;  
duplicateMovieClip(\_root.bullet, “bullet”+i, i);  
}  
on (keyPress “\<Left\>”) {  
\_root.ship.\_x = \_root.ship.\_x-5;  
}  
on (keyPress “\<Right\>”) {  
\_root.ship.\_x = \_root.ship.\_x+5;  
}  
on (keyPress “\<Up\>”) {  
\_root.ship.\_y = \_root.ship.\_y-5;  
}  
on (keyPress “\<Down\>”) {  
\_root.ship.\_y = \_root.ship.\_y+5;  
}

// end

the bullet

//start  
onClipEvent (load) {  
this.\_visible = 0;  
if (\_root.fire == 1) {  
this.\_x = \_root.ship.\_x;  
this.\_y = \_root.ship.\_y;  
}  
}  
onClipEvent (enterFrame) {  
if (this != \_level0.bullet) {  
if (\_root.fire == 1) {  
this.\_y -= 10;  
this.\_visible = 1;  
if (this, hitTest(\_root.enemy)) {  
\_root.score = \_root.score+10;  
unloadMovie(\_root.enemy);  
this.removeMovieClip();  
}  
}  
if (this.\_y\<0) {  
this.removeMovieClip();  
}  
}  
}  
//end
