What is the best way to handle levels in a game with thresholds for levelup (non-linear)? If I need a lot of levels I'll have to add every threshold to cloud script (e.g. Level 1 0-100 / Level 2 100- 500 etc.)
What is the best way to handle levels in a game with thresholds for levelup (non-linear)? If I need a lot of levels I'll have to add every threshold to cloud script (e.g. Level 1 0-100 / Level 2 100- 500 etc.)
It depends upon your usage and how you want to manage any changes. In general, I'd prefer putting it into a KVP in Title Data (or title Entity data, if you're using our newer data model). But if you're comfortable just having it as static data at the head of your Cloud Script, that's one less API call you need to make from the script, which is a small savings.
And what about non-linear progression for XP? As in needing a different amount of XP to level up each sequential level.
That's specifically what I meant. If you cannot calculate the XP needed, you'll have to have a table of values. So, you'd store that in Title Data/title Entity data, or just have it as static data in the Cloud Script.
2 People are following this question.