Jump to content

Texture Error: frame does not fit inside the base Texture dimensions


Smashman
 Share

Recommended Posts

Hi, I am receiving this error when I attempt to crop a Sprite. I'm using Phaser, but I've tracked the error down to Pixi.

 

The crop still works and if I remove the thrown error, my game works fine and the Sprite appears cropped as desired.

 

I'd like to know how I can fix this, however. It's bugging me, ya see.

 

Thanks

Link to comment
Share on other sites

A bit of a coincidence after replying to this thread. But I've started getting the same error when trying to just load a texture has a hash array in phaser. I've done this loads of times before without any trouble. I've used Texture Packer. Any ideas why I might be getting this error now? I've not even used the texture in my game yet.

Link to comment
Share on other sites

A bit of a coincidence after replying to this thread. But I've started getting the same error when trying to just load a texture has a hash array in phaser. I've done this loads of times before without any trouble. I've used Texture Packer. Any ideas why I might be getting this error now? I've not even used the texture in my game yet.

 

The 'allow rotation' and 'trim mode' settings need to be turned off or you might run into these errors if the texture size isn't big enough and it tries to do tricks to pack the images in that PIXI doesn't support (yet)

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.

Guest
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.

Loading...
 Share

  • Recently Browsing   0 members

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