Jump to content

retroFont + CocoonJS


iShellz
 Share

Recommended Posts

@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

@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

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...