Hey everybody,
Please look at my code. Basically what I’m trying to reset delayTimerStart to 0 while continually adding delayTimerStart to
newDelayTimeTotal
I understand that it is resetting to 0 because of newDelayTimeTotal = delayTimerStart;
Any help is greatly appreciated.
Thank you in advance.
Apologies about the post, it was stuck in code mode.
function stopDelayTimer () {
newDelayTimeTotal = delayTimerStart; // <-- I'm sure the problem is here
//We Call delayTimeTotalAdd Here
}
function Update () {
delayTimerGUIdisplay.text = "SCORE " + delayTimerStart;
delayTimerStart ++; //Our Timer Starts when the Player is not grounded *Works*
}
function delayTimeTotalAdd () {
//This works and keeps adding up
delayTimeTotalScore.text = "TOTAL " + delayTimer.newDelayTimeTotal;
//How Do You Reset delayTimer without resetting delayTimer.newDelayTimeTotal to 0
}