This create a 4x4 grid of rects instantly, how do I make them appear randomly in its positions one after the other until all of them are on screen?
[lua]
local tiles = {}
function createBoard()
for i = 1, 4 do
for j = 1, 4 do
tiles[i] = display.newRect(40, 40, 0, 0)
tiles[i].x = 50*(i-1)
tiles[i].y = 50*(j-1)
end
end
end
[/lua]