ho provato il codice che mi hai detto e cioè questo:
purtroppo è sempre uguale l'undicesimo c'è ed è indistruttibilecodice:onClipEvent (enterFrame) { if(this._name != nemico){//il nome del clip originale this._y+=enemySpeed; if (this._y>=800) { //supera la dim massima del mio stage di esempio reset(); } } } onClipEvent (load) { function reset(){ this._x=random(800); this._y=random(0); enemySpeed=random(6)+1; } reset(); }
![]()