Loading in Level Completed Attributes
twinpix
Member Posts: 49
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!
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
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?