//	VER:	1.2
// create property container
tile = tile || {};
// settings
tile.tileSize = MAP.tileSize || 16;
// The offset makes the movieClip "stand" in the tile, with its feet at the bottom of it.
tile.offset = tile.offset || {}
tile.offset.x = 0;
tile.offset.y = 0;


// x
get_xTile = function(){
	return Math.floor(  _x /tile.tileSize  );
}
set_xTile = function( newValue ){
	_x = newValue *tile.tileSize +tile.offset.x;
}// set()
tile.addProperty("x", get_xTile, set_xTile);


// y
get_yTile = function(){
	return Math.floor(  (_y -tile.offset.y/2) /tile.tileSize  );
}
set_yTile = function( newValue ){
	_y = newValue *tile.tileSize +tile.offset.y;
}// set()
tile.addProperty("y", get_yTile, set_yTile);

