'Game' is already defined / Parse error: unexpected 'Game'

Started by jannar85, Wed 17/12/2008 02:30:45

Previous topic - Next topic

jannar85

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

Veteran, writer... with loads of unreleased games. Work in progress.

Gilbert

Where did you put the lines? Are they inside a certain function?

Make sure you didn't put them outside a function.

jannar85

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 :)
Veteran, writer... with loads of unreleased games. Work in progress.

SMF spam blocked by CleanTalk