darkstormSW Posted May 1, 2014 Share Posted May 1, 2014 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 More sharing options...
rich Posted May 1, 2014 Share Posted May 1, 2014 If in doubt, check the examples http://examples.phaser.io/_site/view_full.html?d=text&f=update+text.js&t=update%20text Link to comment Share on other sites More sharing options...
darkstormSW Posted May 1, 2014 Author Share Posted May 1, 2014 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 More sharing options...
Jordan Davis Posted May 10, 2014 Share Posted May 10, 2014 (edited) Hi, I am having the exact same problem. I have changed the code around and can't get it to work.Did you ever find a solution? Figured it out! Edited May 10, 2014 by Jordan Davis Link to comment Share on other sites More sharing options...
Recommended Posts