Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Fri 02/05/2003 11:36:57

Title: How to make the character talk
Post by: on Fri 02/05/2003 11:36:57
I'm a real noob at coding but I'd really like to make a small adventure game.

I can't figure out how to make the character say something when he looks at a hotspot or tries to interact with it. I didn't find the answer from the manuals or this forum or I just didn't know what to look for so I'm posting it here. Thanks.
Title: Re:How to make the character talk
Post by: scotch on Fri 02/05/2003 12:26:05
You can't have missed it in the manuals..

but DisplaySpeech(CHARID, "Speech");
is used to display speech.

If you want to use it when the character looks at a hotspot you just go onto the hotspot in the editor, go into the interactions editor, click on 'Play looks at hotspot', choose Run Script and put something like DisplaySpeech(0, "Oh look, a tomato."); in the script.
Title: Re:How to make the character talk
Post by: SLaMgRInDeR on Sat 03/05/2003 16:33:19
or if u dont like scripting just do what scotch said exept select Display a message, and click new message, type  somthing like "oh, look a tomato" and click ok, have you read through the tutorial or the manual?
(   (   ( <( -_-)> )   )   )
Title: Re:How to make the character talk
Post by: on Sat 03/05/2003 17:21:12
Yeah I went trough the manual, but the message the displaymessage shows comes in a box and I wanted the character to comment things by speaking. It's not that I don't like coding, I'm just not so good at it yet  8) and scotch, thanks!
Title: Re:How to make the character talk
Post by: Scummbuddy on Sat 03/05/2003 18:29:21
theres a checkbox on the front options screen about displaying messages in text boxes.... select it to your hearts desire.
Title: Re:How to make the character talk
Post by: on Thu 08/05/2003 06:06:43
Do you have your character animation, and you have the sound? when character looks or gets or talks or whatever, play sound, play animation loop.
Title: Re:How to make the character talk
Post by: Femme Stab Mode >:D on Sat 10/05/2003 14:26:35
Go to interactions for the hotspot. There will be a drop-down list  for each different action(look, talk and interact). If you want your character to say something click on the action you want and select from the drop down list. Some of the actions that might help you are game-display message, the play sound one if it's a talkie.