achievement_post_score

Sends a score the Game Center leaderboard for your game.

Syntax:

GML Code Example

achievement_post_score(name, score)


Argument Description
name The name of the score table (or "Leaderboard").
score The score to be sent.


Returns: N/A


Description

You can use this function to send your score to the chosen leaderboard and achievement service. You send the name of the score table (the "leaderboard" name that you assigned to your game when you set up the account) and the actual score value).

Example:

GML Code Example

if achievement_available() achievement_post_score("Leaderboard", 1000);

The above code checks to see if the chosen leaderboard and achievement service is available and if so it posts a score to the score table called "Leaderboard".





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