Hello, I have recently made a list of achievements to add to my game in order to engage users to play more frequently. Most of them are easily detected such as when the user have collected x amount of coins he/she will acquire the “gold digger” achievement etc… However I’m having trouble thinking of a cleaver way to detect another achievement which is acquired if the user plays the game 7 days in a row.
Normally I would add Date.now to an array each time the user logs into the game, I would probably also check if ( dateArray[last] = today ), then not add a new day to prevent duplicate days. This would keep a nice track of which days the user was active, and I could check if the last 7 array dates had no gaps and then unlock the achievement. But since I’m using an external tool to manage persistence across different platforms I have limited options as to which data types are allowed to be persisted, and if fact it doesn’t seem to ship with any kin of collect/lists.
The tool is called CloudOnce and is a very nice google play services integration, and also support apple and amazon cloud thingies.
Here is my options:
I’m scripting in C#. Any suggestions on how to validate the 7 day achievement rules with any of the data types above. (I cannot dynamically generate these persistence variables, they are manually setup in the UI)