0
votes

I'm trying to make a 2d tile map and have run into some problems with seams appearing when layering tiles over one another. Here is a screenshot:

http://i.imgur.com/3zgcQ.png

I've tried several different ways to fix this including drawing in separate spritebatch.Begin()/End() blocks. Both layers are using the exact same code to get their position so they should be drawn directly over one another correct? Am I doing something wrong? I tried searching for an answer to this to no avail :( Any help would be greatly appreciated!

1
No code makes this tough to help with.Beanish

1 Answers

0
votes

Are you drawing on whole values? I mean Vector2(0,0) not Vector2(0.5f, 0.5f). If not you should round up.

This is better site to ask questions about game programming: https://gamedev.stackexchange.com/