Little issue with unlock level feature
Hello
I'm having a little problem with my unlock level method. The funny thing is that it works beautiful in game salad but when I test it on the iPhone it doesn't work.
Here is what I did:
I use a variable call maxLevel and when the user beats the lvl the maxLevel variable increments.. Then in the lvl scene all the levels below the current value of maxLevel will be unlocked.
And it works perfect on game salad if i beat level 2 maxLevel = 2 then in the lvl scene only levels 1 and 2 are unlocked and if I beat lvl 3 only 1, 2 and 3 are unlocked and so on.. But in the phone when I beat the first lvl and go to the level scene all of the levels are unlocked.
any ideas why this works on game salad but not on the iPhone? Its been hours tweaking stuff and I don't understand why does it work in game salad but not on the phone
any suggestions will be appreciatted
thank you very much
I'm having a little problem with my unlock level method. The funny thing is that it works beautiful in game salad but when I test it on the iPhone it doesn't work.
Here is what I did:
I use a variable call maxLevel and when the user beats the lvl the maxLevel variable increments.. Then in the lvl scene all the levels below the current value of maxLevel will be unlocked.
And it works perfect on game salad if i beat level 2 maxLevel = 2 then in the lvl scene only levels 1 and 2 are unlocked and if I beat lvl 3 only 1, 2 and 3 are unlocked and so on.. But in the phone when I beat the first lvl and go to the level scene all of the levels are unlocked.
any ideas why this works on game salad but not on the iPhone? Its been hours tweaking stuff and I don't understand why does it work in game salad but not on the phone
any suggestions will be appreciatted
thank you very much
Comments
You can also find a step by step tutorial in the cookbook