Jump to content

Texture Error with JSONHash?


Recommended Posts


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");"



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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

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