Hi
I’am using yours class and it’s great. Thanks.
I have fast question…
I have game with 30 levels… after level is complete I call a loadinglevel1… loadinglevel2 … file.
module(..., package.seeall)
function new()
local localGroup = display.newGroup()
local theTimer
local textObj
local showLoadingScreen = function()
textObj = display.newImage("loading.png")
local nextScreen = function()
director:changeScene("level2")
end
theTimer= timer.performWithDelay(1000, nextScreen, 1)
end
showLoadingScreen()
unloadMe = function()
if theTimer then timer.cancel( theTimer ); end
if textObj then
textObj:removeSelf()
textObj = nil
end
end
return localGroup
end
Everything works great, but the question is… If I have a 30 levels I have to make 30 files loadinglevel… ? Or maybe is a better solution …?
Thank you. [import]uid: 13156 topic_id: 5822 reply_id: 305822[/import]