Wenell Posted July 26, 2016 Share Posted July 26, 2016 Hello, I use Phaser 2.3 for a game and I have a problem that I don't understand. This is specific to Mozilla Firefox (I don't have this problem with Chrome or Safari). I loaded a xml scene and I have one element (a sprite with animation) which doesn't have a texture. When I inspected with log, I saw my sprite object but its texture width and height values were 0. I have my baseTexture value correct with the right texture source. And the source is loaded in firefox ressources. Sometimes everything works fine and sometimes I have this problem. Maybe it's because my computer is too slow ? I don't understand. Have you any idea on how to explain this issue ? Link to comment Share on other sites More sharing options...
bdekk Posted July 26, 2016 Share Posted July 26, 2016 Could you share some code? Next to that, might it be that the height / width are 0 when you check the log because the textures are loaded Asynchronous? Perhaps there is some kind of onLoad method which you can check, to make sure that the texture is loaded (and perhaps scaled)? Link to comment Share on other sites More sharing options...
Recommended Posts