Problem with level awards

juzcookjuzcook Member Posts: 259
edited November -1 in Working with GS (Mac)
My first game is nearing completion now, but I'm having a hiccup with the awards system. My game features 60 levels (10 levels per world) where awards are unlocked by completing each level within a set time limit. The problem is strange and I can't quite work out why it's happening. The first 30 levels work perfectly without any bugs. But straight away after level 31, all I have to do is load the level and the achievement has been awarded (but the next level remains locked). I find this out by quitting the level and going back to the level select screen. I haven't done anything different to the first 30 levels and ALL my attribute settings match up perfectly.

I might also add that in the viewer the last 30 levels SOMETIMES work the way they are supposed to. I've tried a few different times and sometimes they work, sometimes they dont. But in the published version they NEVER work. I've tested on both an iPhone 4 and a 2nd gen iPod Touch and I get the same problem.

So I know that the level lock system is still working, just not the awards system. I don't know if this is something simple or not, or if my information is helpful enough, but has anyone else had this same problem where earlier levels work and later levels don't? I'm beginning to think it's some sort of GS error?

Comments

  • GingerBGamesGingerBGames Member Posts: 390
    Hello juzcook,

    It sounds like you've covered your tracks multiple times, if all looks correct, then you may want to try two things, hopefully all it takes is the first.

    1. Create a new game attribute and use that as the unlocking level cheevo, or whatever it's call. Create an new actor with the exact same rules as the one you have now. I know this sounds like it would be a waste of time, but trust me when I say this happens a lot. This is the one I try first. If it doesn't fix it I do step two.

    2. Create a new Level 31, and try that. First try a cop scene, if it works, great. If not, then remake the level.

    I've had this happen to me occasionally, it's the weirdest thing. Everything looks right, but it doesn't work right. I hope you figure it out, and hopefully step one is the cure for you.

    Best of luck my friend.
  • juzcookjuzcook Member Posts: 259
    Thanks for the reply Ginger! I did a heap more testing, and sure enough it kept doing the same thing. I still don't understand why it did, but my work around involved some attribute changing. So for anyone else who has the same problem, it worked like this...

    It's a cute physics game which involves saving "juzzies" by getting them to the exit using device rotation. I had the level load certain attributes at the start of each scene. ie. How many balls require saving, the Time Limit and such. And in order to achieve an award, you had to finish the level with zero balls (the only way to pass the level), but have the timer above zero seconds remaining.

    So at the start of each scene a trigger sets the level attributes up ready for play. What was happening was each level started with settings from the previous level, and that was making it think I had earned the award. So all I did was change the number of balls to 1 when you press the button to goto the next level, that way it wouldn't assume there were zero when the level loaded.

    It's all good now, but it's really weird that it worked up until level 30 and THEN decided to misbehave. Just need to tidy up a few things and do some more testing and the game should be ready to be uploaded! :)
Sign In or Register to comment.