Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: ln888 on Tue 27/08/2013 21:00:36

Title: look inventory item
Post by: ln888 on Tue 27/08/2013 21:00:36
I want my character say something when he looks at item in the inventory box.
I wrote:

Code (ags) Select

function iDaf_Look()
{
cYarden.Say("&41");
}


when the character finish talking the sign of the watch remains until it receives a click
i want that as soon as he finished speaking the watch disappear...
Title: Re: look inventory item
Post by: Lewis on Wed 28/08/2013 07:50:37
General Settings > Dialog > Allow speech to be skipped by which event? > Select one with 'timer'.
Title: Re: look inventory item
Post by: ln888 on Wed 28/08/2013 20:40:55
it's already on this option: "Mouse, keyboard or timer"
Title: Re: look inventory item
Post by: Ghost on Wed 28/08/2013 21:09:44
You're displaying a very short text, and may want to increase the minimum time text is displayed before the timer removes it:

MinimumTextDisplayTimeMs property
static int Game.MinimumTextDisplayTimeMs;
Gets/sets the minimum length of time that text is displayed on the screen. AGS automatically adjusts the length of time that text is displayed for depending on the length of the text (and you can customize this calculation with Game.TextReadingSpeed), but for very short statements like "Hi!", you might want the text to remain for longer.
This property is specified in milliseconds (1000 = 1 second), and is set to 1000 by default.


Title: Re: look inventory item
Post by: Khris on Wed 28/08/2013 21:16:38
There isn't even anything displayed here, it's just a voice speech ID.

I tested this myself and it works just fine for me; I can hear the sample, and as soon as it's finished, the clock cursor changes back to the usual one and the game continues.

Just to exclude the simple solution: does the voice file end properly? Or is there maybe a few seconds of silence at the end? Because obviously, AGS will only stop at the end of the sound file, regardless whether there's actually sound coming out of the speakers.