Countdown

Started by Gord10, Mon 19/01/2004 15:12:17

Previous topic - Next topic

Gord10

How can I add countdown to my game?
For example, if we can't shoot a monster in 2 seconds, we will die.
Games are art!
My horror game, Self

Ben

To start the timer:

SetTimer(timer,amount);

where "timer" is which timer you want to use (1-10) and "amount" is the number of loops to wait (40 loops = 1 second).

To check if the timer has counted down to zero, put this in the repeatedly execute script:

if(IsTimerExpired(timer)) == 1 {
 //Put code for what happens here..
}

Gord10

Games are art!
My horror game, Self

SMF spam blocked by CleanTalk