Calling Adventure Game devs: Help making profiles
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?
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
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?