What I would like to be able to do is change the background image 10 seconds into gameplay. (I have a feeling this isn’t possible though).
Below is what I thought I would try (since I’m messing with the timer anyway), but to no avail.
Ideally I would also like to do this with a transition.to so that the new background actually slides up or gives the feel that the game is sliding down into the new background (should I be using sprites for this?).
Thanks in advance!
M
[code]
local t = display.newText( “0”, 15, 250, “ArialRoundedMTBold”, 50 )
t:setTextColor( 0, 0, 0 )
function t:timer( event )
local count = event.count
print( “Table listener called " … count … " time(s)” )
self.text = count
if count = 10 then
local sky2 = display.newImage( “bkg2.png” )
sky.x = display.contentWidth / 2
sky.y = 195
end
end
timer.performWithDelay( 500, t, 50 )
[import]uid: 42777 topic_id: 7610 reply_id: 307610[/import]