Ah i didn’t know u could do that, i thought u could only remove the first or last element of the array, i didn’t read it properly, that should work, thanks Marz!
Sorry i’m not sure how this works, i know how to make the array so i have an array of length 32, with element 1 =1 (i’m not starting at zero, this shouldn’t be problem though?), 2=2, 3=3 etc then i have
randomLine = Math.ceiling(Math.random()*lineStorage.length);
lineChosen = lineStorage[randomLine];
then have line thats chosen by ai
_root[“lineArray”+lineChosen][0] = 1;
and then in drawing, i need to have
if(_root[“lineArray”+i][0] == 1){
lineStorage.splice(i, 1);
}
cos if thats what i need it doesn’t seem to work, but i’ll look at it again