[quote:yk0ebv1h]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...
Hiya Silent Cacophony,
I have not been on here or have been using Construct in the last few months. I've been tied up heavily during that time.
I already set the global variables for the key controls, but, I am still unclear as to how do I set the animation frame randomly so that I can stop the flashing squares by pressing the Space button.
Would you guide me step by step as to how I can do this. I'm so clueless sometimes when it comes to programming. I greatly appreciate it.
Thank you so much.