First off thank you,
I have been pulling my hair out trying to figure out what I am doing wrong. I am trying to change the font in my game (I already have one imported) So I look around and learn I need to use the code
static FontType Game.NormalFont = eFontMyFont;
in the global script.
But if I try to run the game i get the "Variable 'Game' is already defined" error message on this line of code. I cannot find where Game has already been defined. I just started this project so I know that I haven't defined it at least.
Thank you again!
EDIT: Thank you everyone! What I learned I needed to do was to put my code in the game.start function. (also didn't need static FontType)
I have been pulling my hair out trying to figure out what I am doing wrong. I am trying to change the font in my game (I already have one imported) So I look around and learn I need to use the code
static FontType Game.NormalFont = eFontMyFont;
in the global script.
But if I try to run the game i get the "Variable 'Game' is already defined" error message on this line of code. I cannot find where Game has already been defined. I just started this project so I know that I haven't defined it at least.
Thank you again!
EDIT: Thank you everyone! What I learned I needed to do was to put my code in the game.start function. (also didn't need static FontType)