Les ennemis n´apparaissent plus maintenant sur les autres séquences, mais ils continuent à tirer hors de la scène Oo
Le script pour les faire tirer est :
var w = 1;
function enemyMissile(tie) {
w++;
var newname = " missileEn"+w;
_root.attachMovie("enemyMissilet", newname, w*400);
_root[newname]._y = tie._y+31;
_root[newname]._x = tie._x+0;
_root[newname].onEnterFrame = function() {
var missile_speed = 20;
this._y += missile_speed;
if ( this._y>560) {
this.removeMovieClip();
}
if ( this.hitTest(_root.faucon)) {
this.removeMovieClip();
_root.bouclier = ( _root.bouclier-1);
this.removeMovieClip;
if ( _root.bouclier<=0) {
_root.vie--;
_root.faucon.gotoAndPlay("heroboom");
_root.bouclier = 100;
if ( vie<0) {
gotoAndPlay("gameover", 1);
}
}
}
};
}
Si quelqu´un sait comment arrêter ça d´une séquence à l´autre...