I am new here.
What I am trying to do is make a game where there are squares flashing, and pressing a button stops the squares from flashing (a la The TV game show "Press Your Luck").
I already animated the frames that I drew the squares on in sequence. However what I want to do is actually animate the frames at random, so I won't know what square I am going to stop on when I press the button. Also, before each turn, I want to turn off the highlighted square, so all of the squares are not flashing, then when I start the randomizer, they will flash again.
How can I make my game do this process?