Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Nine Toes on Mon 02/04/2007 17:55:41

Title: SetTalkSpeed?
Post by: Nine Toes on Mon 02/04/2007 17:55:41
I could have swore that I saw, in an earlier version of AGS, that there was some kind of scripting command that allowed you to set the speed of the character's talking animation (I think that's what it was for, anyway...).

I've been looking through the manual, but I can't seem to find it again.  Does anyone know what I'm talking about?
Title: Re: SetTalkSpeed?
Post by: Khris on Mon 02/04/2007 18:09:46
It's done by changing the global var game.talkanim_speed. (Default value is 5.)
Title: Re: SetTalkSpeed?
Post by: Nine Toes on Mon 02/04/2007 18:16:01
Awesome.  Thank you.
Title: Re: SetTalkSpeed?
Post by: JpGames on Tue 03/04/2007 05:24:24
Hi, its not my thread but i have another question about this.

Where i must declare that? In the global script, but where inside the global script?

Thanks

JpGames
Title: Re: SetTalkSpeed?
Post by: Nine Toes on Tue 03/04/2007 08:37:27
I suppose that you'd be able to set it just about anywhere, but the logical place to put it would be at the top of the global script, under "function game_start()".  That way, it gets set to the speed you want right at the beginning of the game.