vincentpol
03-05-2006, 01:15 PM
i am making a game where objects get generated and then the name is stored in an array, now lets say im shooting enemy2 which is on the 45th place in the array but i dont know that and i want to remove enemy2 from the array without leaving gaps in the array
so is there a way to remove an object from an array by the name of the content say
_root.enemies.remove("enemy2");
where enemies is the array
pls advise on what to do
so is there a way to remove an object from an array by the name of the content say
_root.enemies.remove("enemy2");
where enemies is the array
pls advise on what to do