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
Is there a reason you don’t set the delay to 10000ms, and instead tell it to run 50 times with a 500ms delay? If this is because you want to be able to pause the delay, I would take an entirely different approach. Instead, I would put everything in an enterFrame listener and check getTimer [import]uid: 12108 topic_id: 7610 reply_id: 27075[/import]