achievement_post(achievement, percent)
Argument | Description |
---|---|
achievement | The name of the achievement. |
percent | The percentage of the achievement completed. |
Returns: N/A
You can use this function to send your achievements to the
chosen leaderboard and achievement service. You send the name of
the achievement (this is the name you assigned to it when you set
up the account for your app) and the percentage that you have
completed towards getting the achievement (0 - None, 100 -
Completed).
if achievement_available() achievement_post("ach_Level1", 100);
The above code checks to see if the chosen leaderboard and achievement service is available and if so it posts an achievement.