Question about timers

Non-platform specific questions.

Question about timers

Postby Joat_Mone » Tue Aug 23, 2005 12:40 am

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;
}
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score

Postby willg101 » Tue Aug 23, 2005 12:50 am

Timers count down, and typically repeat until destroyed.
http://www.wish-games.com
Old betas now available!!
User avatar
willg101
 
Posts: 473
Joined: Thu Dec 16, 2004 12:08 am
Location: West Michigan
Score: 5 Give a positive score

Postby Joat_Mone » Tue Aug 23, 2005 1:45 am

Thanks (and quick too).
Joat_Mone
 
Posts: 37
Joined: Mon Mar 01, 2004 9:13 pm
Score: 0 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest