Jump to content

game.make.text can't setText - a bug?


trueicecold
 Share

Recommended Posts

In the following example found Here,

The text will not update inside the bitmap, unless I recreate this.totalScoreText using game.make text again...
Is this a bug? if I use setText regularly, and use game.add.existing(this.totalScoreText), it works ok...

 

SOLVED:

Thanks to rich, it was made clear that game.make doesn't add to the update loop, so setText won't work, unless I add the immediate flag:
text.setText("Sometext", true);

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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