Little issue with unlock level feature

steve86steve86 Member Posts: 806
edited November -1 in Working with GS (Mac)
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

Comments

  • steve86steve86 Member Posts: 806
    sry to bump this thread guys but its driving me crazy.. Its the last piece of the puzzle before I publish
  • GLGAMESGLGAMES SingaporeMember Posts: 988
    Just wondering , how do you lock or unlock the scene?
  • steve86steve86 Member Posts: 806
    I placed an actor in the form of a little lock and if maxLevel is less or equal than the level that the lock image is "locking" it will destruct and you can touch the level button
  • steve86steve86 Member Posts: 806
    @georgeleong

    You can also find a step by step tutorial in the cookbook
Sign In or Register to comment.