My image appears, and i put the following code in,
(that is only a little section of the code) I want to know, how to make it so that, after two seconds, the image disappears, and then the Director Class transitions to level1. Please tell me how. Thanks.
[code]
local mainGroup = display.newGroup()
local image = display.newImage(“loading.png”)
image.x = display.contentWidth/2
image.y = display.contentHeight/2
local function main()
mainGroup:insert(director.directorView)
local tmr = timer.performWithDelay(2000, main, 1)
director:changeScene( “level1” )
return true
end
[/code] [import]uid: 19768 topic_id: 6642 reply_id: 306642[/import]