What with all additions?
Wouldn't some simple maths would help you a lot.
Is not the corner of a tile (assuming they're the same size)
PosX = ( tile_width * x ) PosY = ( tile_height * y )
If so, then to draw a grid a tile I would simply have do the following
for y = 0 to tiles_high for x = 0 to tiles_wide PosX = x * Tile.Width PosY = y * Tile.Height drawRectangle(PosX,PosY, Tile.Width, Tile.Wide) next next
This post has been edited by AdamSpeight2008: 04 May 2013 - 02:57 PM