hmm it seems when i try and print tx from this bit of code there is an error but otherwise its fine, am i missing something
local tiles = {nil,nil,nil,nil} for i = 1,4 do tiles[i] = {nil,nil,nil,nil} end local function makeTile (x,y,n) local tile = display.newRoundedRect( 0, 0, 64, 64, 10 ) tile:setFillColor( 0,0,1 ) tile.x = tilex(x) tile.y = tiley(y) tile.tx = x tile.ty = y tile.level = n tile:scale( 0.01, 0.01 ) transition.to(tile, {time=300, xScale=1, yScale=1}) tiles[y][x] = {tx = x,ty = y } end print( tiles[1][1].tx ) makeTile(1,1,1)