Matching Game Text Formatting - Help Please!
One question: I am trying to re-format the Game Score and the Game Timer text.
I have added the following code in order to change the format of the game Score:
//setup up game score format
var tFormatScore:TextFormat = new TextFormat();
tFormatScore.font = "Arial";
tFormatScore.size = 20;
tFormatScore.bold = true;
// set up the score
gameScoreField = new TextField();
gameScoreField.x = 110;
gameScoreField.y = 10;
gameScoreField.textColor = 0xFFFFFF;
gameScoreField.width = 120;
gameScoreField.height = 40;
addChild(gameScoreField);
gameScore = 0;
showGameScore();
gameScoreField.setTextFormat(tFormatScore);
For some reason, once the second card is turned over and it check for a match the text goes back to the original format. This is probably pretty basic, but any help would be appreciated.
Thanks in advance!!
Michael
Copyright Gary Rosenzweig
