# Isometric tiling issue

**URL:** <https://forum.kirupa.com/t/isometric-tiling-issue/329944>\
**Category:** Uncategorized\
**Created:** [November 10, 2012, 11:17pm UTC](https://forum.kirupa.com/t/isometric-tiling-issue/329944 "2012-11-10T23:17:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![reppinfreedom](https://avatars.discourse-cdn.com/v4/letter/r/ecae2f/32.png) [@reppinfreedom](https://forum.kirupa.com/u/reppinfreedom)\
**Post date:** [November 10, 2012, 11:17pm UTC](https://forum.kirupa.com/t/isometric-tiling-issue/329944/1 "2012-11-10T23:17:38Z")

</div>

Sorry if this is a double post, delete my facebook account post if it appears. I recently changed my isometric tiling code… I’m kind of mystified by whats up with this formula? Working formula… (Sorry, forgot the vbcode for AS3, anyone remind me what it is again? Thanks!)

public class isoMath  
{  
public static function colRowToPoint(Col:int, Row:int, tileSizeX:int, tileSizeY:int):Point  
{  
var xyPoint = new Point();  
xyPoint.x = (Col - Row) \* (tileSizeX / 2 + 1);  
xyPoint.y = (Col + Row) \* (tileSizeY / 2);  
return xyPoint;  
}  
}

![](http://designermichael.com/share/formula2.png)

Formula that I thought would work…  
xyPoint.x = (Col - Row) \* (tileSizeX / 2); // Notice no +1  
xyPoint.y = (Col + Row) \* (tileSizeY / 2);

Notice the edges are not aligned properly in this one… ![](http://designermichael.com/share/formula1.png)  
Here is the tile for you to inspect… Yes I am sure my input variables are perfectly correct. ![](http://designermichael.com/share/grassTileSmall1.png)

//Game tile size  
private var tileSizeX:int = 90;  
private var tileSizeY:int = 46;
