Hello, I am having trouble creating a delayed for loop. does anyone know a successful way to do this?
This is what I am trying right now. I want the function to execute, and then wait before executing again. Thanks!
ps:
The function lights up certain cells, and they are currently just lighting up all at the same time.
function lightUp()
{
for (i=0;i<gameIndex.length;i++)
{
tester=setTimeout(switcheroo(gameIndex[i]),1000);
}
}