achievement_post_score

Sends a score the Game Center leaderboard for your game.

Syntax:

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:

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


Back: Achievements and Leaderboards
Next: achievement_increment
© Copyright YoYo Games Ltd. 2018 All Rights Reserved