Dreamcolt Posted October 11, 2016 Share Posted October 11, 2016 Hello everyone! I am a newbie H5 game maker who studying the Phaser! I have lots of problem that want to ask you the current problem is , the bitmapFont function : this.load.bitmapFont("fontname","bitmapfont.png","bitmapfont.xml");//how can I get the bitmapfont.xml ? I already have a font name for the first param and the bitmap png for the second param, but the third param that is a xml file I don't have it, how can I make a xml file? help me! Link to comment Share on other sites More sharing options...
rich Posted October 11, 2016 Share Posted October 11, 2016 It's explained in the documentation: http://phaser.io/docs/2.6.2/Phaser.Loader.html#bitmapFont Link to comment Share on other sites More sharing options...
nazimboudeffa Posted October 11, 2016 Share Posted October 11, 2016 it's like you put this line in the preload state game.load.bitmapFont("FontName", "assets/font.png", "assets/font.fnt"), then in create or play state you code this line game.add.bitmapText(320, 217, "FontNAme", "text", 24) Link to comment Share on other sites More sharing options...
Recommended Posts