Search the Community

Showing results for tags 'bitmapFont'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Coding and Game Design
  • Frameworks
    • Phaser
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Found 4 results

  1. Error BitmapFont on refresh

    Hi, i need help, i get this when i refresh my game 1/2: and ofc (game.js 50) console: and in game.js line 50: this.rep_un_txt = this.game.add.bitmapText(this.raw_gauche_center, 0, 'pixel', this.rep_un, 100); i load 2 bitmap font in my load.js: gameState.loadState = function(game) { }; gameState.loadState.prototype ={ preload: function(){ //assets this.game.load.image('barRep','./assets/bar_rep.png'); this.game.load.image('selecteur','./assets/selecteur.png') //fonts this.game.load.bitmapFont('pixel', './font/pixelBITM.png', './font/pixelBITM.fnt'); this.game.load.bitmapFont('pixel_o', './font/pixelBITM_o.png', './font/pixelBITM_o.fnt'); this.game.load.onLoadComplete.add(this.start, this); }, start: function(){ // i use this for fix error (cheap) this.fixtext = this.add.text(-10, -10, {font: "1px pixel", fill: "#ffffff"}); this.state.start('Game'); } }; I can't found a fix or see what i m doing wrong :/ Early Thanks
  2. 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!
  3. Hi, I am writing a simple game, which works fine, and when testing it (on a local wamp webserver) I very often reload the page in Firefox (44.0.2) to see the effect of the changes I make. That worked like a charm until I started to load a bitmapFont. Now, almost every time I reload (but not always), my sprites don't load. But if I "reload" by just typing enter in address bar, then everything loads fine. It's very strange. If I remove the bitmapFont loading, then everything gets back to normal. Other than that, everything works fine, the fonts display properly (if I don't refresh the page, that is). I don't get any errors whatsoever. It's pretty annoying tough. Any ideas how to fix this? Here is how I load my assets, just in case: (the order in which I load them doesn't seem to change anything to the issue). function preload(){ game.load.bitmapFont('desyrel', 'assets/fonts/desyrel.png', 'assets/fonts/desyrel.xml'); game.load.spritesheet('blocks','assets/blocks.png',blockSize,blockSize,nbBlockTypes+1); }
  4. Hey all, Right now, Ludei Cocoonjs doesn't load and parse XML files... Which means that we can't load bitmap font data. I am wondering if anyone else has figured out a workaround to this issue?