Jump to content

Text content not updating


darkstormSW
 Share

Recommended Posts

Hi all,

 

I am stumped by text that does not update.

 

I've added it in the create function with game.add.text, but whenever I try to update it (e.g. myTextThing.content = 'updated text'), it does not seem to update.

 

Appreciate any pointers in the right direction.

 

 

Link to comment
Share on other sites

Thanks Rich,

 

I'll have a look and double-check my code.

 

I was actually referring to the Making Your First Game with Phaser tutorial which uses scoreText.content to update the score.

 

Out of curiousity, is there are difference between setText and the .content method?

 

By the way, Phaser is awesome. Keep up the great work.

Link to comment
Share on other sites

  • 2 weeks later...
 Share

  • Recently Browsing   0 members

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