Gaps between sprites when camera moves.
by Joel Bells · in iTorque 2D · 12/15/2010 (4:23 pm) · 3 replies
I am in the process of constructing a series of levels for a 2d platformer (I am using iPSK if that makes a difference, though I believe this issue stems from iTorque).
When The player character moves around causing the camera to move, the outermost edges of sprites and tilemaps "jitter" a single pixel creating 1 pixel gaps between sprites that are supposed to be aligned together.
These gaps show off every seam in the level.
In the Game Builder they are perfectly aligned and things look great (snapped to grid).
Is this an issue with the emulator? The way I'm building my levels? A render setting? I'm at a loss.
When The player character moves around causing the camera to move, the outermost edges of sprites and tilemaps "jitter" a single pixel creating 1 pixel gaps between sprites that are supposed to be aligned together.
These gaps show off every seam in the level.
In the Game Builder they are perfectly aligned and things look great (snapped to grid).
Is this an issue with the emulator? The way I'm building my levels? A render setting? I'm at a loss.
#2
When my character stands still, the edges stop "flickering" but depending on where I stopped, the edges of the tile maps may or may not be aligned.
Looks broken.
02/04/2011 (7:16 pm)
That not the kind of gap I mean. What I mean is, if there are 2 tilemaps beside each other, there is a visible 1-pixel gap that "flickers" between them when I run the game on my pc.When my character stands still, the edges stop "flickering" but depending on where I stopped, the edges of the tile maps may or may not be aligned.
Looks broken.
#3
02/04/2011 (10:49 pm)
Don't use 2 tilemaps beside each other. Either use 1 bigger tilemap, or overlap them slightly. I suspect the only way to ensure there's no gaps between objects when the camera moves is to make them part of the same tilemap so that they move together.
Torque 3D Owner Ashley Leach