How to create transition sequences?

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 :slight_smile:

Just thinking about othello, you need two images, the black side an the white side. There will be probably. Be two transitions… Change each images xScale to 0, then move the bottom image :toFront(). Then scale the xScale back to 1.0. The other way would be to use sprites with multiple frames.

Just thinking about othello, you need two images, the black side an the white side. There will be probably. Be two transitions… Change each images xScale to 0, then move the bottom image :toFront(). Then scale the xScale back to 1.0. The other way would be to use sprites with multiple frames.