Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: heirofmaul on Mon 17/03/2008 23:52:52

Title: Switching subtitles on and off?
Post by: heirofmaul on Mon 17/03/2008 23:52:52
Sorry if this has already been covered (didn't see it anywhere) or if it's somewhere in the BFAQ (which seems to not exist anymore ???).

Would it be rediculously difficult to make it an option for the player to switch between having subtitles on and off? Would you have to go through and lay in an "if" statement for practically every line of dialogue, or is there a trick for making it much simpler throughout the whole game?

Thanks!
Title: Re: Switching subtitles on and off?
Post by: Pumaman on Tue 18/03/2008 00:24:41
Look into the SetVoiceMode (http://www.adventuregamestudio.co.uk/manual/SetVoiceMode.htm) command.
Title: Re: Switching subtitles on and off?
Post by: heirofmaul on Tue 18/03/2008 01:44:48
And do you think setting up a GUI option that changes this command at any point in the game will work fine?
Title: Re: Switching subtitles on and off?
Post by: Khris on Tue 18/03/2008 06:26:26
Yes.
Title: Re: Switching subtitles on and off?
Post by: Dualnames on Fri 21/03/2008 09:15:27
Just to help you more.. let's say you have a button in a GUI whatever that is. on the thunder part of the interaction editor having selected the button of course open the on_click script of the button or either double click on it to avoid all that fuss and put the code
SetVoiceMode(//whatever mode you want);