ah okay, so with your code they appear at different spots but only 1 at a time and want them in 1 whole second to show how the table shows it. anyway here is the current code i have got.
[lua]
–Storyboard
local storyboard = require ( “storyboard” )
local scene = storyboard.newScene()
local count = 0
local mapArray = {
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 1, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 1, 0, 0, 0, 0, 1, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 1, 0, 0, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0, 0, 0, 0, 1, 0}
}
local image = display.newImage(“BlueSquare.png”)
local function showOrNot(number)
local val1 = math.floor(number/10) + 1
local val2 = number%10
local positionX = (val1 - 1) * image.width
local positionY = (val2 - 1) * image.height
image.x, image.y = positionX, positionY
if(val2 == 0)then val2 = 10 end
if(mapArray[val1][val2] == 1)then
image.isVisible = true
else
image.isVisible = false
end
end
timer.performWithDelay(1000,function() count = count +1; showOrNot(count) end,60)
function scene:createScene(event)
local group = self.view
background = display.newImage( “Background.png”, true)
background.x = display.contentWidth / 2
background.y = display.contentHeight / 2
group:insert(background)
end
function scene:enterScene(event)
local group = self.view
end
function scene:exitScene( event )
local group = self.view
end
function scene:destroyScene( event )
local group = self.view
end
scene:addEventListener( “createScene”, scene )
scene:addEventListener( “enterScene”, scene )
scene:addEventListener( “exitScene”, scene )
scene:addEventListener( “destroyScene”, scene )
return scene
[lua]