Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: jannar85 on Wed 17/12/2008 02:30:45

Title: 'Game' is already defined / Parse error: unexpected 'Game'
Post by: jannar85 on Wed 17/12/2008 02:30:45
Hey! Looks like I'm back into programming again. Too bad for me, things has changed so much with AGS, I have to keep myself up to date now! ;o

I'm trying to set another speech font, instead of the normal one, but this error keeps coming up. It might just be some minor mistake, but.. I've tried it both in the Global script and the room script.

The code I'm using is:
Game.SpeechFont = eFontFont4; or Game.NormalFont = eFontFont4; and I've also tried using enum Game.SpeechFont = eFontFont4; without luck.

And yes, I have a font number 4, with outline font number 3.

Oh, and this probably belongs in.. Beginners Technical Questions.... Sorry, my bad.


It's hard getting back to AGS

Title: Re: 'Game' is already defined / Parse error: unexpected 'Game'
Post by: Gilbert on Wed 17/12/2008 02:41:54
Where did you put the lines? Are they inside a certain function?

Make sure you didn't put them outside a function.
Title: Re: 'Game' is already defined / Parse error: unexpected 'Game'
Post by: jannar85 on Wed 17/12/2008 02:53:07
My bad :P I've put them into a function now, and it works. I was about to go here and delete my embarrasing thread, but then I noticed your reply :P But thanks anyway :)