Question about getTimer();
Hey everyone,
Ok so I have this timer that counts the seconds that go by:
time = Math.floor(getTimer()/1000);
And basically Im using this to check how many seconds go by before something happens. I do this by:
if (time/orangeRandom == 1) {
So I check if time divided by a number equals 1. If so, then I know that a certain amount of seconds have gone by and I can move on to do something in the IF statment.
But my problem then comes later on , I need to know if its possible to reset the timer back to 0.
It seems that the function getTimer(); is always constantly going as soon as you call it I cant figure out how to start it back at 0. I probably could work around it, but this is the easiest way I can see, fastest and also would contain the least amount of code.
If someone could give me a boost , it would be appreciated :)