Would this code work for a loading screen:
[code]module(…, package.seeall)
function new()
local localGroup = display.newGroup()
local loadingscreen = display.newImage(“loadingscreen.png”)
function game()
– Code for game here
end
timer.performWithDelay(200, game(), 1)
return localGroup
end
[/code]
Would the game function load whilst the loading image was displayed, and then be displayed when the function was called, or would it load when the function was called?
[import]uid: 116264 topic_id: 24778 reply_id: 324778[/import]