I want to use settimer in my game,but there is no windows and message loop in program,what shuold I do?
How can I use settimer in my game?
anybody can help me?THANKS
Look at the source file game.h in the PocketFrog/src/framework directory... a few lines from the top you'll see a message map... you should be able to pretty easily add a handler for the timer there.
However, I would think about whether you really need to use a timer or not... part of the point of PF is that everything you do is handled in your Gameloop()... what are you doing that you think that might not suffice?
However, I would think about whether you really need to use a timer or not... part of the point of PF is that everything you do is handled in your Gameloop()... what are you doing that you think that might not suffice?
fzammetti:
thank u very much,I want to record how long that the players completed the mission.
thank u very much,I want to record how long that the players completed the mission.
You might be better off calling PocketPC:GetTickCount() at the start and then at the end, the difference is the number of milliseconds in between. Divide by 1000 for the number of seconds, and so on.
fzammetti wrote:
You might be better off calling PocketPC:GetTickCount() at the start and then at the end, the difference is the number of milliseconds in between. Divide by 1000 for the number of seconds, and so on.
It's very useful,Thanks,I get it.