Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for(var i:int=0; i<myArray.length; i++) {
- if(myArray[c].readyToDie) {
- myArray[c].splice(i,1);
- i--; // Since we just yoinked something out of the array, we need to check the new thing that filled in that spot.
- }
- }
Add Comment
Please, Sign In to add comment