Hi there! I'm trying to make a top-down shooter game but I'm having trouble with my wall sprites. They're 32x32 on a 32x32 grid, and I've got snap to grid turned on, and yet when I run the game I can see small little gaps between the tiles and nothing i've tried has made them go away. Any idea what's causing this and how I can fix it? I've attached a cap file. The wall tiles are along the top of the screen.
Confirmed, you should report it as a Bug!
I tested in chrome and FF and i can't see the white gaps across the top
I can see them slightly in the editor though, but 'view grid' was enabled and the grid has light and dark pixels.
a few other things though..
If you put one of the wall blocks on their own a bit lower, and zoom very close.. you can see that it is not totally flush with the black lines of the tiled background along the top and left edges
you should make the tiled backgrounds hotspot top left.. it works okay at sizes that are multiples of the grid*2, like the size of the window, but if it was any other size you would have alignment problems.
also setting the sampling mode to point means you can do things like have solid colour 2x2 sprite and stretch it to any size whilst retaining the hard pixel edges
Thanks everyone! It turns out even though I was using the paintbucket to fill the sprite, it was feathering the edges a bit so it wasn't solid black. I've fixed and it's looking proper now.
Also thanks for the suggestions keepee! I originally had the background hotspot at the top-left and changed it to see if it would make a difference with the issue I was having, but it didn't so I'm going to switch it back.
Develop games in your browser. Powerful, performant & highly capable.
ah i noticed that.. but I thought it was an intentional 'bumping out' of the textures..
if you are using just plain black sprites, you can stretch a single one out to cover the whole wall along the top. Saves on time and objects
just make sure you have sampling set to 'point' to keep it crisp .. if its still blurry try cloning the object, move all the events to the new one and delete the old one.