Jump to content

setTexturePriority get in IOS Warning: because there is no available texture space


Philippe
 Share

Recommended Posts

Hi,

I try to use Multitexture, but I get this log in IOS (Iphone 6)

  • [Warning] setTexturePriority: Image "sAdivinhaAi" was given textureIndex=0 because there is no available texture space (0). (phaser-no-physics.min.js, line 3);
  • [Warning] setTexturePriority: Image "sKeyboard" was given textureIndex=0 because there is no available texture space (-2048). (phaser-no-physics.min.js, line 3);

 

And some textures get framed, taken from another BitmapFont

Thansk,

preload() {
    game.load.atlasJSONHash('sAdivinhaAi','sAdivinhaAi.png', 'sAdivinhaAi.json');
    game.load.atlasJSONHash('sKeyboard', 'keyboard.png', 'keyboard.json');

    // Fontss
    game.load.bitmapFont('Open', 'fonts/Open.png', 'fonts/Open.fnt');

}

create() {
     var enabled = game.renderer.setTexturePriority(['sAdivinhaAi', 'sKeyboard']);
     if (enabled) {
         this.game.cache.getBitmapFont('Open').base.textureIndex = enabled.length + 1;         
     }
}
Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...