Levels Lock/Unlock

MAC4TECHMAC4TECH Member Posts: 10
edited November -1 in Working with GS (Mac)
I am doing a "level select" menu for my game, everything works fine, it locks the levels and unlock them. But when I close the app from the multitasking bar, I need to restart all the levels that I previously already finished. (It doesn't save them when I close the app)

What's the best way to lock and unlock levels so it can save the unlocked levels even if I close the app?

Thanks in Advance.

Comments

  • olster1olster1 Member Posts: 396


    From Vmlweb.

    I just stored it in a real attribute called LevelsUnlocked.
    When you got to the level select screen the each number checks if LevelsUnlocked is higher than the number it is. If it is higher it'll destroy itself.
    Then every time you unlock a new level it adds 1 to that number.

    You save that LevelsUnlocked attribute using the save attribute rule. (use the video above) Make sure you load the attributes also! (It will make more sense when you watch the video.
Sign In or Register to comment.