vmars316 Posted January 28, 2016 Share Posted January 28, 2016 Hello & Thanks , I find the above format in some of the Phaser examples But This one isn't working for me . Pls, what is the 'Proper format' for: scoreLiesText = game.add.text(0, 0,"Score: 0", fill: "#FFF"); ? Thanks Link to comment Share on other sites More sharing options...
AzraelTycka Posted January 28, 2016 Share Posted January 28, 2016 I don't know which example you checked, so try this one. You can also check the official phaser docs, there you can see what yo uare looking for. vmars316 and Batzi 2 Link to comment Share on other sites More sharing options...
Batzi Posted January 28, 2016 Share Posted January 28, 2016 (edited) In addition to what Azrael said. This is how I would do it (style variable taken from example Azrael provided) var style = { font: "bold 32px Arial", fill: "#fff", boundsAlignH: "center", boundsAlignV: "middle" }; var textObj = game.add.text(x,y,text,style); Edited January 28, 2016 by Batzi Add clarification vmars316 1 Link to comment Share on other sites More sharing options...
vmars316 Posted January 28, 2016 Author Share Posted January 28, 2016 Ah , great , Thanks Guys. Link to comment Share on other sites More sharing options...
Recommended Posts