J
Jayars
Guest
Hi all.
I'm learning and trying to implement Google Play Games achievements and leaderboards.
I'm using the tutorial from http://www.fm-studio.net/blog/gmstudio-add-google-play-games-2-new/
Have a few questions:
But would I then increment ALL achievements every single time?
Thanks
J
I'm learning and trying to implement Google Play Games achievements and leaderboards.
I'm using the tutorial from http://www.fm-studio.net/blog/gmstudio-add-google-play-games-2-new/
Have a few questions:
- achievement_post(100) is used to unlock a standard achievement. So why the range of values? What happens if I post 70, 20, then 10? Does it add up to 100%? How does it even affect a standard, non-incremental achievement?
- achievement_reset() - does this work? Tried calling it, but nothing appears to have reset.
- How would I implement the following scenario:
- "Died 5 times"
- "Died 10 times"
- ...
- "Do you like pain?"
But would I then increment ALL achievements every single time?
Code:
if (global.g_game_state == GameState.GAMEOVER)
{
if (achievement_available())
{
achievement_increment(global.g_ach_5, 1);
achievement_increment(global.g_ach_10, 1);
achievement_increment(global.g_ach_15, 1);
achievement_increment(global.g_ach_20, 1);
achievement_increment(global.g_ach_suicidal, 1);
}
}
J