Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Raider on Fri 28/04/2006 23:14:25

Title: Speech font change
Post by: Raider on Fri 28/04/2006 23:14:25
Hey sorry for this newbie question but where do you put the command to change the font in the script?
i have read the manual and it just tells me what to write briefly but not where.
Can someone tell me what to write and where
Again I apologise for this dumb question but it has got me stuck.
Thanks
Title: Re: Speech font change
Post by: Candle on Fri 28/04/2006 23:30:42
You cannot call a function outside of any functions (like in the script header say for example). You can only do simple stuff like variable declations outside of a function.

Edit the global script, and look for the function game_start(), add your code inside of that function, like this:


function game_start() {
  // called when the game starts, before the first room is loaded
  SetSpeechFont (3);
}

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=21585.0
Title: Re: Speech font change
Post by: Raider on Fri 28/04/2006 23:45:05
Yep, thank you. That did it.  :P
Title: Re: Speech font change
Post by: Candle on Fri 28/04/2006 23:47:56
Your most welcome.