Hi guys.
I want to have achievements in my game. Something like: if you play an hour, to get an achievement with “You;re bored”. I followed the steps on google play from my developer console and i added the achievement and the description, but i do not write any script. How could google know when to give that achievement ? All that i do is to write the description of it.
The same thing with score, i want an achievement if you have more than 5 points or something like that. I added the achievements, but i haven’t done any scripting in my app or something like that . How could google know when the player have more than 5 points ?
Because it makes no sense for me, I am very confused. Could you please help me ? It is my first game and the first time to add it.
It’s up to you to keep track of all the things that need to be accomplished in order to unlock the achievement. Once the player has accomplished the goals, you send a message to the Google Play Service and tell it to unlock the achievment. So it’s all up to you.
In order to communicate with the Google Play Service you need something like this:
https://github.com/playgameservices/play-games-plugin-for-unity
Thank you. Do you happen to know a good piece of documentation where i could find all of this ? I do not know how to “speak” with google :))
If you follow the link I included, you will find documentation and several examples. It is quite easy actually.
thank you again. I am using my phone right now and i didn’t see. Sorry.