Help with level unlock

Hello, I need some help here..
My game have level unlock, so, for go to level 2, you need to finish level 1. If you dont make this, the level 2 are locked, and cannot be played. Okay, in the theory all works, and in practice not much. Whats happens is: you play the game, ok, unlock 10 levels for example, but if you hit the home button of iPhone, and back after for game, your game are reseted!
How can I solve this?
Thanks!
My game have level unlock, so, for go to level 2, you need to finish level 1. If you dont make this, the level 2 are locked, and cannot be played. Okay, in the theory all works, and in practice not much. Whats happens is: you play the game, ok, unlock 10 levels for example, but if you hit the home button of iPhone, and back after for game, your game are reseted!
How can I solve this?
Thanks!
Best Answers
-
SlickZero Houston, TexasPosts: 2,870
You need to use a "save attribute" on the behavior that tells the next level to unlock, and then have the attributes load at the beginning of the game with a "load attribute" behavior
Answers
I'll try now, and will reply here if worked.