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

Popular posts from this blog

Hur installera Joomla på One.com - Joomla! Forum - community, help and support

removing index.php from URL address - Joomla! Forum - community, help and support

「イメージマップのアンカー名には、...」のエラーが出ないようにしたい