If I were to set up a board/grid of tiles like othello or chess or any other number of tiles, how do I flip them one by one in a sequence the best way?
[lua]
local tiles = {}
for i = 1, 8 do
for j = 1, 8 do
tiles[i] = display.newRect(0,0,32,32)
tiles[i].x = (i-1)*32
tiles[i].y = (j-1)*32
tiles[i]:setFillColor(math.random(44, 255), math.random(4, 255),math.random(144, 200), 255 )
end
end
function flipTileSequence()
– the chained flip transitions…??
transition.to()
end
flipTileSequence()
[/lua]
Sorry for any typos…writing this on my ipad 