STILL having issues with Load/Save
TouchTiltGames
Member Posts: 1,162
Sigh...I'm really close but this is still not working for me
To recap:
3 Worlds with 10 levels each
You can play any level but must beat all 10 to unlock World 2 and World 3
My Menu Structure Hierarchy:
Logo/Intro Screen
Main Menu
-Play
-Level Select
-World Select Screen
-World 1 Levels
-World 2 Levels
-World 3 Levels
-How to Play
What IS working is the load/save for remembering if the level was beat, and it places a check graphic over it. That works GREAT.
What isn't working is the World 2 and 3 lock/unlock. I can unlock World 2, but then I play a few levels in World 3 and go back to the World Select screen and World 2 is locked again. It's one or the other but not both.
On a level instance actor after you beat it:
World 1
game.noenemy = 0
game.level1 to: 1
Save: game.level1 Key: level1ok
Constrain: game.world1 to: game.level1+game.level2+game.level3 etc....
Save: game.world1 to: world1ok
World 2
game.noenemy = 0
game.level1b to: 1
Save: game.level1b Key: level1bok
Constrain: game.world2 to: game.level1b+game.level2b+game.level3b etc....
Save: game.world2 to: world2ok
On the intro screen (tried the main screen too) I have the loads:
world1ok To: game.world1
world2ok To: game.world2
Finally, on the Level Select screen (this is working just great)
game.level1= 1
self.color.alpha 1
Load: level1ok - game.level1
Thanks again to Tshirtbooth and tenrdrmer for the previous help!
To recap:
3 Worlds with 10 levels each
You can play any level but must beat all 10 to unlock World 2 and World 3
My Menu Structure Hierarchy:
Logo/Intro Screen
Main Menu
-Play
-Level Select
-World Select Screen
-World 1 Levels
-World 2 Levels
-World 3 Levels
-How to Play
What IS working is the load/save for remembering if the level was beat, and it places a check graphic over it. That works GREAT.
What isn't working is the World 2 and 3 lock/unlock. I can unlock World 2, but then I play a few levels in World 3 and go back to the World Select screen and World 2 is locked again. It's one or the other but not both.
On a level instance actor after you beat it:
World 1
game.noenemy = 0
game.level1 to: 1
Save: game.level1 Key: level1ok
Constrain: game.world1 to: game.level1+game.level2+game.level3 etc....
Save: game.world1 to: world1ok
World 2
game.noenemy = 0
game.level1b to: 1
Save: game.level1b Key: level1bok
Constrain: game.world2 to: game.level1b+game.level2b+game.level3b etc....
Save: game.world2 to: world2ok
On the intro screen (tried the main screen too) I have the loads:
world1ok To: game.world1
world2ok To: game.world2
Finally, on the Level Select screen (this is working just great)
game.level1= 1
self.color.alpha 1
Load: level1ok - game.level1
Thanks again to Tshirtbooth and tenrdrmer for the previous help!
Comments
By the by...you're in Canada too? Wherebouts? I'm in NS but lived in BC for half my life.
The above seems to be working now, the problem that has sparked now is that if you do..say 6 of the 10 levels, turn off the game and go back, it doesn't remember that you did 6. IF you do all 10 in one play, it will remember.