Hello Guest

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - fluffipup

Pages: [1]
1
Support / Dimensions of a tk2dsprite
« on: August 17, 2013, 07:04:28 pm »
Hello

I am having some trouble with the correct methods to set the width/height of a sprite. The issue boils down to the fact the "scale" of the sprite is not related to the pixel dimensions (where 1 meter = 1 pixel).

Im not sure if this means my tk2dcamera is setup incorrectly or not?

But Im getting the bounds of an object and trying to resize a sprite to the bounds. So I am setting the "scale" of the tk2dsprite but the problem stems from the fact the sprite width and height is "420x100" and yet setting the sprite scale to 1:1 means the sprite is 320x320.

So, the two dont translate well. But I assumed pixel perfect (pixels-per-meter = 1) would ensure the sprite itself would be 420x100 in scale...? Or am I wrong..

Thanks

Pages: [1]