Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ZZjZmoz on Wed 19/11/2003 21:08:43

Title: Unaffected Waiting
Post by: ZZjZmoz on Wed 19/11/2003 21:08:43
I want to be able to not have to wait to wait. In other words, how do I make something pause before running the next line of script, but only affect that local script AKA I want to be able to move while another character is in wait mode. how do I do this?

Example:
A crazy dude wants to kill me. He runs an animation of cocking his gun, and that takes 5 sec. of wait time. In this time, you have to run offscreen. I can't do this because wait waits for wait to stop waiting (repeat THAT 50 times). How can I get this to wait right?

Thanks 4 help.
Title: Re:Unaffected Waiting
Post by: on Wed 19/11/2003 23:05:19
Don't use a wait command for the guy cocking his gun.

Use a timer.  I don't know the proper commands off-hand but bascially you set a timer for how long the gun cocking action should take and when the timer expires the character will shoot the player if the character has not gone off screen.  Look up timers in the manual
Title: Re:Unaffected Waiting
Post by: ZZjZmoz on Wed 19/11/2003 23:33:15
thanx.