Jump to content

TilingSprite using textures from Spritesheet


Recommended Posts

I was using TilingSprite for one of my backgrounds and it was working fine when the texture was coming from a single image. I then tried to make it so the texture was coming from a spritesheet, but now the whole stage is black when I try to add the TilingSprite to the display list.


The texture is base 2, but the image that the spritesheet is reading from isn't. Is this why it doesn't work, or does TilingSprite just not work with textures coming from a spritesheet?

Link to comment
Share on other sites



Yes tilling sprites only work with whole images i'm afraid. Its down to the the way it works at the moment..


Canvas - uses a pattern fill to achieve the effect

WebGL - uses a tilling texture which is why the limitation of POW2 images is there. It does mean that it is super fast in webGL because of it though :)


hope that helps!





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