Hi,
I'm working on a map editor.
I have tiles of 128x128 to place in a grid.
I'm calculating the positions for the tiles from the mouseposition, so while dragging a tile, it snaps to the grid.
I've done it like this: int tile_x = mouse_x/GRID*GRID. (kind of normalizing it to the grid)
Now when I rotate the tiles I get gaps between some of them, is that because of the position? What would be a smarter way to do it?


Edit: Just tested on an other computer, and I dont have any gaps here. Doesn't make sense to me :-(