Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mport2004 on Wed 02/02/2005 00:34:20

Title: need help w/ a timing command [SOLVED]
Post by: mport2004 on Wed 02/02/2005 00:34:20
I'm making a small shooter game and i cant find a command that will make a character wait before doing another command and still let the other characters move.
:(
Title: Re: need help w/ a timing command
Post by: Scummbuddy on Wed 02/02/2005 03:24:23
we'll need to see your code to give the appropriate solution... but perhaps a simple "Wait(1);" may work.
Title: Re: need help w/ a timing command
Post by: Goot on Wed 02/02/2005 05:11:22
SetTimer and IsTimerExpired. Use SetTimer(int timer, # of loops to wait); and then in repeatedly execute:
if(IsTimerExpired(int timer)){
shooting script
}
if you don't understand, look up those commands in the manual.
Title: Re: need help w/ a timing command
Post by: mport2004 on Wed 02/02/2005 17:22:45
k ill try it thx.
Title: Re: need help w/ a timing command
Post by: mport2004 on Sat 05/02/2005 23:58:00
k It worked thanks.