Hello I have following problem
Lets say I have a game that have 3 minigames in it.
Each minigame has easy/medium/hard difficulty level with different scoring system per each level.
Formula for calculating score per level is stored in playfab catalogues custom data - each minigame has corresponding catalogue item.
Question is - how can I properly save user scores for each minigame and then show user his own personal leaderboard from best score to lowest one ?
Example flow looks like that:
- User selects difficuflty level in app
- finishes the game in some amount of seconds
- we execute custom cloudscript function to calculate mini game score
- function arguments are gameId, difficulty level and time in seconds on which we base our score.
- Function gets corresponding game data from 'minigames' catalogue items - gets formula from custom data by difficulty level and calculates the score.
Now I need now to save it somewhere.
What part of playfab should I use to save player minigames score so after he plays the game I can present him his own like leaderboard per difficulty so all of his attempts are displayed ?
Leaderboards are generated per statistic per player but I need to combine data for one player.
Should I use some 3rd party database for it or is it possible to do only by playfab tools?
Workaround for that - to save only best score would be to create statistic called GameId_DifficultyLevel and update it in cloudscript only when user beat his previous saved score - but that wont save all his other scores - just the best one.
I hope the description is somewhat clear :)
,Hello I have following problem
Lets say I have a game that have 3 minigames in it.
Each minigame has easy/medium/hard difficulty level with different scoring system per each level.
Formula for calculating score per level is stored in playfab catalogues custom data - each minigame has corresponding catalogue item.
Question is - how can I properly save user scores for each minigame and then show user his own personal leaderboard from best score to lowest one ?Example flow looks like that:
- User selects difficuflty level in app
- finishes the game in some amount of seconds
- we execute custom cloudscript function to calculate mini game score
- function arguments are gameId, difficulty level and time in seconds on which we base our score.
- Function gets corresponding game data from 'minigames' catalogue items - gets formula from custom data by difficulty level and calculates the score.
Now I need now to save it somewhere.
What part of playfab should I use to save player minigames score so after he plays the game I can present him his own like leaderboard per difficulty so all of his attempts are displayed ?
Leaderboards are generated per statistic per player but I need to combine data for one player.
Should I use some 3rd party database for it or is it possible to do only by playfab tools?
Workaround for that - to save only best score would be to create statistic called GameId_DifficultyLevel and update it in cloudscript only when user beat his previous score - but that wont save all his other scores - just the best one.
I hope the description is somewhat clear :)