so I am making a simon says game. This function displays the current sequence. The problem with it right now is that it doesn't really go in a nice sequence, it kind of does everything at once. Say the colors are "blue", "red", and "yellow, they will all go off at the same time rather than in sequence. How can I fix this?
var displaySequence = function(){
compSequence.forEach(function(color){
$("#" + color).fadeTo(300, 0.5).fadeTo(300, 1.0);
})
}
See Question&Answers more detail:os