Posted By: DestroyTheRunner
Second/Time question - 08/25/08 21:01
I know its noobish... but I searched over the forum but coundt find it.
Simple thing, I want add 1 to the variable every second BUT without using stuff like, sleep or wait(-1) or total_secs.
here´s the example:
I´ve tried stuff like 'seconds = time_step/16' and 'seconds = time_frame/16' but its not acuratte at all.
help?
Simple thing, I want add 1 to the variable every second BUT without using stuff like, sleep or wait(-1) or total_secs.
here´s the example:
Code:
var seconds; ... while(1) { seconds += ?? ; wait(1); }
I´ve tried stuff like 'seconds = time_step/16' and 'seconds = time_frame/16' but its not acuratte at all.
help?