Game (2nd Clip Doesnt Work)

http://www.silverspecter.com/phoneix.swf
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.

Your fla is a dead link.

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? :slight_smile:

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

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

^ That’s a start :stuck_out_tongue:

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

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 :slight_smile:

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