07.05.2013, 16:55
K I get what you you are trying.
A GetTickCount() - TimePlanted divided by the INCREMENT_VALUE so that you get whats there in it
Nice!!
So the usage will be
A GetTickCount() - TimePlanted divided by the INCREMENT_VALUE so that you get whats there in it

Nice!!

So the usage will be
Код:
new i = (GetTickCount() - OnTickWhenItWasPlanted) / 1000; //By 1000 to get it in seconds or you can define INCREMENT as 2000 for 2 seconds or and remove that division i /= INCREMENT; //for example, if you wanted it to increase 2 every second.