Jump to content

Texture Error with JSONHash?


rmbennin
 Share

Recommended Posts

Hello,

I've looked all over for an explanation as to why I'm getting this error:

 

      "Texture Error: frame does not fit inside the base Texture dimensions [object Object]".

 

I believe it is happening from loading in my sprite for my game, but I'm not sure. I used Flash to create a JSON and a PNG file for the sprite, and they both look valid. I'm using this code to load in the sprite: 

 

      "game.load.atlasJSONHash("chef", "assets/sprites/chef-spritesheet.png", "assets/sprites/chef-spritesheet.json");"

 

Thanks!

Link to comment
Share on other sites

For errors like this could I suggest you upload the png + json file here so others can take a look? As there are a few different things it could be (texture size too large, json array not has, UTF16 encoded, etc).

 

I actually figured it out... Well, by figured it out, I mean suddenly it started working without me changing any code. Not sure what was going on... But thank you!

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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