Shows the leaderboards page for the chosen platform.



Returns: N/A


This function will open the leaderboards page for the chosen platform. Please note that this is an asynchronous function, ie: your game will continue to run in the background while the leaderboards page is being shown. As such, you should be careful where you use this and make sure to pause the game or only permit it to be shown in areas of your game where it will not interfere with the game-play.


if achievement_available()
   global.Pause = true;
   instance_create(0, 0, obj_Pause);

The above code checks to see if the chosen leaderboard and achievement service is available and if so it sets a global variable and creates a controller "pause" instance before calling the function to show the leaderboards on screen.

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