- Home /
How can i change the unit grid to pixel grid ?
Currently I'm working for a 2D game and using pixelated sprites. The canvas of the game is 256x192. I have a grid displaying units which, as i have read, equels 1 meter (whatever its measure unit). I need to figure out how i could switch this grid to pixel one, and i could turn the snapping on. And also how i could control the grid and set my own one as 2 pixels grid or 4 pixel for instance. Thank you for advance.
To put it simple, you can't. Units don't have dimension, they aren't foots, meters, or pixels, they are just numbers (An exception to this is gravity, there Units are meters). Just scale your sprite till it fits the grid.
Also, keep in count that a sprite's pixel size changes in world space, depending on it's resolution, rotation and scale, even the image's filter could modify it somehow.