OK, so I have an array of enemy instance names produced using the push(); and pop(); method and i have code so that when an attached bullet hits any of the ones in that array (uses a for loop), it removes the bullet, but I can’t figure out how to get it to remove the enemy it hit. Is there a way to find out which enemy movieclip it hit and return that instance name so i can put it in a variable and remove it? Thanks.
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Arrays and hitTest
|
0 | 111 | November 13, 2004 | |
Troubles removing Enemy from an array, instance still is on stage | 0 | 102 | May 8, 2010 | |
Array hitTest
|
0 | 49 | November 28, 2008 | |
Bullet hit enemy
|
0 | 43 | October 13, 2008 | |
Array hitTest Difficulties
|
0 | 51 | April 10, 2005 |