Hello Guest

Author Topic: Tiled Sprite ignoring anchors on transparency  (Read 3857 times)

Eris

  • Newbie
  • *
  • Posts: 1
    • View Profile
Tiled Sprite ignoring anchors on transparency
« 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

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Tiled Sprite ignoring anchors on transparency
« Reply #1 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.