Been trying to implement a timer into my game, but i want to be able to stop and start it at will rather than using the device time. So i have tried to use the CTimer class.
Heres my code for it
Code: Select all
CTimer timer;
CTimer.setTimer(0);
CTimer.start();
...
...
So i tried making it a pointer
Code: Select all
CTimer* timer; // = new CTimer();
CTimer->setTimer(0)
CTimer->start();
...
...
EDIT: BTW when i use new it gives me the same unresolved externals.
So im a little perplexed .. is there a bug with CTimer or am i doing something wrong.
Any help is greatly appriciated.