HappinessSam Posted May 21, 2013 Share Posted May 21, 2013 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? Quote Link to comment Share on other sites More sharing options...
Mat Groves Posted May 21, 2013 Share Posted May 21, 2013 Hello! 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 effectWebGL - 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! cheers! Mat Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.