Código :
onClipEvent (load) {
//posiciona el auto
this._x = -34.6;
this._y = 525;
//randomiza el auto
this.gotoAndStop(random(5)+1);
}
onClipEvent (enterFrame) {
trace(_global.conteo);
_global.conteo-=1;
if (this.hitTest(_root.frogger)) {
//si te choca sucede...
_global.vidas-=1;
_root.gotoAndStop(3);
}
if (this._x>=520) {
//si llega al final de la pantalla que vuelva al principio y con otra imagen
this._x = -34.6;
this.gotoAndStop(random(5)+1);
} else {
this._x += 7;
}
}
Hay muchos tutoriales de cómo ocupar el duplicatemovieclip... pero se me borra el auto a medida que se van creando otros... y al ocupar 'getNextHighestDepth()' se duplica hasta el infinito haciendo que se me cuelgue flash...
alguna ayuda?
