Newbie Asks: How To Timers and count time and random time
Posted: Tue Apr 17, 2012 1:52 pm
Basically
1. How do i set a timer to start counting when the game starts. And if i decide to display the time, how do i display it on the screen?
2. How do I start counting time at the begininning of the game and keep track of it so can make things happen at random times OR at desired times?
For example: Game starts...then at random time, it starts raining
For example: Game Starts...you pass by a bomb, the bomb is activated...so the timer starts counting down( this timer is not displayed on screen), and once it's 0, the bomb explodes.
*****
So in other words, how do i keep track of a total time of the game. And then how do i keep track of doing other things using timers.
1. How do i set a timer to start counting when the game starts. And if i decide to display the time, how do i display it on the screen?
2. How do I start counting time at the begininning of the game and keep track of it so can make things happen at random times OR at desired times?
For example: Game starts...then at random time, it starts raining
For example: Game Starts...you pass by a bomb, the bomb is activated...so the timer starts counting down( this timer is not displayed on screen), and once it's 0, the bomb explodes.
*****
So in other words, how do i keep track of a total time of the game. And then how do i keep track of doing other things using timers.