Sprite Size and Centering

I’m using spritepackedmanager and I was wondering if there was any fix for Sprite instances having dimensions of width/height = 1 and not having the json dimensions being read for the specific cell. I currently have to manually do something like entity.sprite.width = 96 / 104 which isn’t great since I’m dealing with so many cells with different dimensions.

In relation to that, I was wondering how I would keep the sprite centered as it changes from one cell to another of a different size. I tried applying an offset value which works but as the camera rotates 180 degrees, it’s even further off. Is there a better way?

Adding @Pryme8 the packed manager Daddy.

1 Like

Do you have a PG you could share with kind of a mock up of what you are doing?

Im pretty sure this is doable.

1 Like