Loading in Level Completed Attributes

twinpixtwinpix Member Posts: 49
edited November -1 in Working with GS (Mac)
I have 40 levels to my game and I'd like the user to pick any level to play in any order. Once completed the Level Page will have icons next to the completed level.

I think I will have to load in 40 individual attributes on the first screen, one for each level, and then use that info to mark which level has been completed. Of course once a level is completed then I have to save that attribute for only that level.

Is that the best way to accomplish this or can you suggest a better solution?

Thanks!

Comments

  • twinpixtwinpix Member Posts: 49
    Okay, thanks. Now another question:

    If a player completes a level, when my "Level Complete" actor is spawned on the play space, I have 40 rules (1 for each level) on the "Level Complete" actor which are:

    If Attribute game.CurrentLevel = 1 then game.Level1Complete = true
    If Attribute game.CurrentLevel=2 then game.Level2Complete =true
    ...and so on.

    Is there a better way to program this than having 40 separate rules?
  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    I would think that is the best way. That way if you add more levels in an update later on you only have to add the additional level complete rules to the prototype instead of changing it in each level. Thats how i have my game setup.
Sign In or Register to comment.