2D Toolkit Forum
2D Toolkit => Support => Topic started by: dogboydog on March 07, 2014, 08:42:42 pm
-
Hi,
I'm starting a new project and trying to set it up to make the code simpler. It's going to be a puzzle game with a grid system, and I'd really like it if I could find a way to line up square sprites to take up 1x1 units of length. I know it'll be a combination of setting the ortho size of a sprite collection and the pixel size of the original sprite files, but I'm not sure how I can easily line the two up. Is there some kind of formula/principle that tells me how to do this?
-
check how many pixels are in your puzzle piece, then set up pixels per meter to be the dimensions of the texture. EG. if your tile is 32x32 pixels in size, set pixels per meter to 32. 1 world unit will be 1 tile size exactly.
-
Thanks a lot. For some reason I missed that option.