Hi
Can i set the google achievement for a variable? for example, i have the “score” variable and i want to do something like this :
[lua] if score==100 then --unlock achievement [/lua]
thanks and sorry for bad english
Hi
Can i set the google achievement for a variable? for example, i have the “score” variable and i want to do something like this :
[lua] if score==100 then --unlock achievement [/lua]
thanks and sorry for bad english
yes, but there is a WHOLE BUNCH of preparation work you have to do before you get to that point.
start reading here: https://docs.coronalabs.com/plugin/gameNetwork-google/index.html
you will eventually need to read this too: https://developers.google.com/games/services/common/concepts/leaderboards
-Tony
Thanks for quick response, i have already read the plugin, but i don’t understand how to show achievement for a variable, i don’t found any sample, in github too
The plugins-sample-gameNetwork-google on github shows how make the unlockAchievement request, which is what you want. The plugin docs for unlockAchievement are here (part of the first link I sent earlier).
yes, but there is a WHOLE BUNCH of preparation work you have to do before you get to that point.
start reading here: https://docs.coronalabs.com/plugin/gameNetwork-google/index.html
you will eventually need to read this too: https://developers.google.com/games/services/common/concepts/leaderboards
-Tony
Thanks for quick response, i have already read the plugin, but i don’t understand how to show achievement for a variable, i don’t found any sample, in github too
The plugins-sample-gameNetwork-google on github shows how make the unlockAchievement request, which is what you want. The plugin docs for unlockAchievement are here (part of the first link I sent earlier).