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 - rwarlion

Pages: [1]
1
Support / Orthographic camera and tilemap boundaries don't match up
« on: October 09, 2013, 08:33:20 am »
I'm probably missing something fundamental, and I'm sure there's a reason, but I'm curious about this:

I have an orthographic camera with 1 pixel per meter, using the bottom-left as it's origin.
I have a 1024x1024 tile map (16x16 pixels per tile, 64x64 tiles).
I'm trying to keep the camera within the boundary of the tile map's edges.
When both are positioned at (0, 0), the edges of the camera don't line up with the edges of the tile map. The camera is 8 pixels off, so in order to get them to line up, I need to offset my camera by (-8, -8).

Why does it behave like this? Is there some way to get them to line up without offsetting the camera, or is there a reason I shouldn't be doing this?

Pages: [1]