Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Sun 18/05/2003 17:03:59

Title: Sound problems
Post by: on Sun 18/05/2003 17:03:59
Hi there!

Can anybody tell me how to use sounds?
For example in the background or speech when i want
to talk to a character in the game...
I've especially problems in loading sounds
Like the  Room Editor->Settings->Play Music on room load...which number do they wanna have!?

I hope you help me,
thanks,
Michael
Title: Re:Sound problems
Post by: on Sun 18/05/2003 17:16:26
Hello!

Sorry, it's me again :-) I found out the mistake i made sorry!
But instead i've another question. I want to make the opportunity to pick up a character and even when i have the character in my inventar the possibility to go on talking to him.
Title: Re:Sound problems
Post by: Scorpiorus on Mon 19/05/2003 21:08:33
QuoteI want to make the opportunity to pick up a character
To pick up a char you need to make an inventory item which represents your character. Then add next code into the character's interaction:


character[<name>].room = -1; // remove the char from the screen.
AddInventory(<char item>);   // add inv. item representing the char.


Quoteand even when i have the character in my inventar the possibility to go on talking to him.
Here you should make some interaction with inventory item which runs a dialog you want. Of course you need to place the real character into the current room in order to be able to talk to him. After the dialog has been finished you may remove the character again.

-Cheers