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]
Hi Ricardo…
I have to say that is working great. One loading file it’s a good solution but when I am in level 3 I can’t go back to level 1 because var (“level”) == 3 . hmmm
I think that I’am very close right now to make unlocking level’s system.
Thank you
Solved:
I just add :
settings:setVar (“level”,1 ) to button level 1 …
settings:setVar (“level”,2 ) to button level 2…
.
.
.
.
cool
Unlock level’s system and I am done [import]uid: 13156 topic_id: 5822 reply_id: 24918[/import]