02-28-2016 04:02 PM
Hello all, I have a big problem when I put a button to Reset my program. Also, to count the time of my game.
I'm making a project named ''Simonsays'' which consists in a sequence of colors that you have to remember and have to click in each color to pass de level.
The problem is that I have to make a timer or a counter that count the time of a game. For example when I push ''start'' the time begin, and when I make a mistake in the game the time has to stop. There is another button named ''New Game'' or ''Juego Nuevo'' that serves to ''RESET'' the game, but I can't do that tis button serves to RESET.
The game begins when you Push ''COMENZAR'' and the window of labview dissapears and then you have to click ''START'' and the game starts.. BUT when you make a mistake the game have to stop with the TIME that you make in all the GAME, and the game have to wait until you press ''NEW GAME'' and newly the game start with a new counter of the time.
I hope that you can help me. Please.
There are 3 files, because all the files are connected.
Thanks.
Solved! Go to Solution.
02-28-2016 08:42 PM
I recommend you look at the State Machine. You can use one to greatly simplify you code here and perform the action you are wanting.
02-28-2016 09:30 PM
I think I answerd it before ?!