GAveryWeir Posted January 21, 2014 Share Posted January 21, 2014 If I try to resize a TileSprite after instantiation it doesn't work. When I set width and height, it properly changes the number of times my 32x32 texture tiles over the TileSprite, but the actual bounds of the TileSprite don't change. In other words, a 128x128 TileSprite stays that size even if I set its width and height to 256. Its texture just scales down. Am I missing something? If this is a bug, is there a good workaround? Link to comment Share on other sites More sharing options...
ChubbRck Posted December 15, 2015 Share Posted December 15, 2015 I'm also having weird issues resizing tilesprites. (Basically, they won't resize when I change their width and height properties). Is this a known bug? Link to comment Share on other sites More sharing options...
Batzi Posted December 15, 2015 Share Posted December 15, 2015 What if you scale the sprite instead?sprite.scale.setTo(2,2) Link to comment Share on other sites More sharing options...
drhayes Posted December 15, 2015 Share Posted December 15, 2015 From the docs:Remember: use tilePosition to scroll your texture and tileScale to adjust the scale of the texture - don't resize the sprite itself or make it larger than it needs. Link to comment Share on other sites More sharing options...
Recommended Posts