Guest User

Untitled

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