Collision Between Arrays?
hi!
i trying collision between array of movieclips isnt doing =s.
here now:
for(i=0; i<bulletarray.length; i++){
if(_root.bulletarray[i].hittest(_root.enemy))
{
unloadmovie(bulletarray[i])
_root.enemy.lives -= bulletdmg
}
}
this code works, colliding 1 object. have made array called: _root.enemyarray.
i have tried make statment inside current 1 without sucess.
any appreciated!
can show tried using 2 loops?
More discussions in ActionScript 1 and 2
adobe
Comments
Post a Comment