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 | |
---|---|---|---|---|
Troubles removing Enemy from an array, instance still is on stage | 0 | 103 | May 8, 2010 | |
Hit object then remove from array | 0 | 122 | May 10, 2010 | |
Removing children and Arrays? | 0 | 44 | May 6, 2009 | |
Hittest with multiple array issue | 0 | 95 | March 20, 2009 | |
HitTesting MC's From Libary Need Help [FL8] | 0 | 113 | September 5, 2010 |