alr92 Posted July 14, 2018 Share Posted July 14, 2018 Hi, recently i moved from Phaser 2 to Phaser 3 and i started some new project. Here is my problem: In Phaser 2 its easy to add text to sprite like this: var sprite = game.add.sprite(...); var button_style = { font: "27px Verdana", fontWeight: "bold", align: "center", fill: "#000000", stroke: '#ffffff', strokeThickness: 2 }; button_text = game.add.text(0, 0, 'blabla', button_style); sprite.addChild(button_text); After few days i am very tired of searching to get solution on Phaser 3 to add text on sprite. Can anybody help me please ? Thanks in advance. konato-debug 1 Link to comment Share on other sites More sharing options...
samme Posted July 14, 2018 Share Posted July 14, 2018 https://github.com/samme/phaser3-faq/wiki#how-do-i-add-a-child-sprite jdnichollsc and RussiSunni 2 Link to comment Share on other sites More sharing options...
Capitaine Herlock Posted July 14, 2018 Share Posted July 14, 2018 Really usefull this FAQ page, THX a lot samme Link to comment Share on other sites More sharing options...
alr92 Posted July 15, 2018 Author Share Posted July 15, 2018 Thank you very much my man ! Link to comment Share on other sites More sharing options...
Recommended Posts