Thank you so much Davioware.
That worked like a charm. However, I am afraid that I have some bad news. I originally had the SPACE Bar set to pause the animation, and the F1 Key to resume it. However when I use these controls, their said commands do not happen.
Now I had played around w/those controls, and still, the same thing occurs.
What am I doing wrong? Any help is always appreciated.
Thanks again.
- Chris
Sounds like you were just stopping a normal animation before, and didn't change that to work with your new random animations.
If you are doing a simple 'Every X milliseconds, set animation frame ...' to animate the squares, then you cannot stop it like you can a normal animation. You should make a global variable to flag whether the squares should animate or not, then only change the frame if it is true.
Something like so:
On SPACE key pressed : set global variable 'FlashSquares' to 0
On F1 key pressed : set global variable 'FlashSquares' to 1
Global variable 'FlashSquares' equals 1
Every 100 milliseconds : set the animation frame randomly...