Closed vitorregisrr closed 6 years ago
console.log(game.cache.getBitmapFont('Arial'));
Do you mean is that a function call error ? I don't get what you call an API BUG
edited
game.add.bitmapText(200, 100, 'Arial', 'BitmapText', 64);
These arguments look correct, so make sure you're loading the bitmap font correctly and the font data file (.fnt or .xml) is correct.
You can check the game cache contents with
console.log(game.cache._cache.bitmapFont)
solved, ty
I'm justing calling a simple bitmap text on game, but i'm having the error, i have tested it on Mozila and Chrome.
TypeError: this._data
The code that i'm using is
game.add.bitmapText(200, 100, 'Arial', 'BitmapText', 64);
Is that a API BUG or i'm using it wrongly?