set timer to 0 in start of frame