We are about to switch to a new forum software. Until then we have removed the registration on this forum.
Hello,
I am trying to make really simple click and point game. It would have 4 windows:
Title
Rules
Game
Scoreboard
I have programmed code that counts time and shows it at left upper corner. My problem is that i want it to start counting time from 3rd window, not since the program is launched. I am begginer and I tried to find something at forums but I failed :( Also I have wrtitten code that allows you to play again without restarting progam (changing window from 4th to 2nd and then to 3rd again). I have tried to reset(?) time while its on 2nd window, it would do job for this two problems, but it didnt worked. This code is quite long so i leave it on my dropbox.
Thanks in advance!
https://dropbox.com/sh/7t4p14l7z80divc/AADAweYCWBiA7XIhGefsoL_Fa?dl=0
Answers
I modified your Time tab like this:
by the usage if timer startTime we don't measure the total time but only the time since last reset
since that the last line in setup() is now
you also need
time.reset();
wherever you want to reset the timerChrisir ;-)
modified tabs rules
variable
ms
not needed here and before setup()my version for main tab
Everything works perfect, thanks!!!
;-)