Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Problem with spritetesheet


jsalinas
 Share

Recommended Posts

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/frameHeight

And the image is not showing on the game:

 

post-7352-0-18413900-1394037662.png

 

 

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

 Share

  • Recently Browsing   0 members

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