1ª como haria para que disparase cada bolita y despues la pueda identificar?
hasta ahora uso este codigo para disparar las mismas
Código :
function disparar() {
//Hacemos que apareza una bolita
bala = this.attachMovie("bala1", "bala_cn"+this.getNextHighestDepth(), this.getNextHighestDepth());
bala.setCoords(Trig.hallarPunto(canon._rotation, canon_hg-10, canon.getCoords()));
bala.rot = canon._rotation;
a++;
//Sólo puede haber una bolita a la vez.
if (a ==1) {
this.onMouseDown = null;
}
bala.onEnterFrame = function() {
//Movemos la bolita
this.setCoords(Trig.hallarPunto(this.rot, 10, this.getCoords()));
if (this._x>wd || this._x<0 || this._y>hg || this._y<0) {
this._parent.onMouseDown = disparar;
bol[i] = attachMovie("bolas","bols",prof)
bol[i]._x = this._x
bol[i]._y = this._y
prof+=100
i++
this.removeMovieClip();
a--;
}
};
2ª como crear un mapa para que me identifique cuando las bolitas x esten en colicion
por ahora son mis dudas agradesco su ayuda
att. MaxiSan20
