Page 1 of 1

Question about timers

PostPosted: Tue Aug 23, 2005 12:40 am
by Joat_Mone
Does the timer count up, or down? I'm trying to get it where you can hold down a key, but the shot will happen only once every half a second. I was going to use a timer, and when the timer expired, a shot would happen. I just need to know what to look for :

<sudo code>
if (the timer reaches 0)
{
create the shot;
}

PostPosted: Tue Aug 23, 2005 12:50 am
by willg101
Timers count down, and typically repeat until destroyed.

PostPosted: Tue Aug 23, 2005 1:45 am
by Joat_Mone
Thanks (and quick too).