Hey this movie clip duplicates every time space is hit (i e a new bullet is attached and fired)
How do i detect if this hits an enemy lets say?
the original movie clip is called "missile" but the hit test only detects the original not the new ones that are added. How can i solve this?
do duplicated movie clips have a special instance name like "missile2" for example?
thanks
rory
code:
onClipEvent (enterFrame) {
if (_root.ammomode == 1){ if (Key.isDown(Key.SPACE)){
_root.ammo-=5;
missile++;
_root.missile.duplicateMovieClip("missile"+missile , missile);
_root["missile"+missile]._visible = true;
}else{
if (_root.ammomode == 0){
if (Key.isDown(Key.SPACE)){
missile++;
_root.missile.duplicateMovieClip("missile"+missile , missile);
_root["missile"+missile]._visible = true;
}
}
}
}
}




Reply With Quote