Sends information about an achievement to the Game Center.


GML Code Example

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).


GML Code Example

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.

No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here