Having a hard time wrapping my ageing brain around this concept in the event system.
So what I am trying to do is a simple memory game like Simon
Basically, the computer takes its turn, giving you a sequence to memorize, and then the player responds and attempts to duplicate. If the player is successful, the computer then repeats the sequence and adds one more step.
I get that you can build an array, adding a random additional turn each time.
What I am having a hard time figuring out is how do you confine things to turns within a loop.
Computer takes turn, blinks one of four boxes.
Then we wait for player response
If player is correct
-computer repeats the original pattern, and adds one more, and then waits for the player.
player takes his turn
and so on