iShellz Posted March 13, 2014 Share Posted March 13, 2014 The font I am using to keep score wont clear when the value is changed. Link to comment Share on other sites More sharing options...
Videlais Posted March 19, 2014 Share Posted March 19, 2014 @iShellz: Are you stating the text is not updating or that, after changing the name of the font, the text does not reflect this change? If it is the first, that could be a major problem. If it is the second, I'm pretty sure you can't rename fonts during execution without a call to the loading functions. Link to comment Share on other sites More sharing options...
iShellz Posted March 20, 2014 Author Share Posted March 20, 2014 @iShellz: Are you stating the text is not updating or that, after changing the name of the font, the text does not reflect this change? If it is the first, that could be a major problem. If it is the second, I'm pretty sure you can't rename fonts during execution without a call to the loading functions. It work fine in a non cocoonJS environment the problem is the text printing over the previous letters. Odd thing i notice. It will work as expected when the score reaches to chars. 0-9 stack on top of each-other but 10 displays perfect and they problem starts again. ** Weird Solution ** score++;text2.text = '10';text2.text = score.toString(); You set the text to have two slots, and for greater than 99 you would have to do three i'm guessing. Link to comment Share on other sites More sharing options...
Recommended Posts