I have an array that makes an entry if the user gets a test question wrong.
on (release) {
if(answer.selected == true) {
choice[20] = "true";
} else {
categories[20] = "Alternatives to Lifting";
choice[20] = "false";
}
nextFrame();
}
This code is on every “next” button. One button on each frame. The array index is incremented (manually) on each frame to match the quiz question. After 12 values are logged and then the 13th array value logs (categories[12]) it changes array values 0-11 to undefined and then writes to array value 12! This happens for every 12 entries. So 12 more entries are written to the array and then they are changed to undefined! Any help would be appreciated. Thanks.