2D Toolkit Forum

2D Toolkit => Support => Topic started by: Eris on August 04, 2014, 10:33:23 pm

Title: Tiled Sprite ignoring anchors on transparency
Post by: Eris on August 04, 2014, 10:33:23 pm
Hello,

I'm trying to swap out one tiled sprite with another tiled sprite, but the anchors from my sprite don't matter when it is used in the tk2dTiledSprite.  What ends up happening is that one sprite's non-transparent pixels extend to the bottom of the sprite while the other sprite's non transparent pixels don't start till much higher up the sprite.  The anchors for both sprites are at the bottom, but the sprite with transparency ends up starting at the bottom of its non-transparent pixels no matter where the anchor is placed.  Is this intended functionality?  Is there a way around it?

thanks
Title: Re: Tiled Sprite ignoring anchors on transparency
Post by: unikronsoftware on August 05, 2014, 07:10:35 pm
This is intentional - the additional complexity just gets in the way of performance for a very rare use case. You're the first person thats asked for this, as far as I remember. You can disable trimming on the source sprite to work around it.