Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: JudgeDeadd on Wed 10/09/2003 14:44:01

Title: Timer interaction help
Post by: JudgeDeadd on Wed 10/09/2003 14:44:01
 ??? Have you played Apprentice? There is a moment there where Master needs some time to walk to the door, so you can quickly hide. I'd want to implement something similar. How to do it?
Title: Re:"I'm coming, I'm coming..."
Post by: Ishmael on Wed 10/09/2003 14:50:33
First of all, descriptive subject, right?

You can do this with timers. Look in the manual. To get speech use DisplaySpeechBackground().
Title: Re:Timer interaction help
Post by: Gregjazz on Fri 12/09/2003 03:06:56
Umm... Yeah, well...

I didn't use a Timer. In fact, I didn't know they existed until AFTER I scripted my own timer function.
Title: Re:Timer interaction help
Post by: JudgeDeadd on Fri 12/09/2003 13:27:49
"to get speech"? I didn't asked about this.
Title: Re:Timer interaction help
Post by: Gregjazz on Fri 12/09/2003 22:19:12
He means the speech in the background. This is not irrelevant to timers. In fact, the "DisplaySpeechBackground" is quite useful.
Title: Re:Timer interaction help
Post by: Moresco on Sun 14/09/2003 07:04:26
You can use timers for lots of things.  Check the syntax for SetTimer under Game/Global functions in the Help Contents.

Oh and DisplaySpeechBackground doesn't seem to delay anything, it returns right back to the game, so I am also confused how that is useful?? Maybe a full-example is in order. :)
Title: Re:Timer interaction help
Post by: Ishmael on Sun 14/09/2003 20:16:26
I just meant that when using DisplaySpeechBackground for something like the master saying "Coming", you can start hiding allready when he says it...
Title: Re:Timer interaction help
Post by: Moresco on Sun 14/09/2003 20:30:54
Ah gotcha, that cleared things up thanks.  ^^