ma la prima volta il clip appare e poi non ti riappare più?
io ho provato il tuo codice così e funziona:
codice:
onClipEvent (load) {
appare == true;
visibile = true;
}
onClipEvent (enterFrame) {
//SE NON E COMPARSO IL BERSAGLIO FARLO APPARIRE
if (appare == false) {
num1 = random(13);
if (num1 == 1) {
this._visible = true;
this.tmr1 = getTimer();
visibile = true;
appare = true;
}
}
// SE E' COMPARSO FARLO SPARIRE DOPO 2000ms
if (visibile == true) {
tmr2 = getTimer();
if ((tmr2-tmr1)>=2000) {
this._visible = false;
appare = false;
visibile = false;
}
}
}