Posted By: elevationmind
how do I tell the program to use a function only every second - 01/19/13 18:47
Hi,
I want to save the postition of the player every second of the game into a txt file. This works when I use the function save(); in my main while(1) loop.
But it saves the postition every 20th or so of a second - much to much data for me.
How can I say "use save(); only every 1/2 sec"?
Thx in advance!
I want to save the postition of the player every second of the game into a txt file. This works when I use the function save(); in my main while(1) loop.
But it saves the postition every 20th or so of a second - much to much data for me.
How can I say "use save(); only every 1/2 sec"?
Thx in advance!