STILL having issues with Load/Save

TouchTiltGamesTouchTiltGames Member Posts: 1,162
edited November -1 in Working with GS (Mac)
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!

Comments

  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Hey TSB, Send you my GS source? :0

    By the by...you're in Canada too? Wherebouts? I'm in NS but lived in BC for half my life. :)
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    Sorry it's still not working. I got ideas flowing through my head but you prob are going to be best off sending it to Tshirtbooth.
  • TouchTiltGamesTouchTiltGames Member Posts: 1,162
    Yeah I'm really close, I'm thinking it's because the level count check is somehow not recording to the World total...

    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.
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    That sounds like the problem is in your keys you may want to check them all for correct spelling
Sign In or Register to comment.