Timer or Tickcount ?
#4

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

Код:
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.
Reply


Messages In This Thread
Timer or Tickcount ? - by Zex Tan - 07.05.2013, 16:25
Re: Timer or Tickcount ? - by Yashas - 07.05.2013, 16:28
Re: Timer or Tickcount ? - by Pottus - 07.05.2013, 16:49
Re: Timer or Tickcount ? - by Yashas - 07.05.2013, 16:55
Re: Timer or Tickcount ? - by Zex Tan - 07.05.2013, 16:58
Re: Timer or Tickcount ? - by Yashas - 07.05.2013, 17:20

Forum Jump:


Users browsing this thread: 1 Guest(s)