jsalinas Posted March 5, 2014 Share Posted March 5, 2014 Hello, I've just started using this framework and it's fantastic, but I'm having a problem with the spritesheet function - I'm getting this error when I try to add a new spritesheet:Phaser.AnimationParser.spriteSheet: width/height zero or width/height < given frameWidth/frameHeightAnd the image is not showing on the game: This is how I'm adding the spritesheet:game.load.spritesheet('kamel', 'assets/sprite_kamel.png', 40, 69);The image is 274x69. Am I doing something wrong? Thanks. Link to comment Share on other sites More sharing options...
Heppell08 Posted March 5, 2014 Share Posted March 5, 2014 how many frames is there? The X/Y needs to be pretty exact to work. i believe the width setting is wrong because you're declaring a width of 40 but the image alone is 274. How do you get 40 out of 274? Link to comment Share on other sites More sharing options...
Recommended Posts