Calling Adventure Game devs: Help making profiles

NesesitaGamesNesesitaGames Member Posts: 160
edited November -1 in Working with GS (Mac)
Currently working on an Adventure type game (Mac) and trying to set up Player Profiles (3). Here's what I have so far:

Game Attributes:

WhichPlayerProfile (integer) - which Profile to make Current Player
Player1Name (text)
Player2Name (text)
Player3Name (text)
CurrentPlayerLevel (integer) - which level the Current Player has completed
CurrentPlayerScore (integer) - what the last Score of the Current Player was

I'm thinking of this set up:
- On game start, WhichPlayerProfile is loaded from a Key (1 to 3) depending on which was the last played profile.
- If WhichPlayerProfile is 1, load Player1Name from a Key (and the same for 2 or 3)
- If WhichPlayerProfile is 1, load CurrentPlayerLevel from a Key (etc.)
- If WhichPlayerProfile is 1, load CurrentPlayerScore from a Key (etc.)

My question is this... do I need to make new Attributes for each possible Player Level and Score? Like this:

Player1Score
Player1Level
Player2Score
Player2Level
etc...

?
Or is there a simpler way?

Comments

  • StuartYStuartY Member Posts: 134
    As long as the score and level have separate keys for each player, and are SAVED to separate keys, (e.g. if WhichPlayerProfile=2 save PlayerScore to Key: Player2Score) I think you should be fine. If you're making an Adventure and you only have two pieces of save info, it should be pretty simple anyway.
  • NesesitaGamesNesesitaGames Member Posts: 160
    Thanks for replying, Stuart! I didn't think of that- so I could do something like:

    On game save:
    If CurrentPlayer is 1, Save PlayerScore to KEY PLAYER1SCORE
    If CurrentPlayer is 2, Save PlayerScore to KEY PLAYER2SCORE

    then on game Load:
    If CurrentPlayer is 1, Load KEY PLAYER1SCORE to PlayerScore

    and so on?
  • StuartYStuartY Member Posts: 134
    Exactly, should work fine.
Sign In or Register to comment.