Artificial timer

for the game i am making i have decided to use a subtraction system to creat a "timer"

the math makes the total 60 including room for error.

what i am trying to do is for every action made - 1, -3, or -5 is removed from the start value.

the game is spread across multiple cpp's. I have set it in the global as an extern and initiallised the total at 60.

I just can't figure out a subtraction set up to be implimented into the actions.

any help would be appriciated.
Topic archived. No new replies allowed.