2D Toolkit Forum
2D Toolkit => Support => Topic started by: ilyahan on July 09, 2013, 01:13:01 pm
-
I have a sprite which size is 14x14 px. How can I set size of this sprite in pixels?(I use tk2dCamera)
My code:
scale.x=newSize.x/14f;
scale.y=newSize.y/14f;But it doesn't work :(
-
If you use the tk2dCamera, and your sprite is set to "Use tk2dCamera", the sprite will already be pixel perfect. If its pixel perfect to start with, your code should work.