mamwalter Posted April 4, 2014 Share Posted April 4, 2014 I have 2 atlas JSON Array export from TexturePacker. The first one is 2048x2048 and load perfectly, the second is 512x2048 and doesn't load:this.game.load.atlas('atlas_interface', 'assets/images/textures_interface.png', 'assets/images/textures_interface.json');Texture Error: frame does not fit inside the base Texture dimensions [object Object]if i withdraw some images from my texture to get a square (1024x1024), loading works. Atlas texture has to be a square ? edit: i use Phaser 2.0.2 Link to comment Share on other sites More sharing options...
rich Posted April 4, 2014 Share Posted April 4, 2014 No they don't have to be square. The error you're getting isn't because the overall image isn't square, it's because an image defined in the json file doesn't match the png it was given. Have you got texture packer set to rotate images to fit them in? If so that will break it. Link to comment Share on other sites More sharing options...
mamwalter Posted April 4, 2014 Author Share Posted April 4, 2014 yes "allow rotation" was enabled. It works if i disable the rotation. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts